pub struct InMemoryToolJournal { /* private fields */ }Expand description
In-memory tool call journal.
Entries are stored per-session in a lock-free concurrent map.
Implementations§
Trait Implementations§
Source§impl Debug for InMemoryToolJournal
impl Debug for InMemoryToolJournal
Source§impl Default for InMemoryToolJournal
impl Default for InMemoryToolJournal
Source§impl ToolJournalPort for InMemoryToolJournal
impl ToolJournalPort for InMemoryToolJournal
Source§fn append<'life0, 'async_trait>(
&'life0 self,
entry: JournalEntry,
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn append<'life0, 'async_trait>(
&'life0 self,
entry: JournalEntry,
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Record a completed tool call in the journal.
Source§fn lookup<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
fingerprint: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<JournalEntry>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn lookup<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
fingerprint: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<JournalEntry>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Look up a previously recorded result for the same tool call. Read more
Source§fn entries<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<JournalEntry>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn entries<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<JournalEntry>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Return all journal entries for a session (for diagnostics).
Auto Trait Implementations§
impl !Freeze for InMemoryToolJournal
impl RefUnwindSafe for InMemoryToolJournal
impl Send for InMemoryToolJournal
impl Sync for InMemoryToolJournal
impl Unpin for InMemoryToolJournal
impl UnsafeUnpin for InMemoryToolJournal
impl UnwindSafe for InMemoryToolJournal
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