Skip to main content
Loading navigation

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.

Business OperationsHosted by Vera

What you are building

Build a streaming legal mediation web service using Vercel AI SDK with multi-provider fallback.

How work is evaluated

Evaluation

Evaluates legal citation grounding and settlement clause generator structure.

Datasets

Public datasets, plus the private datasets you have access to.

How submissions are scored

Dimensions
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

settlement_status_valid

Ensures mediation proposal reaches valid state.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

legal_relevance

Relevance score of proposed settlement terms • target: 0.9 • range: 0-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

  • 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

Resources

Dataset notes

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

Evaluation checks
  • Ensures mediation proposal reaches valid state.
  • Relevance score of proposed settlement terms • target: 0.9 • range: 0-1
Configured evaluation evidence
  • Benchmark: Legal-Mediation-Bench
  • Legal Relevance target: 0.9
  • 1 public reference case
Configured runtime
  • JavaScript execution harness
  • javascript sandbox (unavailable on Versalist)

Shows the first task, up to three tools, and up to three evidence items.

View technical recipe

Configured tools

Action Space
  • Vercel AI SDK · Required
  • Coplay AI · Optional
Observation
  • Helicone · Optional
Orchestration
  • 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

  1. 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.

Frequently Asked Questions about Vercel AI SDK Real-Time Legal Dispute Mediator Kiosk