pub struct SessionCompletionReceiptData {
pub attempt: i64,
pub event_range: CompletionReceiptEventRange,
pub failed_tool_count: i64,
pub final_tool: Option<CompletionReceiptFinalTool>,
pub schema_version: i64,
pub source_event_id: String,
pub stop_reason: CompletionReceiptStopReason,
pub successful_tool_count: i64,
}Expand description
Session event “session.completion_receipt”. Behavior-neutral record of structured runtime facts present when an agent completion decision is accepted.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§attempt: i64One-based accepted completion receipt ordinal in the durable session history.
event_range: CompletionReceiptEventRangeInclusive durable event range summarized by this receipt.
failed_tool_count: i64Number of failed structured tool completions in the covered range.
final_tool: Option<CompletionReceiptFinalTool>Final structured tool completion in the covered range, when one exists.
schema_version: i64Version of the completion receipt payload.
source_event_id: StringIdentifier of the assistant turn-end event that supplied the accepted completion boundary. This is the receipt’s idempotency key, and always equals eventRange.endEventId.
stop_reason: CompletionReceiptStopReasonRuntime reason the completion decision was accepted.
successful_tool_count: i64Number of successful structured tool completions in the covered range.
Trait Implementations§
Source§impl Clone for SessionCompletionReceiptData
impl Clone for SessionCompletionReceiptData
Source§fn clone(&self) -> SessionCompletionReceiptData
fn clone(&self) -> SessionCompletionReceiptData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more