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

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

rust
fn new() -> Self

Create a new config.

workspace_path

rust
fn workspace_path(mut self, path: impl Into<String>) -> Self

Set workspace path.

Parameters:

NameType
pathimpl Into&lt;String&gt;

model

rust
fn model(mut self, model: impl Into<String>) -> Self

Set model.

Parameters:

NameType
modelimpl Into&lt;String&gt;

max_turns

rust
fn max_turns(mut self, turns: usize) -> Self

Set max turns.

Parameters:

NameType
turnsusize

max_parallel

rust
fn max_parallel(mut self, parallel: usize) -> Self

Set max parallel.

Parameters:

NameType
parallelusize

timeout

rust
fn timeout(mut self, timeout: f64) -> Self

Set timeout.

Parameters:

NameType
timeoutf64

cache_enabled

rust
fn cache_enabled(mut self, enabled: bool) -> Self

Enable/disable caching.

Parameters:

NameType
enabledbool

cache_ttl

rust
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


Related Documentation