Skip to main content
Loading navigation
Back to prompt library

Implement Langroid Agent with MCP Tools

Linked challenge: Agentic Video Scene Skipper

Prompt source

implementation1 lines1 sectionsNo variables0 checklist items
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.