ContextConfig
Defined in the context module.Rust AI Agent SDK Configuration for context management.
Fields
| Name | Type | Description |
|---|---|---|
model | String | Model name for token limits |
max_tokens | usize | Maximum context tokens (0 = auto from model) |
strategy | OptimizerStrategy | Optimization strategy |
monitoring | bool | Enable context monitoring |
output_reserve_pct | f64 | Output reserve percentage |
Methods
new
model
| Name | Type |
|---|---|
model | impl Into<String> |
max_tokens
| Name | Type |
|---|---|
tokens | usize |
strategy
| Name | Type |
|---|---|
strategy | OptimizerStrategy |
with_monitoring
output_reserve_pct
| Name | Type |
|---|---|
pct | f64 |
Source
View on GitHub
praisonai/src/context/mod.rs at line 194
