pub struct Recorded<'a> { /* private fields */ }Expand description
The store’s answers, asked of the gate that replays a paused turn.
A resumed call is not asked of the user again: the answer is already in the row. But a call the
resumed tool makes itself — a subagent’s, or one a router re-dispatches — is a new decision
with no row, and that one goes to the live gate as usual rather than being waved through by
association. Defer for a row that has gone missing is the fail-closed answer: the transcript
says this call was waiting, so nothing else may stand in for the answer.
Implementations§
Trait Implementations§
Source§impl Approver for Recorded<'_>
impl Approver for Recorded<'_>
fn decide<'life0, 'life1, 'async_trait>(
&'life0 self,
call: &'life1 Pending,
) -> Pin<Box<dyn Future<Output = Decision> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn approve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool: &'life1 str,
summary: &'life2 str,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn approve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool: &'life1 str,
summary: &'life2 str,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
The yes/no form, for callers that have no third answer to give. A
Defer reads as “not
approved”, which is the fail-closed direction — but a caller that means to pause a run has
to implement decide itself, because this loses the distinction.Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Recorded<'a>
impl<'a> !UnwindSafe for Recorded<'a>
impl<'a> Forget for Recorded<'a>
impl<'a> Freeze for Recorded<'a>
impl<'a> Move for Recorded<'a>
impl<'a> Send for Recorded<'a>
impl<'a> Sync for Recorded<'a>
impl<'a> Unpin for Recorded<'a>
impl<'a> UnsafeUnpin for Recorded<'a>
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