Implement ReAct Agents with Hybrid Reasoning & MCP Tools

implementationChallenge

Prompt Content

Implement the 'Sensor Interpreter' and 'Risk Assessor' agents using Langroid with ReAct patterns. The Sensor Interpreter should use MCP tools to access simulated sensor data (e.g., 'get_lidar_readings', 'analyze_camera_feed') and use OpenAI o3 for quick interpretations. The Risk Assessor should receive these interpretations, query Haystack for relevant safety protocols, and use Claude Opus 4.1 for deeper reasoning to identify hazards and potential risks.

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