Fast Context Config • Rust AI Agent SDK
FastContextConfig: Configuration for FastContext.
FastContextConfig
Defined in the context module.
Rust AI Agent SDK
Configuration for FastContext.
Fields
| Name | Type | Description |
|---|---|---|
workspace_path | Option<String> | Workspace path |
model | String | LLM model for intelligent search |
max_turns | usize | Maximum search turns |
max_parallel | usize | Maximum parallel tool calls |
timeout | f64 | Timeout per tool call in seconds |
cache_enabled | bool | Enable caching |
cache_ttl | u64 | Cache TTL in seconds |
Methods
new
fn new() -> SelfCreate a new config.
workspace_path
fn workspace_path(mut self, path: impl Into<String>) -> SelfSet workspace path.
Parameters:
| Name | Type |
|---|---|
path | impl Into<String> |
model
fn model(mut self, model: impl Into<String>) -> SelfSet model.
Parameters:
| Name | Type |
|---|---|
model | impl Into<String> |
max_turns
fn max_turns(mut self, turns: usize) -> SelfSet max turns.
Parameters:
| Name | Type |
|---|---|
turns | usize |
max_parallel
fn max_parallel(mut self, parallel: usize) -> SelfSet max parallel.
Parameters:
| Name | Type |
|---|---|
parallel | usize |
timeout
fn timeout(mut self, timeout: f64) -> SelfSet timeout.
Parameters:
| Name | Type |
|---|---|
timeout | f64 |
cache_enabled
fn cache_enabled(mut self, enabled: bool) -> SelfEnable/disable caching.
Parameters:
| Name | Type |
|---|---|
enabled | bool |
cache_ttl
fn cache_ttl(mut self, ttl: u64) -> SelfSet cache TTL.
Parameters:
| Name | Type |
|---|---|
ttl | u64 |
Source
View on GitHubpraisonai/src/context/mod.rs at line 698