pub struct TextReasoningContent {
pub text: String,
pub annotations: Option<Vec<Annotation>>,
pub raw_representation: Option<Value>,
pub protected_data: Option<String>,
}Expand description
Reasoning / chain-of-thought text, distinct from user-facing text.
Fields§
§text: String§annotations: Option<Vec<Annotation>>§raw_representation: Option<Value>The raw provider reasoning item this was decoded from, when it must be
replayed verbatim. Reasoning models (OpenAI Responses with
store: false) require the original reasoning item — id and encrypted
content, not just the summary — on the follow-up tool-call turn; the
Responses input mapper re-emits it from here. Absent otherwise.
protected_data: Option<String>Provider-opaque replay token attached to this reasoning step, base64.
Mirrors upstream’s Content.protected_data. Gemini 3 returns a
thoughtSignature alongside a thought part and requires it echoed on
the function call that reasoning produced; dropping it makes the model
reject the replayed turn. Distinct from Self::raw_representation,
which carries a whole provider item rather than a single opaque token.
Trait Implementations§
Source§impl Clone for TextReasoningContent
impl Clone for TextReasoningContent
Source§fn clone(&self) -> TextReasoningContent
fn clone(&self) -> TextReasoningContent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more