pub enum ChatCompletionRequestToolMessageContent {
Text(String),
Array(Vec<ChatCompletionRequestToolMessageContentPart>),
}
Expand description
§on openapi.yaml
content:
oneOf:
- type: string
description: The contents of the tool message.
title: Text content
- type: array
description:
An array of content parts with a defined type. For tool messages,
only type `text` is supported.
title: Array of content parts
items:
$ref: "#/components/schemas/ChatCompletionRequestToolMessageContentPart"
minItems: 1
description: The contents of the tool message.
Variants§
Text(String)
Array(Vec<ChatCompletionRequestToolMessageContentPart>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatCompletionRequestToolMessageContent
impl<'de> Deserialize<'de> for ChatCompletionRequestToolMessageContent
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 ChatCompletionRequestToolMessageContent
impl PartialEq for ChatCompletionRequestToolMessageContent
Source§fn eq(&self, other: &ChatCompletionRequestToolMessageContent) -> bool
fn eq(&self, other: &ChatCompletionRequestToolMessageContent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionRequestToolMessageContent
Auto Trait Implementations§
impl Freeze for ChatCompletionRequestToolMessageContent
impl RefUnwindSafe for ChatCompletionRequestToolMessageContent
impl Send for ChatCompletionRequestToolMessageContent
impl Sync for ChatCompletionRequestToolMessageContent
impl Unpin for ChatCompletionRequestToolMessageContent
impl UnwindSafe for ChatCompletionRequestToolMessageContent
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