pub struct RecapConfig {
pub on_resume: bool,
pub max_tokens: usize,
pub provider: String,
pub max_input_messages: usize,
}Expand description
[session.recap] — controls the session recap feature (#3064).
A recap summarises the previous conversation in a few sentences and is shown to the user when they resume a session that has a persisted digest.
§Example
[session.recap]
on_resume = true
max_tokens = 200
provider = ""
max_input_messages = 20Fields§
§on_resume: boolShow a recap of the previous session when resuming a conversation.
When true and a persisted digest exists for the conversation, the
agent emits a brief recap before accepting the first user message.
Default: true.
max_tokens: usizeMaximum tokens for the recap text.
Limits the length of the generated or cached recap. Default: 200.
provider: StringProvider name from [[llm.providers]] for recap LLM calls.
An empty string falls back to the primary provider. Default: "".
max_input_messages: usizeMaximum recent messages included when generating a fresh recap.
Used only when no cached digest is available (fresh-generation path).
Default: 20.
Trait Implementations§
Source§impl Clone for RecapConfig
impl Clone for RecapConfig
Source§fn clone(&self) -> RecapConfig
fn clone(&self) -> RecapConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more