Skip to content

caron14/adk-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ADK Sample Agents Repository

This repository provides a collection of sample AI agents and reference implementations for both Python and Java. It is designed to help developers understand, customize, and deploy various agent-based solutions using the Agent Development Kit (ADK). Each agent is organized as an independent project with its own documentation, code, and deployment resources. Common utilities and shared modules are also included for reuse and extension.

Getting Started

  1. Clone the repository:
git clone https://github.com/caron14/adk-samples.git
  1. Navigate to the project directory:
cd adk-samples
  1. Install the required dependencies:
uv sync

The dependency for development can be installed:

uv sync --extra dev
  1. Set up the environment variables: Create a .env file in the root directory and add the following variables:
    GOOGLE_GENAI_USE_VERTEXAI=TRUE
    GOOGLE_CLOUD_PROJECT=YOUR_PROJECT_ID
    GOOGLE_CLOUD_LOCATION=LOCATION
  2. If you are using Google Cloud Vertex AI, ensure you have the necessary permissions and have set up your Google Cloud project as described in the Set up the model section below. If you are using a different model, adjust the environment variables accordingly. For example, if you are using OpenAI, you might need to set OPENAI_API_KEY and other relevant variables.
     ROOT_AGENT_MODEL='your-root-agent-model-id' # ex. 'gemini-2.0-flash-lite-001'
     SPECIFIC_AGENT_MODEL='your-specific-agent-model-id' # ex. 'gemini-2.0-flash-lite-001'
  3. Run the agent:
    python -m agents.<agent_name>

Development Tools

pylint/balck/isort/mypy/pytest

uv run pylint $(git ls-files '*.py')
uv run black .
uv run isort .
uv run mypy .
uv run pytest  

Test the black formatter to ensure the CI pipeline will pass:

uv run black --check --diff .

Test by Pytest

uv run pytest -q

Reference:

Prompting Guide by OpenAI

About

Hands on Agent Development Kit(ADK)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages