{"uid":"cap_Wj3eIL3Cqt0fXAPepC0Qo","slug":"batch-dependency-levels-9c9be6b3","name":"Batch Dependency Levels","description":"Batch Dependency Levels: Batch Dependency Levels topologically groups bounded jobs into executable dependency levels from bounded caller-supplied values without an external provider. Call Batch Dependency Levels before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for Batch Dependency Levels as versioned deterministic JSON. Pric…","url":"https://api.delx.ai/api/v1/x402/batch-dependency-levels?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"jobs":{"type":"array","items":{"type":"object","maxProperties":128,"additionalProperties":true},"maxItems":256,"description":"Jobs supplied to Batch Dependency Levels; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"levels":[["a"],["b","c"]],"cycle_or_missing":[]},"schema":"delx/util-batch-dependency-levels/v1","status":"pass","evidence":{"retained":false,"input_sha256":"cec84ec4f047849cfa3ecf3ed56401549860d2fc882012e6aa7b29aa2b2dbc19","external_calls":0},"operation":"data_batch:batch_dependency_levels"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_C241COqvqffQSDu-heVqi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Topologically sorts a batch of jobs into ordered dependency levels so they can be executed in the correct sequence","exampleAgentPrompt":"I have a batch of 12 jobs where some depend on others finishing first — can you topologically sort them into dependency levels so I know which ones can run in parallel and which must wait?","exampleUseCases":[{"title":"Pipeline stage ordering for CI/CD","prompt":"I've got a list of build tasks — compile, test, lint, deploy, and a few others — and they all have prerequisites. Can you group them into dependency levels so I know which stages can run in parallel and in what order the rest need to go?"},{"title":"Data pipeline execution planning","prompt":"I have 30 ETL jobs where some jobs need the output of others before they can start. Can you sort them into topological dependency levels so I can schedule the independent ones together and queue the rest in the right order?"},{"title":"Pre-flight check before handing off to downstream tool","prompt":"Before I send this batch plan to the execution engine, can you organize these jobs into dependency levels so the downstream tool gets a properly ordered, structured plan it can follow without conflicts?"}],"resultDescription":"Returns a versioned deterministic JSON object containing the jobs grouped into ordered dependency levels (waves/tiers), along with counts of jobs per level, normalized job values, and a versioned result contract — enabling downstream tools or agents to execute groups in parallel where safe and sequentially where required.","failureModes":["Circular dependency detected — jobs form a cycle with no valid topological ordering","Input array exceeds maximum of 256 jobs — request rejected","Individual job object exceeds 128 properties limit","Malformed job objects that cannot be parsed","Missing or empty jobs array in the request body","Payment failure via x402 protocol — call not processed"],"whenToPreferThis":"Use this endpoint when you need a deterministic, versioned topological sort of a job batch before handing the plan to a downstream execution engine or tool with a strict ordering contract. It is ideal when jobs have dependency relationships that must be resolved into parallel-safe execution waves, and when you need a structured, normalized result with counts rather than building your own graph sort logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:38:40.359Z","isFirstParty":false,"canonicalSlug":"batch-dependency-levels-9c9be6b3"}