pub struct SupabaseCheckpointStore { /* private fields */ }Expand description
Supabase-backed checkpoint store.
Implementations§
Source§impl SupabaseCheckpointStore
impl SupabaseCheckpointStore
pub fn new(client: SupabaseClient) -> Self
Trait Implementations§
Source§impl CheckpointStore for SupabaseCheckpointStore
impl CheckpointStore for SupabaseCheckpointStore
Source§fn save(
&self,
checkpoint: RunCheckpoint,
latest_journal_seq: u64,
) -> Result<CheckpointSaveOutcome, AgentError>
fn save( &self, checkpoint: RunCheckpoint, latest_journal_seq: u64, ) -> Result<CheckpointSaveOutcome, AgentError>
Saves checkpoint accelerator data for a run at a journal sequence.
Implementations write or replace checkpoint accelerator data for the run without
changing journal truth.
Source§fn load_latest(
&self,
run_id: &RunId,
) -> Result<Option<RunCheckpoint>, AgentError>
fn load_latest( &self, run_id: &RunId, ) -> Result<Option<RunCheckpoint>, AgentError>
Loads the latest checkpoint accelerator data for a run.
Implementations read checkpoint storage for the requested run and return matching
checkpoint data without altering durable journal truth.
Source§fn load_at_or_before(
&self,
run_id: &RunId,
cursor: &JournalCursor,
) -> Result<Option<RunCheckpoint>, AgentError>
fn load_at_or_before( &self, run_id: &RunId, cursor: &JournalCursor, ) -> Result<Option<RunCheckpoint>, AgentError>
Loads checkpoint accelerator data at or before the requested journal
cursor.
Implementations read checkpoint storage for the requested run and return matching
checkpoint data without altering durable journal truth.
Source§fn prune(
&self,
run_id: &RunId,
policy: CheckpointPrunePolicy,
) -> Result<CheckpointPruneReport, AgentError>
fn prune( &self, run_id: &RunId, policy: CheckpointPrunePolicy, ) -> Result<CheckpointPruneReport, AgentError>
Prunes checkpoint accelerator data according to retention policy.
Implementations remove checkpoint accelerator entries according to retention policy
without deleting journal truth.
Source§impl Clone for SupabaseCheckpointStore
impl Clone for SupabaseCheckpointStore
Source§fn clone(&self) -> SupabaseCheckpointStore
fn clone(&self) -> SupabaseCheckpointStore
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 SupabaseCheckpointStore
impl !UnwindSafe for SupabaseCheckpointStore
impl Freeze for SupabaseCheckpointStore
impl Send for SupabaseCheckpointStore
impl Sync for SupabaseCheckpointStore
impl Unpin for SupabaseCheckpointStore
impl UnsafeUnpin for SupabaseCheckpointStore
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