pub struct AgentStorage {
pub enabled: bool,
pub summary_after_characters: Option<u32>,
}Expand description
Optional persisted history for an agent.
Fields§
§enabled: boolKeep threads and messages in generated resources.
summary_after_characters: Option<u32>Refresh the rolling summary once the unsummarised tail crosses this many characters.
Implementations§
Source§impl AgentStorage
impl AgentStorage
pub fn summary_after_characters(&self, default: usize) -> usize
Trait Implementations§
Source§impl Clone for AgentStorage
impl Clone for AgentStorage
Source§fn clone(&self) -> AgentStorage
fn clone(&self) -> AgentStorage
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 AgentStorage
impl Debug for AgentStorage
Source§impl Default for AgentStorage
impl Default for AgentStorage
Source§fn default() -> AgentStorage
fn default() -> AgentStorage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentStoragewhere
AgentStorage: Default,
impl<'de> Deserialize<'de> for AgentStoragewhere
AgentStorage: 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 AgentStorage
impl RefUnwindSafe for AgentStorage
impl Send for AgentStorage
impl Sync for AgentStorage
impl Unpin for AgentStorage
impl UnsafeUnpin for AgentStorage
impl UnwindSafe for AgentStorage
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