pub enum JsonlState {
AwaitingAnswer {
question: String,
},
PlanReady {
plan: Option<String>,
},
ToolPending {
tools: Vec<String>,
},
IdleDone {
text: String,
},
Working,
Unknown,
}Expand description
What the transcript alone says about the session.
Variants§
AwaitingAnswer
Last assistant turn ended with a question and nothing has answered it.
PlanReady
An ExitPlanMode tool_use is present (rare in the transcript — usually only post-approval).
ToolPending
A tool call is in flight (assistant emitted tool_use, no result yet).
IdleDone
Assistant finished cleanly and is waiting for the human.
Working
Assistant is mid-stream or a tool result just returned — work is ongoing.
Unknown
No assistant event yet, or shape not understood.
Trait Implementations§
Source§impl Clone for JsonlState
impl Clone for JsonlState
Source§fn clone(&self) -> JsonlState
fn clone(&self) -> JsonlState
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 JsonlState
impl Debug for JsonlState
Source§impl PartialEq for JsonlState
impl PartialEq for JsonlState
Source§fn eq(&self, other: &JsonlState) -> bool
fn eq(&self, other: &JsonlState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for JsonlState
impl StructuralPartialEq for JsonlState
Auto Trait Implementations§
impl Freeze for JsonlState
impl RefUnwindSafe for JsonlState
impl Send for JsonlState
impl Sync for JsonlState
impl Unpin for JsonlState
impl UnsafeUnpin for JsonlState
impl UnwindSafe for JsonlState
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