pub enum EntryBody {
UserMessage {
text: String,
reports: Vec<String>,
queued: bool,
},
Turn {
n: u32,
text: String,
input_tokens: u64,
output_tokens: u64,
cost_usd: Option<f64>,
},
ToolStarted {
name: String,
input: String,
},
ToolFinished {
name: String,
summary: String,
is_error: bool,
},
Retry {
attempt: u32,
max: u32,
wait_ms: u64,
reason: String,
},
Error {
message: String,
},
Idle {
turns: u32,
cost_usd: Option<f64>,
},
ModelChanged {
model: String,
},
EffortChanged {
effort: Option<String>,
},
Decision {
run: String,
action: String,
note: Option<String>,
},
ApprovalRequested {
id: String,
command: String,
reason: String,
},
ApprovalAnswered {
id: String,
command: String,
answer: String,
},
}Variants§
UserMessage
Turn
ToolStarted
ToolFinished
Retry
Error
Idle
ModelChanged
EffortChanged
Decision
ApprovalRequested
ApprovalAnswered
Trait Implementations§
impl StructuralPartialEq for EntryBody
Auto Trait Implementations§
impl Forget for EntryBody
impl Freeze for EntryBody
impl Move for EntryBody
impl RefUnwindSafe for EntryBody
impl Send for EntryBody
impl Sync for EntryBody
impl Unpin for EntryBody
impl UnsafeUnpin for EntryBody
impl UnwindSafe for EntryBody
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