pub struct ChatCompletionRequestAssistantMessage {
pub audio: Option<ChatCompletionRequestAssistantMessageAudio>,
pub content: Option<Value>,
pub function_call: Option<ChatCompletionRequestAssistantMessageFunctionCall>,
pub name: Option<String>,
pub refusal: Option<String>,
pub role: String,
pub tool_calls: Option<ChatCompletionMessageToolCalls>,
}
Fields§
§audio: Option<ChatCompletionRequestAssistantMessageAudio>
§content: Option<Value>
The contents of the assistant message. Required unless tool_calls
or function_call
is specified.
function_call: Option<ChatCompletionRequestAssistantMessageFunctionCall>
§name: Option<String>
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
refusal: Option<String>
The refusal message by the assistant.
role: String
The role of the messages author, in this case assistant
.
tool_calls: Option<ChatCompletionMessageToolCalls>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatCompletionRequestAssistantMessage
impl<'de> Deserialize<'de> for ChatCompletionRequestAssistantMessage
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 ChatCompletionRequestAssistantMessage
impl RefUnwindSafe for ChatCompletionRequestAssistantMessage
impl Send for ChatCompletionRequestAssistantMessage
impl Sync for ChatCompletionRequestAssistantMessage
impl Unpin for ChatCompletionRequestAssistantMessage
impl UnwindSafe for ChatCompletionRequestAssistantMessage
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