{"uid":"cap_Yo38icivjHMkJhyzGQ0V3","slug":"delx-step-budget-plan-6a3ab02a","name":"Delx Step Budget Plan","description":"Allocate a total millisecond budget across ordered workflow steps using optional weights — call when you must split one wall-clock budget across ordered steps. Use before side effects when composing multi-step agent jobs—the same loyalty/workflow demand band agents already pay for on Bazaar, but fully local. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and…","url":"https://api.delx.ai/api/v1/x402/step-budget-plan","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"steps":{"type":"array","description":"Ordered workflow step names to allocate the total budget across."},"weights":{"type":"array","description":"Optional relative weights aligned with steps; equal weights if omitted."},"total_budget_ms":{"type":"number","description":"Total millisecond budget to split across steps."}}},"responseSchema":{"type":"json","example":{"plan":[{"step":"fetch","weight":1,"budget_ms":750},{"step":"parse","weight":2,"budget_ms":1500},{"step":"decide","weight":1,"budget_ms":750}],"schema":"delx/util-step-budget-plan/v1","step_count":3,"total_budget_ms":3000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gtB7aRmeVV1nqb8Wwqmg0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Allocates a total millisecond time budget across ordered workflow steps using optional relative weights, returning a deterministic per-step breakdown.","exampleAgentPrompt":"Split a 10000ms total budget across these three workflow steps — 'fetch', 'process', and 'write' — giving 'process' twice the weight of the others.","exampleUseCases":[{"title":"Timeout planning for multi-step agent pipeline","prompt":"I have a 6000ms wall-clock budget for a three-step agent job: 'validate_input', 'call_llm', and 'store_result'. Give 'call_llm' three times the weight of the other two steps and tell me how many milliseconds each step should get."},{"title":"Equal-weight budget split for data pipeline","prompt":"Split 8000 total milliseconds equally across these five pipeline stages: 'ingest', 'parse', 'enrich', 'score', and 'emit' — no custom weights, just divide it evenly."},{"title":"Pre-execution budget allocation before side effects","prompt":"Before I kick off my order-processing workflow, allocate a 4500ms budget across 'auth_check', 'inventory_lookup', and 'charge_payment', weighting 'charge_payment' at twice the importance of the others so I know when to timeout each step."}],"resultDescription":"A deterministic JSON object mapping each workflow step name to its allocated millisecond budget, computed from the total budget and optional weights. If no weights are provided, the budget is split equally. The response is machine-readable and stateless.","failureModes":["Mismatched array lengths between steps and weights returns a validation error","Zero or negative total_budget_ms may produce a 400 bad request","Empty steps array returns an error or trivial result","All-zero weights array may cause a division-by-zero or validation error","Payment failure via x402 returns a 402 response before computation occurs"],"whenToPreferThis":"Use this endpoint when you need a deterministic, locally-computed millisecond budget split across an ordered list of workflow steps before executing side effects. Prefer it over manual division when you need weighted allocation, machine-readable JSON output, or want a stateless utility with no data retention. Ideal for multi-step agent orchestration where predictable per-step timeouts are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:57:47.463Z","isFirstParty":false}