Safety Protocol and Hazard Response

implementationChallenge

Prompt Content

Develop a specific set of prompts or agent logic within your Google ADK framework that enables the agent to respond to simulated safety alerts or user-reported hazards (e.g., 'I see a slippery patch ahead'). The agent should leverage Gemini's reasoning to assess the hazard in context of the user's activity (walking/cycling) and offer appropriate, proactive safety advice or suggest route modifications. Provide example ADK agent flow or prompt engineering for this scenario.

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