Back to Prompt Library
implementation
Implement Legal Analyst Agent with Claude Opus 4.1 & LlamaIndex
Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.
Linked challenge: Multi-Agent Content Rights Auditor
Format
Text-first
Lines
1
Sections
1
Linked challenge
Multi-Agent Content Rights Auditor
Prompt source
Original prompt text with formatting preserved for inspection.
1 lines
1 sections
No variables
0 checklist items
Develop the 'Legal Analyst' agent using Langroid. This agent should receive a piece of generated content and use Claude Opus 4.1 to analyze its copyright implications. It must leverage LlamaIndex with multi-query RAG to retrieve relevant legal statutes and precedents from a simulated legal corpus. The agent's output should include a risk assessment, explanation, and reference to legal sources, conforming to the `CopyrightAnalysisTask` output.
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.