pub struct CompactionExpertConfig {
pub agent_id: Option<String>,
pub model: String,
pub system_prompt: Option<String>,
pub memory_expert_prompt: Option<String>,
}Expand description
Identity snapshot of the agent that produced a compacted session summary.
Stored in the session metadata so that a resumed session can reconstruct a memory-expert agent for follow-up questions.
Fields§
§agent_id: Option<String>Agent identifier at the time of compaction, if available.
model: StringModel that produced the compacted summary.
system_prompt: Option<String>System prompt the compacting agent was using.
memory_expert_prompt: Option<String>Prompt appended when replaying the summary writer as a memory expert.
Trait Implementations§
Source§impl Clone for CompactionExpertConfig
impl Clone for CompactionExpertConfig
Source§fn clone(&self) -> CompactionExpertConfig
fn clone(&self) -> CompactionExpertConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CompactionExpertConfig
impl Debug for CompactionExpertConfig
Source§impl<'de> Deserialize<'de> for CompactionExpertConfig
impl<'de> Deserialize<'de> for CompactionExpertConfig
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
Source§impl PartialEq for CompactionExpertConfig
impl PartialEq for CompactionExpertConfig
Source§fn eq(&self, other: &CompactionExpertConfig) -> bool
fn eq(&self, other: &CompactionExpertConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CompactionExpertConfig
impl Serialize for CompactionExpertConfig
impl Eq for CompactionExpertConfig
impl StructuralPartialEq for CompactionExpertConfig
Auto Trait Implementations§
impl Freeze for CompactionExpertConfig
impl RefUnwindSafe for CompactionExpertConfig
impl Send for CompactionExpertConfig
impl Sync for CompactionExpertConfig
impl Unpin for CompactionExpertConfig
impl UnsafeUnpin for CompactionExpertConfig
impl UnwindSafe for CompactionExpertConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.