AxLlmQueryBudgetState Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxLlmQueryBudgetState.md type AxLlmQueryBudgetState

AxLlmQueryBudgetState

TypeScript
type AxLlmQueryBudgetState = object;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/agent/agentInternal/agentInternalTypes.ts#L55

Budget state for llmQuery calls. Uses a shared global object for cross-tree tracking plus per-agent local counters to prevent any single child from starving siblings.

Properties

global

TypeScript
global: object;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/agent/agentInternal/agentInternalTypes.ts#L57

Global usage counter shared across all descendants (by reference).

used

TypeScript
used: number;

globalMax

TypeScript
globalMax: number;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/agent/agentInternal/agentInternalTypes.ts#L59

Global maximum across the entire agent tree.


localMax

TypeScript
localMax: number;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/agent/agentInternal/agentInternalTypes.ts#L63

Per-agent maximum.


localUsed

TypeScript
localUsed: number;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/agent/agentInternal/agentInternalTypes.ts#L61

Local usage counter for this specific agent.

Docs