Back to prompt library
Initialize Google ADK Agent System
Linked challenge: GenAI Unit Launch Strategy with Google ADK Agents and Claude 4 Opus
Prompt source
planning13 lines1 sectionsNo variables1 code block
Using Google ADK, define a 'Product Strategist' agent, a 'Market Analyst' agent, and a 'Creative Lead' agent. The Strategist should use Gemini 3 Flash, the Analyst Gemini 3 Flash, and the Creative Lead Claude 4 Opus. Assign basic goals and initial tools to each, such as a simulated market data access tool for the Analyst and a text-to-text generation tool for the Creative Lead. Use the following structure to initialize your agents: ```python
from google.generativeai.client import get_default_agent_client
from google.generativeai.types import FunctionDeclaration, Tool
import google.generativeai as genai genai.configure(api_key='YOUR_API_KEY') # Define tools
market_data_tool = FunctionDeclaration( name='get_market_trends', description='Retrieves current market trends for a given product niche.', parameters={'type': 'object', 'properties': {'niche': {'type': 'string'}}}, is_core=True
) creative_gen_tool = FunctionDeclaration( name='generate_marketing_copy', description='Generates marketing text based on product features and tone.', parameters={'type': 'object', 'properties': {'features': {'type': 'array', 'items': {'type': 'string'}}, 'tone': {'type': 'string'}}}, is_core=True
) # Initialize agents
product_strategist = get_default_agent_client( model='models/gemini-3-flash', tools=[Tool(function_declarations=[market_data_tool])], display_name='Product Strategist', instructions='You are responsible for overall product strategy and decision-making.'
) market_analyst = get_default_agent_client( model='models/gemini-3-flash', tools=[Tool(function_declarations=[market_data_tool])], display_name='Market Analyst', instructions='Your role is to research market trends and provide data-driven insights.'
) creative_lead = get_default_agent_client( model='models/claude-4-opus', tools=[Tool(function_declarations=[creative_gen_tool])], display_name='Creative Lead', instructions='You generate compelling marketing copy and creative content.'
)
# ... more agent definitions and interactions ...
```