pub struct ThinkingStartEvent {
pub base: BaseEvent,
pub title: Option<String>,
}Expand description
Event indicating that a thinking step has started.
This event is sent when the agent begins a chain-of-thought reasoning step. Unlike ThinkingTextMessage events (which contain actual thinking content), this event marks the boundary of a thinking block.
Fields§
§base: BaseEventCommon event fields (timestamp, rawEvent).
title: Option<String>Optional title for the thinking step.
Implementations§
Source§impl ThinkingStartEvent
impl ThinkingStartEvent
Sourcepub fn with_title(self, title: impl Into<String>) -> Self
pub fn with_title(self, title: impl Into<String>) -> Self
Sets the title for this thinking step.
Sourcepub fn with_timestamp(self, timestamp: f64) -> Self
pub fn with_timestamp(self, timestamp: f64) -> Self
Sets the timestamp for this event.
Trait Implementations§
Source§impl Clone for ThinkingStartEvent
impl Clone for ThinkingStartEvent
Source§fn clone(&self) -> ThinkingStartEvent
fn clone(&self) -> ThinkingStartEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 ThinkingStartEvent
impl Debug for ThinkingStartEvent
Source§impl Default for ThinkingStartEvent
impl Default for ThinkingStartEvent
Source§impl<'de> Deserialize<'de> for ThinkingStartEvent
impl<'de> Deserialize<'de> for ThinkingStartEvent
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 ThinkingStartEvent
impl PartialEq for ThinkingStartEvent
Source§impl Serialize for ThinkingStartEvent
impl Serialize for ThinkingStartEvent
impl StructuralPartialEq for ThinkingStartEvent
Auto Trait Implementations§
impl Freeze for ThinkingStartEvent
impl RefUnwindSafe for ThinkingStartEvent
impl Send for ThinkingStartEvent
impl Sync for ThinkingStartEvent
impl Unpin for ThinkingStartEvent
impl UnsafeUnpin for ThinkingStartEvent
impl UnwindSafe for ThinkingStartEvent
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