Implement Langroid Agent with MCP Tools

implementationChallengeDecember 3, 2025

Prompt Content

Implement the core Langroid agent. Define its initial state, message processing loop, and how it will use the LlamaIndex RAG pipeline to find relevant video scenes. Crucially, detail how you will implement MCP-enabled tool integration to interact with a simulated video player API (e.g., `skip_to_time(timestamp)`, `get_current_time()`). Provide code snippets for the agent's main logic and tool definitions.

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