pub struct InMemoryBackend { /* private fields */ }Implementations§
Trait Implementations§
Source§impl CheckpointBackend for InMemoryBackend
impl CheckpointBackend for InMemoryBackend
Source§fn init_run(&self, run_id: RunId, task: &str, _run_dir: &str) -> Result<()>
fn init_run(&self, run_id: RunId, task: &str, _run_dir: &str) -> Result<()>
Initialize a new run.
Source§fn init_run_with_meta(
&self,
run_id: RunId,
task: &str,
_run_dir: &str,
workflow_meta: Value,
) -> Result<()>
fn init_run_with_meta( &self, run_id: RunId, task: &str, _run_dir: &str, workflow_meta: Value, ) -> Result<()>
Initialize a new run with declarative workflow metadata.
Source§fn open_run(&self, run_id: RunId) -> Result<Option<RunCheckpoint>>
fn open_run(&self, run_id: RunId) -> Result<Option<RunCheckpoint>>
Open an existing run for resume. Returns None if not found.
Source§fn append_event(&self, event: &AgentEvent) -> Result<()>
fn append_event(&self, event: &AgentEvent) -> Result<()>
Append an event to the log and update checkpoint state.
Source§fn upsert_agent_result(&self, cache: &AgentResultCache) -> Result<()>
fn upsert_agent_result(&self, cache: &AgentResultCache) -> Result<()>
Insert or update an agent result.
Source§fn upsert_agent_session(&self, session: &AgentSessionCheckpoint) -> Result<()>
fn upsert_agent_session(&self, session: &AgentSessionCheckpoint) -> Result<()>
Insert or update an agent session.
Source§fn get_checkpoint(&self) -> Option<RunCheckpoint>
fn get_checkpoint(&self) -> Option<RunCheckpoint>
Get current checkpoint (from in-memory cache).
Source§fn get_findings(&self) -> Vec<Finding>
fn get_findings(&self) -> Vec<Finding>
Get all findings.
Source§fn get_event_log(&self) -> Result<Vec<AgentEvent>>
fn get_event_log(&self) -> Result<Vec<AgentEvent>>
Get event log as a vector.
Source§fn can_resume(&self) -> bool
fn can_resume(&self) -> bool
Check if a run can be resumed.
Source§fn reset_status_to_running(&self) -> Result<()>
fn reset_status_to_running(&self) -> Result<()>
Reset checkpoint status to Running.
Source§fn save_checkpoint(&self, checkpoint: &RunCheckpoint) -> Result<()>
fn save_checkpoint(&self, checkpoint: &RunCheckpoint) -> Result<()>
Save checkpoint (full overwrite).
Source§impl Debug for InMemoryBackend
impl Debug for InMemoryBackend
Source§impl Default for InMemoryBackend
impl Default for InMemoryBackend
Source§fn default() -> InMemoryBackend
fn default() -> InMemoryBackend
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for InMemoryBackend
impl RefUnwindSafe for InMemoryBackend
impl Send for InMemoryBackend
impl Sync for InMemoryBackend
impl Unpin for InMemoryBackend
impl UnsafeUnpin for InMemoryBackend
impl UnwindSafe for InMemoryBackend
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