GitHub Stars
0
User Rating
Not Rated
Forks
0
Issues
5
Views
1
Favorites
0
Insurance AI POC - Google ADK v1.2.1
Production-ready insurance AI agent system built with Google's official Agent Development Kit
๐ Overview
This is a complete production implementation of an insurance AI agent system using Google's official Agent Development Kit (ADK) v1.2.1. The system follows patterns from google/adk-samples and eliminates the need for custom FastAPI servers.
โจ Key Features
- ๐ค Multiple Agent Types: Customer service (LlmAgent) + Technical operations (BaseAgent)
- ๐ ๏ธ Native Google ADK: Uses built-in
adk web
,adk run
, andadk api_server
commands - ๐๏ธ No Custom FastAPI: Leverages Google ADK's built-in runtime and web UI
- ๐ Built-in Evaluation: Google ADK evaluation framework included
- ๐ Production Ready: Deployment tools and monitoring integrated
- ๐ Automatic Logging: Built-in tracing and observability
๐๏ธ Architecture
insurance-adk/
โโโ insurance_customer_service/ # LlmAgent for customer interactions
โ โโโ __init__.py
โ โโโ agent.py # root_agent = LlmAgent(...)
โโโ insurance_technical_agent/ # BaseAgent for backend operations
โ โโโ __init__.py
โ โโโ agent.py # root_agent = BaseAgent(...)
โโโ agent.py # Simple agent example
โโโ .env # Google API configuration
๐ ๏ธ Google ADK Commands
Available Commands
# Interactive CLI mode
adk run insurance_customer_service
adk run insurance_technical_agent
# Web UI for testing (recommended)
adk web
# REST API server
adk api_server
# Evaluation framework
adk eval <agent> <eval_set>
# Create new agents
adk create <app_name>
๐ฆ Quick Start
Prerequisites
# Install dependencies
pip install -r requirements.txt
# Set up Google API key
export GOOGLE_API_KEY=your_google_ai_studio_api_key
# OR configure Vertex AI in .env file
Run Agents
cd insurance-adk
# Option 1: Web UI (recommended)
adk web
# Option 2: CLI mode
adk run insurance_customer_service
# Option 3: API server
adk api_server
๐ฏ Agent Capabilities
Insurance Customer Service Agent (LlmAgent)
- ๐ฌ Customer support and inquiries
- ๐ Policy information assistance
- ๐ค Claims guidance and support
- ๐ Professional customer interactions
Insurance Technical Agent (BaseAgent)
- โ๏ธ Complex backend operations
- ๐ Policy analysis and validation
- ๐ง Technical system integrations
- ๐ Data processing workflows
๐ Benefits Over FastAPI
Google ADK | Custom FastAPI |
---|---|
โ Built-in web UI | โ Manual UI development |
โ Automatic evaluation | โ Custom testing framework |
โ Production deployment | โ Manual deployment setup |
โ Integrated logging | โ Custom logging configuration |
โ CLI tools included | โ Manual CLI development |
โ Official Google support | โ Community maintenance |
๐ง Configuration
Environment Variables (.env)
# Google AI Configuration
GOOGLE_API_KEY=your_google_ai_studio_api_key
# OR Vertex AI (production)
GOOGLE_GENAI_USE_VERTEXAI=TRUE
GOOGLE_CLOUD_PROJECT=your-project-id
GOOGLE_CLOUD_LOCATION=us-central1
# Model Configuration
MODEL_NAME=gemini-2.0-flash
๐งช Testing
# Run Google ADK tests
python tests/google-adk-tests/test_google_adk_agents.py
# Demo commands
python tests/google-adk-tests/demo_adk_commands.py
# A2A communication tests
python tests/google-adk-tests/test_a2a_communication.py
๐ Monitoring & Observability
- Langfuse: LLM observability and tracing
- Google ADK Logs: Built-in agent logging
- Evaluation Framework: Automated testing suite
๐ Production Features
- ๐ Hot Reloading: Automatic agent updates
- ๐ Built-in Metrics: Performance monitoring
- ๐ Easy Deployment:
adk deploy
commands - ๐ Security: Google Cloud integration
- ๐ Documentation: Auto-generated API docs
๐ Migration Complete
โ
FastAPI Server Removed: No longer needed - Google ADK provides all runtime capabilities
โ
Agent Structure: Following google/adk-samples patterns
โ
Built-in Tools: Using native adk
commands instead of custom scripts
โ
Clean Architecture: Simplified and production-ready
Ready to use Google ADK v1.2.1! ๐
Start with: cd insurance-adk && adk web
6
Followers
77
Repositories
1
Gists
95
Total Contributions