{"uid":"cap_qBtJho8zy3BfxolP_BiMQ","slug":"pay-to-compose-orchestrator-with-live-data-multi-stage-routing-and-0e7b2fe3","name":"Pay-to-Compose Orchestrator with Live Data, Multi-Stage Routing, and Judge Verification","description":"Pay-to-compose orchestrator: pulls live data (weather), routes it through two local-model stages, then an independent judge verifies the result against the source data before it ships (one bounded self-correction on rejection). Returns the composed answer, the judge's verdict, and a per-step cost ledger.","url":"https://linked-aimed-reproduced-changing.trycloudflare.com/v1/agent/compose?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["messages"],"properties":{"messages":{"type":"array","description":"OpenAI-style chat messages."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Sy9ClWoTtRUd8jHmzRhDm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches live weather data, routes it through two local-model processing stages, then uses an independent judge model to verify the composed answer against source data before returning it — with one bounded self-correction on rejection.","exampleAgentPrompt":"Compose a verified answer about whether I should reschedule my outdoor event this weekend — pull live weather, run it through your two-stage model pipeline, and make sure the judge confirms it before you send it back, including the cost breakdown for each step.","exampleUseCases":[{"title":"Weather-informed event planning decision","prompt":"I need a verified recommendation on whether to hold our outdoor fundraiser this Saturday in Denver — pull live weather data, compose a reasoned answer, and make sure the judge signs off on it before you give it to me."},{"title":"Auditable AI answer with cost ledger","prompt":"Can you compose an answer about current travel conditions in Chicago using live data, run it through your verification stages, and return the judge's verdict plus a breakdown of what each step cost?"},{"title":"Self-correcting agentic composition","prompt":"Compose a detailed weather briefing for our logistics team covering the next 48 hours in Seattle — use your multi-stage pipeline with judge verification, and if the judge rejects the first draft, try once more before you send it."}],"resultDescription":"Returns a JSON object containing: the final composed answer (post-verification), the judge's verdict (pass/fail and rationale), and a per-step cost ledger detailing USDC spend at each pipeline stage. If the judge rejected the initial output and a self-correction was attempted, the corrected result is returned.","failureModes":["Payment not received or invalid x402 header — returns 402 Payment Required","Live weather data fetch fails — pipeline may stall or return error before composition","Judge rejects output and single self-correction also fails — returns rejection verdict with no composed answer","Malformed or missing messages array in body — returns 400 validation error","Local model unavailable or GPU overloaded — returns 503 or timeout","Input messages exceed model context window — truncation or error"],"whenToPreferThis":"Choose this endpoint when you need a composed answer that is both grounded in live data (weather) and independently verified by a judge model before delivery — especially when you need an auditable cost ledger per step. Prefer it over a simple chat completion when result quality assurance and transparency about per-step costs matter. Not suitable for pure code tasks (use the code-review or refactor siblings), real-time low-latency needs, or tasks unrelated to weather-informed composition.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:39:03.112Z","isFirstParty":false,"canonicalSlug":"pay-to-compose-orchestrator-with-live-data-multi-stage-routing-and-0e7b2fe3"}