pub struct OutputTextContent {
pub annotations: Vec<Annotation>,
pub logprobs: Vec<LogProb>,
pub text: String,
pub type_: OutputTextContentType,
}Expand description
A text output from the model.
JSON schema
{
"title": "Output text",
"description": "A text output from the model.",
"type": "object",
"required": [
"annotations",
"logprobs",
"text",
"type"
],
"properties": {
"annotations": {
"description": "The annotations of the text output.",
"type": "array",
"items": {
"$ref": "#/components/schemas/Annotation"
}
},
"logprobs": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LogProb"
}
},
"text": {
"description": "The text output from the model.",
"type": "string"
},
"type": {
"description": "The type of the output text. Always `output_text`.",
"type": "string",
"enum": [
"output_text"
],
"x-stainless-const": true
}
}
}Fields§
§annotations: Vec<Annotation>The annotations of the text output.
logprobs: Vec<LogProb>§text: StringThe text output from the model.
type_: OutputTextContentTypeThe type of the output text. Always output_text.
Trait Implementations§
Source§impl Clone for OutputTextContent
impl Clone for OutputTextContent
Source§fn clone(&self) -> OutputTextContent
fn clone(&self) -> OutputTextContent
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 OutputTextContent
impl Debug for OutputTextContent
Source§impl<'de> Deserialize<'de> for OutputTextContent
impl<'de> Deserialize<'de> for OutputTextContent
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<OutputTextContent> for MessageContentItem
impl From<OutputTextContent> for MessageContentItem
Source§fn from(value: OutputTextContent) -> Self
fn from(value: OutputTextContent) -> Self
Converts to this type from the input type.
Source§impl From<OutputTextContent> for OutputContent
impl From<OutputTextContent> for OutputContent
Source§fn from(value: OutputTextContent) -> Self
fn from(value: OutputTextContent) -> Self
Converts to this type from the input type.
Source§impl From<OutputTextContent> for OutputMessageContent
impl From<OutputTextContent> for OutputMessageContent
Source§fn from(value: OutputTextContent) -> Self
fn from(value: OutputTextContent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OutputTextContent
impl RefUnwindSafe for OutputTextContent
impl Send for OutputTextContent
impl Sync for OutputTextContent
impl Unpin for OutputTextContent
impl UnsafeUnpin for OutputTextContent
impl UnwindSafe for OutputTextContent
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