pub struct ThinkingTokensMessage {
pub session_id: String,
pub estimated_tokens: u64,
pub estimated_tokens_delta: u64,
pub user_message_uuid: Option<String>,
pub uuid: String,
}Expand description
thinking_tokens system message — emitted as the model streams extended
thinking, reporting the running estimate of thinking tokens consumed.
Fields§
§session_id: String§estimated_tokens: u64Running estimate of total thinking tokens for the current turn.
estimated_tokens_delta: u64Increase in the estimate since the previous thinking_tokens event.
user_message_uuid: Option<String>Client uuid of the user message that triggered this turn, stamped on
every thinking_tokens frame of a headless turn so a consumer can
attribute thinking progress to the send it answers before any reply
frame arrives. Absent on synthetic/scheduled (meta) turns, on turns
without a client uuid, on Remote Control sessions, and from CLIs
before 2.1.261.
uuid: StringTrait Implementations§
Source§impl Clone for ThinkingTokensMessage
impl Clone for ThinkingTokensMessage
Source§fn clone(&self) -> ThinkingTokensMessage
fn clone(&self) -> ThinkingTokensMessage
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 ThinkingTokensMessage
impl Debug for ThinkingTokensMessage
Source§impl<'de> Deserialize<'de> for ThinkingTokensMessage
impl<'de> Deserialize<'de> for ThinkingTokensMessage
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
Auto Trait Implementations§
impl Freeze for ThinkingTokensMessage
impl RefUnwindSafe for ThinkingTokensMessage
impl Send for ThinkingTokensMessage
impl Sync for ThinkingTokensMessage
impl Unpin for ThinkingTokensMessage
impl UnsafeUnpin for ThinkingTokensMessage
impl UnwindSafe for ThinkingTokensMessage
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