Budget Level • Rust AI Agent SDK

BudgetLevel: Predefined budget levels for thinking.

BudgetLevel

Defined in the thinking module.

Rust AI Agent SDK

Predefined budget levels for thinking.

Fields

NameTypeDescription
Minimalvariant–
budgetvariant–
MinimalvariantMinimal budget (2000 tokens)
Lowvariant–
budgetvariant–
LowvariantLow budget (4000 tokens)
Mediumvariant–
budgetvariant–
MediumvariantMedium budget (8000 tokens)
Highvariant–
budgetvariant–
HighvariantHigh budget (16000 tokens)
Maximumvariant–
budgetvariant–
MaximumvariantMaximum budget (32000 tokens)

Methods

tokens

rust
fn tokens(&self) -> usize

Get the token allocation for this level.

Source

View on GitHub

praisonai/src/thinking/mod.rs at line 0


Related Documentation