Skip to main content

ContextBudgeter

Defined in the context module.
Rust AI Agent SDK Manages context budget allocation.

Fields

Methods

new

Create a new budgeter for a model Parameters:

with_limits

Create with custom limits Parameters:

available

Get available tokens (total - output reserve)

allocate

Allocate budget

allocate_custom

Allocate with custom ratios Parameters:

Source

View on GitHub

praisonai/src/context/mod.rs at line 359

Rust Context Management

Rust Token Management

Rust Budget