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 moreSource§impl Debug for RecapConfig
impl Debug for RecapConfig
Source§impl Default for RecapConfig
impl Default for RecapConfig
Source§impl<'de> Deserialize<'de> for RecapConfigwhere
RecapConfig: Default,
impl<'de> Deserialize<'de> for RecapConfigwhere
RecapConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for RecapConfig
impl RefUnwindSafe for RecapConfig
impl Send for RecapConfig
impl Sync for RecapConfig
impl Unpin for RecapConfig
impl UnsafeUnpin for RecapConfig
impl UnwindSafe for RecapConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request