
agents demo
LLM Agents Demo using Google ADK
Repository Info
About This Server
LLM Agents Demo using Google ADK
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Agents Demo
A multi-agent system that demonstrates the power of AI agents working together to extract and process information from web pages. This project showcases how specialized AI agents can collaborate to perform complex tasks like web scraping, address extraction, and geocoding. Developed using Google ADK and MCP Platform.
Overview
This project implements a team of specialized AI agents that work together to:
- Crawl web pages and extract their content
- Identify and parse addresses from the content
- Convert addresses into geographic coordinates
- Present the results in a structured format
The system uses Google's ADK (Agent Development Kit) and MCP (Multi-Component Platform) to create a robust pipeline for information extraction and processing. Each agent in the system has a specific role:
- Crawler Agent: Fetches and cleans webpage content using BeautifulSoup4
- Address Agent: Identifies and extracts structured address information from text
- Geocoding Agent: Converts addresses into precise geographic coordinates
- Manager Agent: Orchestrates the workflow between all agents
Project Structure
.
├── src/
│ ├── agents/ # Core agent implementation
│ │ ├── agent.py # Main agent logic and coordination
│ │ └── config.yaml # Agent configurations and instructions
│ └── mcp_server/ # MCP server implementation
├── assets/ # Static assets
├── .env # Environment variables
└── pyproject.toml # Project dependencies
How It Works
The system follows a sophisticated workflow:
- Web Content Extraction: The crawler agent fetches webpage content and cleans it for processing
- Address Identification: The address agent analyzes the content to find and structure address information
- Geocoding: Each identified address is converted into precise latitude and longitude coordinates
- Result Compilation: The manager agent combines all information into a structured JSON output
The agents communicate through a well-defined protocol, ensuring reliable data flow and error handling throughout the process.
Prerequisites
- Python 3.12 or higher
- Poetry for dependency management
- Google API key for LLM Calls
Installation
- Clone the repository:
git clone https://github.com/yourusername/agents-demo.git
cd agents-demo
- Install dependencies using Poetry:
poetry install
- Set up environment variables:
- Copy
.env.exampleto.env - Add your Google API key for geocoding services
- Copy
Usage
The system can be used to extract and geocode addresses from any webpage. Here's a basic example:
from src.agents.agent import main
import asyncio
# Run the agent system
asyncio.run(main(config, query, user_id, session_id))
The output will be a JSON file containing all extracted addresses with their corresponding geographic coordinates.
Development
This project uses:
- Poetry for dependency management
- MCP for multi-component platform integration
- Google ADK for agent development
- BeautifulSoup4 for web scraping
- LiteLLM for language model interactions
- JSON Repair for data handling
Technical Details
The system is built with scalability and reliability in mind:
- Each agent operates independently with clear responsibilities
- Error handling and logging are implemented throughout
- The system can process multiple addresses in parallel
- Results are cached and stored in a structured format
Quick Start
Clone the repository
git clone https://github.com/brightertiger/agents-demoInstall dependencies
cd agents-demo
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.