pub enum ReadbackEntry {
ContextCompacted {
turn_id: TurnId,
estimated_tokens_before: u32,
estimated_tokens_after: u32,
dropped_turn_start: u64,
dropped_turn_end_exclusive: u64,
},
ContextFragment {
turn_id: TurnId,
fragment: ContextFragment,
},
ModelMessage {
turn_id: TurnId,
message: Message,
served_model: Option<ModelName>,
},
ModelFailed {
turn_id: TurnId,
step: u32,
reason: String,
},
ToolProposalsRejected {
turn_id: TurnId,
reason: String,
},
ToolCall {
turn_id: TurnId,
call: ToolCall,
},
ToolResult {
result: ToolResult,
},
PolicyDenied {
call_id: ToolCallId,
reason: String,
},
ApprovalGranted {
call_id: ToolCallId,
actor_id: ActorId,
},
ApprovalDenied {
call_id: ToolCallId,
actor_id: ActorId,
reason: String,
},
ToolFailed {
call_id: ToolCallId,
reason: String,
},
}Expand description
One deterministic readback entry projected from the ledger.
Variants§
ContextCompacted
Prior turns omitted from the next model context.
Fields
ContextFragment
One host-built context fragment that entered a model turn.
Fields
§
fragment: ContextFragmentExact fragment recorded in the turn context.
ModelMessage
Model response message.
Fields
ModelFailed
Model request failed without terminating the run.
Fields
ToolProposalsRejected
Host rejected the whole pending model proposal batch.
Fields
ToolCall
Host-validated tool call consumed for a turn.
Fields
ToolResult
Structured tool result.
Fields
§
result: ToolResultExact result recorded after execution.
PolicyDenied
Policy denied a tool call before execution.
ApprovalGranted
Approval granted a tool call before execution.
Fields
§
call_id: ToolCallIdCall approved for execution.
ApprovalDenied
Approval denied a tool call before execution.
Fields
§
call_id: ToolCallIdCall denied before execution.
ToolFailed
Tool execution failed.
Fields
§
call_id: ToolCallIdCall whose execution failed.
Trait Implementations§
Source§impl Clone for ReadbackEntry
impl Clone for ReadbackEntry
Source§fn clone(&self) -> ReadbackEntry
fn clone(&self) -> ReadbackEntry
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 ReadbackEntry
impl Debug for ReadbackEntry
Source§impl PartialEq for ReadbackEntry
impl PartialEq for ReadbackEntry
impl StructuralPartialEq for ReadbackEntry
Auto Trait Implementations§
impl Freeze for ReadbackEntry
impl RefUnwindSafe for ReadbackEntry
impl Send for ReadbackEntry
impl Sync for ReadbackEntry
impl Unpin for ReadbackEntry
impl UnsafeUnpin for ReadbackEntry
impl UnwindSafe for ReadbackEntry
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