pub struct PostgresToolExecutionStore { /* private fields */ }Implementations§
Source§impl PostgresToolExecutionStore
impl PostgresToolExecutionStore
pub fn new(client: PostgresStoreClient) -> Self
Trait Implementations§
Source§impl Clone for PostgresToolExecutionStore
impl Clone for PostgresToolExecutionStore
Source§fn clone(&self) -> PostgresToolExecutionStore
fn clone(&self) -> PostgresToolExecutionStore
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 ToolExecutionStore for PostgresToolExecutionStore
impl ToolExecutionStore for PostgresToolExecutionStore
Source§fn put_tool_execution_record(
&self,
record: ToolExecutionStoreRecord,
) -> Result<ToolExecutionStoreCursor, AgentError>
fn put_tool_execution_record( &self, record: ToolExecutionStoreRecord, ) -> Result<ToolExecutionStoreCursor, AgentError>
Stores one redacted tool-execution projection row.
Source§fn records_for_run(
&self,
run_id: &RunId,
) -> Result<Vec<ToolExecutionStoreRecord>, AgentError>
fn records_for_run( &self, run_id: &RunId, ) -> Result<Vec<ToolExecutionStoreRecord>, AgentError>
Reads all projection rows for one run, ordered by journal sequence.
Source§fn records_for_effect_id(
&self,
effect_id: &EffectId,
) -> Result<Vec<ToolExecutionStoreRecord>, AgentError>
fn records_for_effect_id( &self, effect_id: &EffectId, ) -> Result<Vec<ToolExecutionStoreRecord>, AgentError>
Reads projection rows with the supplied effect id.
Source§fn record_for_tool_call(
&self,
run_id: &RunId,
tool_call_id: &ToolCallId,
) -> Result<Option<ToolExecutionStoreRecord>, AgentError>
fn record_for_tool_call( &self, run_id: &RunId, tool_call_id: &ToolCallId, ) -> Result<Option<ToolExecutionStoreRecord>, AgentError>
Reads one projection row for a tool call.
Source§fn records_for_idempotency_key(
&self,
idempotency_key: &IdempotencyKey,
) -> Result<Vec<ToolExecutionStoreRecord>, AgentError>
fn records_for_idempotency_key( &self, idempotency_key: &IdempotencyKey, ) -> Result<Vec<ToolExecutionStoreRecord>, AgentError>
Reads projection rows with the supplied idempotency key.
Source§fn records_after_journal_seq(
&self,
run_id: &RunId,
journal_seq: u64,
) -> Result<Vec<ToolExecutionStoreRecord>, AgentError>
fn records_after_journal_seq( &self, run_id: &RunId, journal_seq: u64, ) -> Result<Vec<ToolExecutionStoreRecord>, AgentError>
Reads projection rows for one run after a durable journal sequence.
Source§fn records_in_journal_cursor_range(
&self,
run_id: &RunId,
after: Option<&JournalCursor>,
through: Option<&JournalCursor>,
) -> Result<Vec<ToolExecutionStoreRecord>, AgentError>
fn records_in_journal_cursor_range( &self, run_id: &RunId, after: Option<&JournalCursor>, through: Option<&JournalCursor>, ) -> Result<Vec<ToolExecutionStoreRecord>, AgentError>
Reads projection rows for one run inside a durable journal cursor range. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for PostgresToolExecutionStore
impl !UnwindSafe for PostgresToolExecutionStore
impl Freeze for PostgresToolExecutionStore
impl Send for PostgresToolExecutionStore
impl Sync for PostgresToolExecutionStore
impl Unpin for PostgresToolExecutionStore
impl UnsafeUnpin for PostgresToolExecutionStore
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