ContextBudgeter
Defined in the context module.Rust AI Agent SDK Manages context budget allocation.
Fields
| Name | Type | Description |
|---|---|---|
model | String | Model name |
max_tokens | usize | Maximum tokens |
output_reserve | usize | Output reserve |
Methods
new
| Name | Type |
|---|---|
model | impl Into<String> |
with_limits
| Name | Type |
|---|---|
model | impl Into<String> |
max_tokens | usize |
output_reserve | usize |
available
allocate
allocate_custom
| Name | Type |
|---|---|
system_pct | f64 |
history_pct | f64 |
tools_pct | f64 |
Source
View on GitHub
praisonai/src/context/mod.rs at line 359
