Google ADK
Prerequisites
Environment Setup
## For using SEA-LION API, uncomment if needed
OPENAI_API_KEY=your-sea-lion-api-key-here
OPENAI_API_BASE=https://api.sea-lion.ai/v1
MODEL=aisingapore/Llama-SEA-LION-v3-70B-IT
## For using Google Vertex AI, uncomment if needed
# GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"
# GOOGLE_CLOUD_LOCATION="YOUR_VERTEX_AI_LOCATION" # e.g., us-central1
GOOGLE_GENAI_USE_VERTEXAI=TRUE # Set to TRUE if NOT using Google AI Studio, due to function declaration issue: https://github.com/google/adk-python/issues/26#issuecomment-2911749485
# Environment variable for custom tool
SEARXNG_URL=https://your-searxng-instance-url-hereProject Structure
Basic Agent Setup
Custom Tool Development
Agent as a Tool
Running the Agent
Web Interface (Recommended)
CLI Interface (Optional)
Best Practices
Model Selection
Agent Configuration
Session Management
Tool Documentation
Troubleshooting
Last updated