Real-time Contextual Tool Integration

implementationChallenge

Prompt Content

Design and implement a tool (or set of tools) within your Google ADK agent that interacts with Google Maps Platform APIs (e.g., Places API, Directions API). This tool should allow the agent to find nearby points of interest, get directions, and calculate distances based on the `current_location` provided to Gemini. Demonstrate how the agent would dynamically call these tools based on Gemini's reasoning from a user's query like 'Find the nearest park'.

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