Initialize Google ADK Agent System

planningChallenge

Prompt Content

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 ...
```

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations