Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
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
Create a new config.
workspace_path
fn workspace_path(mut self, path: impl Into<String>) -> Self
Set workspace path.
Parameters:
| Name | Type |
|---|
path | impl Into<String> |
model
fn model(mut self, model: impl Into<String>) -> Self
Set model.
Parameters:
| Name | Type |
|---|
model | impl Into<String> |
max_turns
fn max_turns(mut self, turns: usize) -> Self
Set max turns.
Parameters:
max_parallel
fn max_parallel(mut self, parallel: usize) -> Self
Set max parallel.
Parameters:
timeout
fn timeout(mut self, timeout: f64) -> Self
Set timeout.
Parameters:
cache_enabled
fn cache_enabled(mut self, enabled: bool) -> Self
Enable/disable caching.
Parameters:
cache_ttl
fn cache_ttl(mut self, ttl: u64) -> Self
Set cache TTL.
Parameters:
Source
View on GitHub
praisonai/src/context/mod.rs at line 698