pub struct AgentSessions {
pub enabled: bool,
pub max_bytes: u64,
pub target_bytes: u64,
}Expand description
Saving Agent conversations and the size bounds of their store. When the store grows past
max_bytes, the oldest sessions are deleted until it is at or below target_bytes.
Fields§
§enabled: bool§max_bytes: u64§target_bytes: u64Trait Implementations§
Source§impl Clone for AgentSessions
impl Clone for AgentSessions
impl Copy for AgentSessions
Source§impl Debug for AgentSessions
impl Debug for AgentSessions
Source§impl Default for AgentSessions
impl Default for AgentSessions
impl Eq for AgentSessions
Source§impl PartialEq for AgentSessions
impl PartialEq for AgentSessions
Source§impl Serialize for AgentSessions
impl Serialize for AgentSessions
impl StructuralPartialEq for AgentSessions
Auto Trait Implementations§
impl Freeze for AgentSessions
impl RefUnwindSafe for AgentSessions
impl Send for AgentSessions
impl Sync for AgentSessions
impl Unpin for AgentSessions
impl UnsafeUnpin for AgentSessions
impl UnwindSafe for AgentSessions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.