ReqManagedAgents.Providers.ClaudeManagedAgents.Budget (ReqManagedAgents v0.13.2)

Copy Markdown View Source

Claude Managed Agents budget rendering and create-response confirmation.

Summary

Functions

Whether a decoded provider budget field carries exactly this budget.

Render the budget as the provider's create-session budget field.

Functions

confirmed?(budget, arg2)

@spec confirmed?(ReqManagedAgents.Budget.t(), term()) :: boolean()

Whether a decoded provider budget field carries exactly this budget.

Fields beyond the three the budget defines are ignored; a missing, nil or differing value is not confirmation.

to_wire(budget)

@spec to_wire(ReqManagedAgents.Budget.t()) :: map()

Render the budget as the provider's create-session budget field.

The amount is a whole-cent string, which is the provider's wire form.