pub enum PendingCall {
Model {
seq: SequenceNumber,
request_hash: String,
},
Tool {
seq: SequenceNumber,
tool: String,
input: Value,
effect: Effect,
idempotency_key: Option<String>,
},
}Expand description
A recorded call intent with no recorded completion.
Carries everything needed to act on the gap: re-issue a model call, retry an idempotent call under its recorded key, or show a human the evidence for reconciling a write.
Variants§
Model
A model call was requested and never completed. Safe to re-issue.
Fields
§
seq: SequenceNumberThe log position of the intent.
Tool
A tool call was requested and never completed. What may be done next
depends on effect; see the Effect docs for the table.
Fields
§
seq: SequenceNumberThe log position of the intent.
Trait Implementations§
Source§impl Clone for PendingCall
impl Clone for PendingCall
Source§fn clone(&self) -> PendingCall
fn clone(&self) -> PendingCall
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 moreSource§impl Debug for PendingCall
impl Debug for PendingCall
Source§impl PartialEq for PendingCall
impl PartialEq for PendingCall
impl StructuralPartialEq for PendingCall
Auto Trait Implementations§
impl Freeze for PendingCall
impl RefUnwindSafe for PendingCall
impl Send for PendingCall
impl Sync for PendingCall
impl Unpin for PendingCall
impl UnsafeUnpin for PendingCall
impl UnwindSafe for PendingCall
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