pub struct PersonaConfig {
pub enabled: bool,
pub persona_provider: ProviderName,
pub min_confidence: f64,
pub min_messages: usize,
pub max_messages: usize,
pub extraction_timeout_secs: u64,
pub context_budget_tokens: usize,
}Expand description
Persona memory layer configuration (#2461).
When enabled = true, user preferences and domain knowledge are extracted from
conversation history via a cheap LLM provider and injected after the system prompt.
Fields§
§enabled: boolEnable persona memory extraction and injection. Default: false.
persona_provider: ProviderNameProvider name from [[llm.providers]] for persona extraction.
Should be a cheap/fast model. Falls back to the primary provider when empty.
min_confidence: f64Minimum confidence threshold for facts included in context. Default: 0.6.
min_messages: usizeMinimum user messages before extraction runs in a session. Default: 3.
max_messages: usizeMaximum messages sent to the LLM per extraction pass. Default: 10.
extraction_timeout_secs: u64LLM timeout for the extraction call in seconds. Default: 10.
context_budget_tokens: usizeToken budget allocated to persona context in assembly. Default: 500.
Trait Implementations§
Source§impl Clone for PersonaConfig
impl Clone for PersonaConfig
Source§fn clone(&self) -> PersonaConfig
fn clone(&self) -> PersonaConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PersonaConfig
impl Debug for PersonaConfig
Source§impl Default for PersonaConfig
impl Default for PersonaConfig
Source§impl<'de> Deserialize<'de> for PersonaConfigwhere
PersonaConfig: Default,
impl<'de> Deserialize<'de> for PersonaConfigwhere
PersonaConfig: 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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PersonaConfig
impl RefUnwindSafe for PersonaConfig
impl Send for PersonaConfig
impl Sync for PersonaConfig
impl Unpin for PersonaConfig
impl UnsafeUnpin for PersonaConfig
impl UnwindSafe for PersonaConfig
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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>
Wrap the input message
T in a tonic::Request