Build an ONDC Grocery Triage Agent with Claude Agents SDK & OpenRouter
Grocery platforms face network failures when integrating with ONDC logistics and inventory protocols. Build an automated order routing and exception triage system using Claude Agents SDK and OpenRouter to detect catalog mismatches and re-route failing deliveries with under 1.5% delivery drop-off.
What you are building
The core problem, expected build, and operating context for this challenge.
Implement an automated ONDC grocery dispatch and exception triage system using Claude Agents SDK and OpenRouter for resilient logistics.
How work is evaluated
Evaluates the agent's ability to triage broken ONDC order payloads and successfully re-route orders within SLA limits.
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.
valid_reroute_schema
Ensures output JSON matches the required ONDC remediation schema
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
triage_accuracy
Percentage of correctly resolved order exception events • target: 0.95 • 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
Master ONDC protocol payload parsing and exception handling
Implement multi-tool agentic workflows with Claude Agents SDK
Integrate OpenRouter model switching for low-latency decision making
Build real-time delivery re-routing fallback mechanisms
Reference links and supporting material
Simulated ONDC Beckn protocol transaction logs containing catalog mismatches, delivery timeouts, and merchant failures.
Challenge setup
Evaluates the agent's ability to triage broken ONDC order payloads and successfully re-route orders within SLA limits.
Challenge input
JSON order payload containing failure codes
Claude Agents SDK
Agentic toolkit with tool calling and extended reasoning capabilities.
OpenRouter
Unified LLM proxy API for dynamic model routing and cost control.
Evaluated output
JSON response with action, target_fulfillment_id, and rationale
- Ensures output JSON matches the required ONDC remediation schema
- Percentage of correctly resolved order exception events • target: 0.95 • range: 0-1
- Benchmark: ONDC Dispatch Resilience Benchmark
- Triage Accuracy target: 0.95
- 1 public reference case
- Python execution harness
- Python 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
- Anon · Optional
- Resemble AI · Optional
- OpenRouter · Required
- OpenRouter · Required
Evaluation contract
- valid_reroute_schema · Weight 1
- triage_accuracy · Weight 1
Metrics
- triage_accuracy · Target 0.95
Benchmarks
- ONDC Dispatch Resilience Benchmark
- general
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON order payload containing failure codes
Output: JSON response with action, target_fulfillment_id, and rationale
Execution harness: Python
Evaluation tools
- Claude Agents SDK · Agent Orchestration Framework
- OpenRouter · AI Workflow Automation
Recipe freeze marker
No recipe freeze time is recorded.