Skip to main content

FastContextConfig

Defined in the context module.
Rust AI Agent SDK Configuration for FastContext.

Fields

NameTypeDescription
workspace_pathOption<String>Workspace path
modelStringLLM model for intelligent search
max_turnsusizeMaximum search turns
max_parallelusizeMaximum parallel tool calls
timeoutf64Timeout per tool call in seconds
cache_enabledboolEnable caching
cache_ttlu64Cache TTL in seconds

Methods

new

fn new() -> Self
Create a new config.

workspace_path

fn workspace_path(mut self, path: impl Into<String>) -> Self
Set workspace path. Parameters:
NameType
pathimpl Into&lt;String&gt;

model

fn model(mut self, model: impl Into<String>) -> Self
Set model. Parameters:
NameType
modelimpl Into&lt;String&gt;

max_turns

fn max_turns(mut self, turns: usize) -> Self
Set max turns. Parameters:
NameType
turnsusize

max_parallel

fn max_parallel(mut self, parallel: usize) -> Self
Set max parallel. Parameters:
NameType
parallelusize

timeout

fn timeout(mut self, timeout: f64) -> Self
Set timeout. Parameters:
NameType
timeoutf64

cache_enabled

fn cache_enabled(mut self, enabled: bool) -> Self
Enable/disable caching. Parameters:
NameType
enabledbool

cache_ttl

fn cache_ttl(mut self, ttl: u64) -> Self
Set cache TTL. Parameters:
NameType
ttlu64

Source

View on GitHub

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