Back to Prompt Library
implementation

Implement Langroid Agent with MCP Tools

Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.

Linked challenge: Agentic Video Scene Skipper

Format
Text-first
Lines
1
Sections
1
Linked challenge
Agentic Video Scene Skipper

Prompt source

Original prompt text with formatting preserved for inspection.

1 lines
1 sections
No variables
0 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.

Adaptation plan

Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.

Keep stable

Hold the task contract and output shape stable so generated implementations remain comparable.

Tune next

Update libraries, interfaces, and environment assumptions to match the stack you actually run.

Verify after

Test failure handling, edge cases, and any code paths that depend on hidden context or secrets.