A hierarchical agent system built with Google's Agent Development Kit (ADK) for creating engaging social media content.
This project uses Google's ADK to create a multi-agent system that generates social media content. The system consists of:
- A parent agent that coordinates the entire process
- Three specialized sub-agents:
- Trend Finder Agent: Discovers trending hashtags for maximum engagement
- Content Writer Agent: Creates engaging posts using trending hashtags
- Visual Concept Agent: Suggests visual ideas to accompany the posts
Google-Agent-Development-Kit/
βββ adk_example/
β βββ __init__.py # Module initialization
β βββ agent.py # Agent definitions
β βββ venv/ # Virtual environment
βββ README.md # This file
- Python 3.8+
- Google ADK (
google-adk
) - Google API credentials configured
-
Clone the repository:
git clone https://github.com/rawheel/Google-Agent-Development-Kit cd Google-Agent-Development-Kit
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Configure Google API credentials following the official documentation.
Run the agent using the ADK CLI:
adk run adk_example
This will start the agent service, which you can then interact with through the ADK interface.
Example prompt:
Create a social media post about artificial intelligence
The system uses a hierarchical approach:
- Parent Agent (
social_media_agent
): Coordinates the workflow and delegates tasks - Sub-agents:
trend_finder_agent
: Researches and identifies trending hashtagscontent_writer_agent
: Creates engaging social media postsvisual_concept_agent
: Suggests visual ideas for the content
Run the agent using the ADK UI:
adk web
You can customize each agent's behavior by modifying the instructions in agent.py
. Additional tools like search capabilities can be enabled by uncommenting the appropriate lines.
For more information about Google's Agent Development Kit (ADK) and how to build AI agents, check out my article: Meet Google's Agent Development Kit (ADK)π€―: Build Real AI Agents, Not Just Chatbots