pub struct RunState {
pub busy: bool,
pub running_turn_id: Option<String>,
pub pending_approval: Option<ToolCallRequest>,
pub pending_approval_id: Option<String>,
pub pending_question: Option<PendingQuestion>,
pub queued_message_count: u32,
pub first_queued_message: Option<QueuedMessageBrief>,
pub queued_messages: Vec<QueuedMessage>,
pub session_save_error: Option<String>,
pub streaming_assistant_index: Option<i64>,
}Expand description
The run state both snapshots and patches carry, field for field identical in the two TypeScript types.
busy, queuedMessageCount, and queuedMessages are plain required
fields; the null-able ones are required and nullable — the host always
writes them, null included, so absence marks a malformed frame.
Fields§
§busy: bool§running_turn_id: Option<String>The turn the running work writes into; null before a run has placed
its message. Clients must not guess the live turn from busy plus list
position.
pending_approval: Option<ToolCallRequest>§pending_approval_id: Option<String>§pending_question: Option<PendingQuestion>§queued_message_count: u32§first_queued_message: Option<QueuedMessageBrief>§queued_messages: Vec<QueuedMessage>§session_save_error: Option<String>§streaming_assistant_index: Option<i64>Absolute index of the entry currently streaming, or null.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunState
impl<'de> Deserialize<'de> for RunState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for RunState
Auto Trait Implementations§
impl Forget for RunState
impl Freeze for RunStatewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<QueuedMessage>: Freeze,
impl Move for RunState
impl RefUnwindSafe for RunState
impl Send for RunState
impl Sync for RunState
impl Unpin for RunState
impl UnsafeUnpin for RunStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<QueuedMessage>: UnsafeUnpin,
impl UnwindSafe for RunState
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