pub struct Receipt {Show 13 fields
pub run_id: RunId,
pub call_id: String,
pub tool: String,
pub arguments: Value,
pub turn: u32,
pub stage: InvocationStage,
pub status: ReceiptStatus,
pub read_only: bool,
pub duration_ms: u64,
pub reason: Option<String>,
pub details: Value,
pub source: SourceTrust,
pub after_untrusted: bool,
}Expand description
The durable record of one tool call. Every call produces exactly one, refusals included, so “what actually happened” never depends on what the model says happened.
Fields§
§run_id: RunIdThe run that made the call. Sessions continued with
crate::RunState::with_user_message hold receipts of several runs,
and turn numbers restart in each run.
call_id: String§tool: String§arguments: Value§turn: u32§stage: InvocationStage§status: ReceiptStatus§read_only: bool§duration_ms: u64§reason: Option<String>Why it was denied or failed, when known.
details: ValueStructured evidence from crate::ToolOutput::details.
source: SourceTrustWho authored the content this call returned. Kernel-generated text
(refusals, timeouts, cancellations) is Trusted.
after_untrusted: boolThe run had already read untrusted content when this call was made.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Receipt
impl<'de> Deserialize<'de> for Receipt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Receipt
Auto Trait Implementations§
impl Forget for Receipt
impl Freeze for Receipt
impl Move for Receipt
impl RefUnwindSafe for Receipt
impl Send for Receipt
impl Sync for Receipt
impl Unpin for Receipt
impl UnsafeUnpin for Receipt
impl UnwindSafe for Receipt
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