Vercel AI SDK & Agno Subcontractor General Liability Risk Classification System
Court decisions on general contractor liability for subcontractor injuries impact commercial liability underwriting. Build a TypeScript application using Vercel AI SDK paired with Agno agent microservices to parse subcontractor labor agreements and classify indemnification liability risk.
What you are building
The core problem, expected build, and operating context for this challenge.
Develop a TypeScript and Python service using Vercel AI SDK and Agno to audit subcontractor liability contracts.
How work is evaluated
Evaluates contract legal risk identification accuracy and latency of streaming output.
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.
enum_validity
Ensures liability_rating is one of LOW_RISK, MEDIUM_RISK, HIGH_RISK
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
clause_detection_accuracy
Accuracy in detecting missing legal clauses • 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
Build AI SDK streaming responses for interactive contract risk analysis
Construct Agno agent endpoints for legal clause classification
Detect missing cross-indemnification and additional insured endorsements
Provide risk scoring and compliance feedback to commercial brokers
Reference links and supporting material
Standard US general contractor and subcontractor agreements with annotated liability provisions.
Challenge setup
Evaluates contract legal risk identification accuracy and latency of streaming output.
Challenge input
JSON containing subcontractor contract text snippet.
AI SDK
Unified streaming and model execution interface
Agno
Specialized agent backends for legal classification
Evaluated output
JSON containing liability_rating, missing_clauses list, and GC_protection_valid boolean.
- Ensures liability_rating is one of LOW_RISK, MEDIUM_RISK, HIGH_RISK
- Accuracy in detecting missing legal clauses • target: 0.9 • range: 0-1
- Benchmark: ContractRiskBench
- Clause Detection Accuracy 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
- Agno · Required
- Vercel AI SDK · Optional
- OpenAI · Optional
- Agno · Required
- Vercel AI SDK · Optional
Evaluation contract
- enum_validity · Weight 1
- clause_detection_accuracy · Weight 1
Metrics
- clause_detection_accuracy · Target 0.9
Benchmarks
- ContractRiskBench
- general
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON containing subcontractor contract text snippet.
Output: JSON containing liability_rating, missing_clauses list, and GC_protection_valid boolean.
Execution harness: JavaScript
Evaluation tools
- AI SDK · TypeScript AI Framework
- Agno · Agent Engine
Recipe freeze marker
No recipe freeze time is recorded.