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/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/agent/agentInternal/agentInternalTypes.ts#L56

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/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/agent/agentInternal/agentInternalTypes.ts#L58

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/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/agent/agentInternal/agentInternalTypes.ts#L60

Global maximum across the entire agent tree.


localMax

TypeScript
localMax: number;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/agent/agentInternal/agentInternalTypes.ts#L64

Per-agent maximum.


localUsed

TypeScript
localUsed: number;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/agent/agentInternal/agentInternalTypes.ts#L62

Local usage counter for this specific agent.

Docs