pub struct ChatCompletionRequestAssistantMessage {
pub content: Option<ChatCompletionRequestAssistantMessage_Content>,
pub refusal: Option<String>,
pub role: String,
pub name: String,
pub audio: Option<ChatCompletionRequestAssistantMessage_Audio>,
pub tool_calls: ChatCompletionMessageToolCalls,
pub function_call: Option<ChatCompletionRequestAssistantMessage_FunctionCall>,
}Expand description
Messages sent by the model in response to user messages.
Fields§
§content: Option<ChatCompletionRequestAssistantMessage_Content>§refusal: Option<String>The refusal message by the assistant.
role: StringThe role of the messages author, in this case assistant.
name: StringAn optional name for the participant.
audio: Option<ChatCompletionRequestAssistantMessage_Audio>§tool_calls: ChatCompletionMessageToolCalls§function_call: Option<ChatCompletionRequestAssistantMessage_FunctionCall>Trait Implementations§
Source§impl Clone for ChatCompletionRequestAssistantMessage
impl Clone for ChatCompletionRequestAssistantMessage
Source§fn clone(&self) -> ChatCompletionRequestAssistantMessage
fn clone(&self) -> ChatCompletionRequestAssistantMessage
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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