Agent Billing
Principle
Agents should not treat billing as an afterthought. They should inspect billing posture before expensive loops, preserve billing metadata in outputs, and warn before they cross from cheap reads into repeated or heavy workflows.Required checks
Before a multi-step workflow:GET /v1/billingGET /v1/limits
Agent-safe behavior
- prefer one targeted request over a wide fan-out
- keep
Request-Id,traceparent,Omni-Meter-Class,Omni-Plan-Key,Omni-Billing-State, andOmni-Free-Grant-Remaining - warn before repeated section extraction, compare workflows, or artifact generation
- stop and ask for card attachment if the org is in
payg_pending_card