pub struct DelegationEventStore { /* private fields */ }Implementations§
Source§impl DelegationEventStore
impl DelegationEventStore
Sourcepub fn open(
sessions: Arc<SessionStore>,
) -> Result<Arc<Self>, DelegationEventError>
pub fn open( sessions: Arc<SessionStore>, ) -> Result<Arc<Self>, DelegationEventError>
Folds delegation records from root logs only. Depth-1 records live in
the parent’s log, so roots are complete at startup; nested records arrive
later through Self::extend_from_payloads when their tree is loaded.
Sourcepub fn extend_from_payloads(
&self,
payloads: &[(SessionId, Option<RunId>, EventPayload)],
) -> Result<Vec<DelegationEntry>, DelegationEventError>
pub fn extend_from_payloads( &self, payloads: &[(SessionId, Option<RunId>, EventPayload)], ) -> Result<Vec<DelegationEntry>, DelegationEventError>
Folds delegation records harvested from child logs (§4.1.2), returning the entries that changed so the engine can rebuild only what moved.
pub fn reserve( &self, invocation_id: InvocationId, parent_session_id: SessionId, parent_run_id: RunId, parent_tool_call_id: ToolCallId, child_agent: AgentSnapshot, revisions: DelegationRuntimeRevisions, selected_suffix: Vec<FrozenModelBinding>, cache_strategies: Vec<Option<FrozenCacheStrategy>>, request_fingerprint: Sha256Digest, request: DelegateRequestPayload, ) -> Result<DelegationEntry, DelegationEventError>
pub fn mark_started( &self, invocation_id: InvocationId, ) -> Result<(), DelegationEventError>
pub fn mark_run_started( &self, invocation_id: InvocationId, child_run_id: RunId, ) -> Result<(), DelegationEventError>
pub fn mark_run_attached( &self, invocation_id: InvocationId, child_run_id: RunId, ) -> Result<(), DelegationEventError>
pub fn mark_finished( &self, invocation_id: InvocationId, status: SessionStatus, ) -> Result<(), DelegationEventError>
pub fn mark_finished_with_reason( &self, invocation_id: InvocationId, status: SessionStatus, reason: Option<SafeErrorMessage>, ) -> Result<(), DelegationEventError>
pub fn get(&self, invocation_id: InvocationId) -> Option<DelegationEntry>
pub fn entries(&self) -> Vec<DelegationEntry>
pub fn reconcile_parent( &self, parent_session_id: SessionId, ) -> Result<(), DelegationEventError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DelegationEventStore
impl RefUnwindSafe for DelegationEventStore
impl Send for DelegationEventStore
impl Sync for DelegationEventStore
impl Unpin for DelegationEventStore
impl UnsafeUnpin for DelegationEventStore
impl UnwindSafe for DelegationEventStore
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