pub enum JsonlEvent {
ThreadStarted {
thread_id: String,
},
AgentMessage {
text: String,
},
SoftError {
message: String,
},
TurnCompleted,
Other {
type_name: Option<String>,
},
}Expand description
Parsed variant of one codex JSONL line.
Variants§
ThreadStarted
thread.started with a valid thread_id.
AgentMessage
item.completed where item.type == "agent_message".
SoftError
item.completed where item.type == "error".
TurnCompleted
turn.completed — end of turn.
Other
Any other JSON object (unknown event type or malformed known type).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JsonlEvent
impl RefUnwindSafe for JsonlEvent
impl Send for JsonlEvent
impl Sync for JsonlEvent
impl Unpin for JsonlEvent
impl UnsafeUnpin for JsonlEvent
impl UnwindSafe for JsonlEvent
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