pub struct SqliteAgentStorage { /* private fields */ }Expand description
SQLite-backed implementation of AgentStorage.
Implementations§
Trait Implementations§
Source§impl AgentStorage for SqliteAgentStorage
impl AgentStorage for SqliteAgentStorage
Source§fn create_session<'life0, 'async_trait>(
&'life0 self,
event: SessionInitEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_session<'life0, 'async_trait>(
&'life0 self,
event: SessionInitEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Persist the initial event that starts a new session.
Source§fn update_session<'life0, 'async_trait>(
&'life0 self,
event: AgentEventAny,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_session<'life0, 'async_trait>(
&'life0 self,
event: AgentEventAny,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Append an event to an existing session.
Source§fn get_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<AgentEventAny>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<AgentEventAny>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieve all events for a given session, ordered by time.
Source§impl Clone for SqliteAgentStorage
impl Clone for SqliteAgentStorage
Source§fn clone(&self) -> SqliteAgentStorage
fn clone(&self) -> SqliteAgentStorage
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for SqliteAgentStorage
impl !UnwindSafe for SqliteAgentStorage
impl Freeze for SqliteAgentStorage
impl Send for SqliteAgentStorage
impl Sync for SqliteAgentStorage
impl Unpin for SqliteAgentStorage
impl UnsafeUnpin for SqliteAgentStorage
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