pub struct ReasoningTextContent {
pub text: String,
pub type_: ReasoningTextContentType,
}Expand description
Reasoning text from the model.
JSON schema
{
"title": "Reasoning text",
"description": "Reasoning text from the model.",
"type": "object",
"required": [
"text",
"type"
],
"properties": {
"text": {
"description": "The reasoning text from the model.",
"type": "string"
},
"type": {
"description": "The type of the reasoning text. Always `reasoning_text`.",
"type": "string",
"enum": [
"reasoning_text"
],
"x-stainless-const": true
}
}
}Fields§
§text: StringThe reasoning text from the model.
type_: ReasoningTextContentTypeThe type of the reasoning text. Always reasoning_text.
Trait Implementations§
Source§impl Clone for ReasoningTextContent
impl Clone for ReasoningTextContent
Source§fn clone(&self) -> ReasoningTextContent
fn clone(&self) -> ReasoningTextContent
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 ReasoningTextContent
impl Debug for ReasoningTextContent
Source§impl<'de> Deserialize<'de> for ReasoningTextContent
impl<'de> Deserialize<'de> for ReasoningTextContent
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<ReasoningTextContent> for MessageContentItem
impl From<ReasoningTextContent> for MessageContentItem
Source§fn from(value: ReasoningTextContent) -> Self
fn from(value: ReasoningTextContent) -> Self
Converts to this type from the input type.
Source§impl From<ReasoningTextContent> for OutputContent
impl From<ReasoningTextContent> for OutputContent
Source§fn from(value: ReasoningTextContent) -> Self
fn from(value: ReasoningTextContent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReasoningTextContent
impl RefUnwindSafe for ReasoningTextContent
impl Send for ReasoningTextContent
impl Sync for ReasoningTextContent
impl Unpin for ReasoningTextContent
impl UnsafeUnpin for ReasoningTextContent
impl UnwindSafe for ReasoningTextContent
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