TaskBudget - Python SDK

TaskBudget method reference

The Python SDK and docs are currently in beta. Report issues on GitHub.

Task budget for an agentic turn. The model sees a countdown of remaining tokens and uses it to prioritize work and wind down gracefully. Advisory — does not enforce a hard cap.

Fields

FieldTypeRequiredDescription
remainingOptionalNullable[int]N/A
totalint✔️N/A
typecomponents.TypeTokens✔️N/A