Back to prompt library
Initialize Google ADK Agent and Gemini 2.5 Pro
Linked challenge: Real-time Voice-Enabled Enterprise Intelligence Agent
Prompt source
planning8 lines4 sectionsNo variables1 code block
Set up a new Google ADK project. Initialize your agent to use Gemini 2.5 Pro. Define a basic `welcome` intent to confirm the agent is running. Ensure you have the necessary Google Cloud credentials configured. ```python from google.generativeai.vertexai import agents_v1beta as agents import vertexai vertexai.init(project='your-gcp-project', location='us-central1') # Initialize your agent with Gemini 2.5 Pro # ... ```