Vercel AI SDK Real-Time Legal Dispute Mediator Kiosk
E-commerce trademark and service provider disputes often choke formal judicial channels. Build an interactive web mediation agent using Vercel AI SDK to stream real-time settlement proposals and precedent comparisons to disputing web merchants.
What you are building
The core problem, expected build, and operating context for this challenge.
Build a streaming legal mediation web service using Vercel AI SDK with multi-provider fallback.
How work is evaluated
Evaluates legal citation grounding and settlement clause generator structure.
Challenge datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.
settlement_status_valid
Ensures mediation proposal reaches valid state.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
legal_relevance
Relevance score of proposed settlement terms • target: 0.9 • range: 0-1
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
What you should walk away with
Use Vercel AI SDK `streamText` and `generateObject` for legal summary generation
Build responsive Next.js dynamic streaming UI components
Analyze historical trademark precedent text to propose fair settlement terms
Reference links and supporting material
Summarized case legal precedents and trademark dispute outcome records.
Challenge setup
Evaluates legal citation grounding and settlement clause generator structure.
Challenge input
JSON dispute claims overview
AI SDK
Mandatory framework requirement
Evaluated output
JSON settlement proposal
- Ensures mediation proposal reaches valid state.
- Relevance score of proposed settlement terms • target: 0.9 • range: 0-1
- Benchmark: Legal-Mediation-Bench
- Legal Relevance target: 0.9
- 1 public reference case
- JavaScript execution harness
- javascript sandbox (unavailable on Versalist)
Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.
View technical recipe
Configured tools
- Vercel AI SDK · Required
- Coplay AI · Optional
- Helicone · Optional
- Vercel AI SDK · Required
Evaluation contract
- settlement_status_valid · Weight 1
- legal_relevance · Weight 1
Metrics
- legal_relevance · Target 0.9
Benchmarks
- Legal-Mediation-Bench
- general
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON dispute claims overview
Output: JSON settlement proposal
Execution harness: JavaScript
Evaluation tools
- AI SDK · Frontend Framework
Recipe freeze marker
No recipe freeze time is recorded.