pub struct ReasoningMessageStartEvent {
pub base: BaseEvent,
pub message_id: MessageId,
pub role: ReasoningRole,
pub subagent_run_id: Option<SubagentRunId>,
}Expand description
Opens a reasoning message.
Fields§
§base: BaseEventTimestamp and raw provider event.
message_id: MessageIdId of the reasoning message being opened.
role: ReasoningRoleAlways ReasoningRole::Reasoning. Required, unlike the optional role
on TEXT_MESSAGE_START.
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.
Implementations§
Trait Implementations§
Source§impl Clone for ReasoningMessageStartEvent
impl Clone for ReasoningMessageStartEvent
Source§fn clone(&self) -> ReasoningMessageStartEvent
fn clone(&self) -> ReasoningMessageStartEvent
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 ReasoningMessageStartEvent
impl ComposeSchema for ReasoningMessageStartEvent
Source§impl Debug for ReasoningMessageStartEvent
impl Debug for ReasoningMessageStartEvent
Source§impl Default for ReasoningMessageStartEvent
impl Default for ReasoningMessageStartEvent
Source§fn default() -> ReasoningMessageStartEvent
fn default() -> ReasoningMessageStartEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReasoningMessageStartEvent
impl<'de> Deserialize<'de> for ReasoningMessageStartEvent
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<ReasoningMessageStartEvent> for Event
impl From<ReasoningMessageStartEvent> for Event
Source§fn from(payload: ReasoningMessageStartEvent) -> Self
fn from(payload: ReasoningMessageStartEvent) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ReasoningMessageStartEvent
impl JsonSchema for ReasoningMessageStartEvent
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 ReasoningMessageStartEvent
impl PartialEq for ReasoningMessageStartEvent
Source§fn eq(&self, other: &ReasoningMessageStartEvent) -> bool
fn eq(&self, other: &ReasoningMessageStartEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReasoningMessageStartEvent
Auto Trait Implementations§
impl Freeze for ReasoningMessageStartEvent
impl RefUnwindSafe for ReasoningMessageStartEvent
impl Send for ReasoningMessageStartEvent
impl Sync for ReasoningMessageStartEvent
impl Unpin for ReasoningMessageStartEvent
impl UnsafeUnpin for ReasoningMessageStartEvent
impl UnwindSafe for ReasoningMessageStartEvent
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