pub struct TrajectoryConfig {
pub enabled: bool,
pub trajectory_provider: ProviderName,
pub context_budget_tokens: usize,
pub max_messages: usize,
pub extraction_timeout_secs: u64,
pub recall_top_k: usize,
pub min_confidence: f64,
}Expand description
Trajectory-informed memory configuration (#2498).
When enabled = true, tool-call turns are analyzed by a fast LLM provider to extract
procedural (reusable how-to) and episodic (one-off event) entries stored per-conversation.
Procedural entries are injected into context as “past experience” during assembly.
Fields§
§enabled: boolEnable trajectory extraction and context injection. Default: false.
trajectory_provider: ProviderNameProvider name from [[llm.providers]] for extraction.
Should be a fast/cheap model. Falls back to the primary provider when empty.
context_budget_tokens: usizeToken budget allocated to trajectory hints in context assembly. Default: 400.
max_messages: usizeMaximum messages fed to the extraction LLM per pass. Default: 10.
extraction_timeout_secs: u64LLM timeout for the extraction call in seconds. Default: 10.
recall_top_k: usizeNumber of procedural entries retrieved for context injection. Default: 5.
min_confidence: f64Minimum confidence score for entries included in context. Default: 0.6.
Trait Implementations§
Source§impl Clone for TrajectoryConfig
impl Clone for TrajectoryConfig
Source§fn clone(&self) -> TrajectoryConfig
fn clone(&self) -> TrajectoryConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more