agentic-ai-mcp-workflows

No description

GitHub Stars

0

User Rating

Not Rated

Forks

0

Issues

5

Views

1

Favorites

0

README
Insurance AI POC - Google ADK v1.2.1

Production-ready insurance AI agent system built with Google's official Agent Development Kit

Google ADK A2A Protocol Monitoring

๐Ÿš€ 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, and adk 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

Author Information
Piyushkumar Jain
PrudentialSingapore

6

Followers

77

Repositories

1

Gists

95

Total Contributions

Top Contributors

Threads