pub struct SessionStoreExecutor { /* private fields */ }Expand description
Executor adapter that persists runtime checkpoints into a session store.
Implementations§
Source§impl SessionStoreExecutor
impl SessionStoreExecutor
Sourcepub fn new(store: Arc<dyn SessionStore>, session_id: SessionId) -> Self
pub fn new(store: Arc<dyn SessionStore>, session_id: SessionId) -> Self
Create a checkpoint executor for one session.
Sourcepub fn new_fenced(
store: Arc<dyn SessionStore>,
session_id: SessionId,
admission_lease: RunAdmissionLease,
) -> Self
pub fn new_fenced( store: Arc<dyn SessionStore>, session_id: SessionId, admission_lease: RunAdmissionLease, ) -> Self
Create a checkpoint executor fenced to one active run admission.
Sourcepub const fn session_id(&self) -> &SessionId
pub const fn session_id(&self) -> &SessionId
Return the session id associated with this executor.
Trait Implementations§
Source§impl AgentExecutor for SessionStoreExecutor
impl AgentExecutor for SessionStoreExecutor
Source§fn requires_durable_hitl_preparation(&self) -> bool
fn requires_durable_hitl_preparation(&self) -> bool
Return whether sessions using this executor must route HITL effects through durable
continuation preparation and exclusive started-claim authorization. Read more
Source§fn checkpoint<'life0, 'async_trait>(
&'life0 self,
checkpoint: AgentCheckpoint,
) -> Pin<Box<dyn Future<Output = Result<AgentExecutionDecision, AgentExecutorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn checkpoint<'life0, 'async_trait>(
&'life0 self,
checkpoint: AgentCheckpoint,
) -> Pin<Box<dyn Future<Output = Result<AgentExecutionDecision, AgentExecutorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Persist or inspect a checkpoint and decide whether execution should continue.
Source§impl Clone for SessionStoreExecutor
impl Clone for SessionStoreExecutor
Source§fn clone(&self) -> SessionStoreExecutor
fn clone(&self) -> SessionStoreExecutor
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 SessionStoreExecutor
impl !UnwindSafe for SessionStoreExecutor
impl Freeze for SessionStoreExecutor
impl Send for SessionStoreExecutor
impl Sync for SessionStoreExecutor
impl Unpin for SessionStoreExecutor
impl UnsafeUnpin for SessionStoreExecutor
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