pub struct ReasoningMessageChunkEvent {
pub base: BaseEvent,
pub message_id: Option<MessageId>,
pub delta: Option<String>,
pub subagent_run_id: Option<SubagentRunId>,
}Expand description
A self-contained reasoning update: start, content and end folded into one.
Fields§
§base: BaseEventTimestamp and raw provider event.
message_id: Option<MessageId>The reasoning message this chunk belongs to.
delta: Option<String>The text to append.
subagent_run_id: Option<SubagentRunId>The subagent that produced this event; absent means the parent agent.
A JSON null is rejected — see crate::event::subagent. Under
concurrency a chunk that omits its message_id is resolved within the
sending subagent’s own stream, so attribute every chunk when several
subagents stream at once.
Implementations§
Trait Implementations§
Source§impl Clone for ReasoningMessageChunkEvent
impl Clone for ReasoningMessageChunkEvent
Source§fn clone(&self) -> ReasoningMessageChunkEvent
fn clone(&self) -> ReasoningMessageChunkEvent
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 ComposeSchema for ReasoningMessageChunkEvent
impl ComposeSchema for ReasoningMessageChunkEvent
Source§impl Debug for ReasoningMessageChunkEvent
impl Debug for ReasoningMessageChunkEvent
Source§impl Default for ReasoningMessageChunkEvent
impl Default for ReasoningMessageChunkEvent
Source§fn default() -> ReasoningMessageChunkEvent
fn default() -> ReasoningMessageChunkEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReasoningMessageChunkEvent
impl<'de> Deserialize<'de> for ReasoningMessageChunkEvent
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
Source§impl From<ReasoningMessageChunkEvent> for Event
impl From<ReasoningMessageChunkEvent> for Event
Source§fn from(payload: ReasoningMessageChunkEvent) -> Self
fn from(payload: ReasoningMessageChunkEvent) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ReasoningMessageChunkEvent
impl JsonSchema for ReasoningMessageChunkEvent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ReasoningMessageChunkEvent
impl PartialEq for ReasoningMessageChunkEvent
Source§fn eq(&self, other: &ReasoningMessageChunkEvent) -> bool
fn eq(&self, other: &ReasoningMessageChunkEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReasoningMessageChunkEvent
Auto Trait Implementations§
impl Freeze for ReasoningMessageChunkEvent
impl RefUnwindSafe for ReasoningMessageChunkEvent
impl Send for ReasoningMessageChunkEvent
impl Sync for ReasoningMessageChunkEvent
impl Unpin for ReasoningMessageChunkEvent
impl UnsafeUnpin for ReasoningMessageChunkEvent
impl UnwindSafe for ReasoningMessageChunkEvent
Blanket Implementations§
impl<T> AgentState for T
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