pub struct ChatReasoningAction {
pub turn_id: String,
pub part_id: String,
pub content: String,
pub meta: Option<JsonObject>,
}Expand description
Reasoning/thinking text from the model, appended to a specific reasoning response part.
The server MUST first emit a chat/responsePart to create the target
reasoning part, then use this action to append text to it.
Fields§
§turn_id: StringTurn identifier
part_id: StringIdentifier of the reasoning response part to append to
content: StringReasoning text chunk
meta: Option<JsonObject>Additional provider-specific metadata for this action.
Clients MAY look for well-known keys here to provide enhanced UI, and
agent hosts MAY use it to carry per-event context that does not fit any
other field — for example, attributing the event to a specific agent
(such as a sub-agent acting within the turn). Mirrors the MCP _meta
convention.
Trait Implementations§
Source§impl Clone for ChatReasoningAction
impl Clone for ChatReasoningAction
Source§fn clone(&self) -> ChatReasoningAction
fn clone(&self) -> ChatReasoningAction
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 ChatReasoningAction
impl Debug for ChatReasoningAction
Source§impl<'de> Deserialize<'de> for ChatReasoningAction
impl<'de> Deserialize<'de> for ChatReasoningAction
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 PartialEq for ChatReasoningAction
impl PartialEq for ChatReasoningAction
Source§fn eq(&self, other: &ChatReasoningAction) -> bool
fn eq(&self, other: &ChatReasoningAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChatReasoningAction
impl Serialize for ChatReasoningAction
impl StructuralPartialEq for ChatReasoningAction
Auto Trait Implementations§
impl Freeze for ChatReasoningAction
impl RefUnwindSafe for ChatReasoningAction
impl Send for ChatReasoningAction
impl Sync for ChatReasoningAction
impl Unpin for ChatReasoningAction
impl UnsafeUnpin for ChatReasoningAction
impl UnwindSafe for ChatReasoningAction
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