pub struct ChatCompletionRequestFunctionMessage {
pub content: String,
pub name: String,
}
Expand description
§on openapi.yaml
ChatCompletionRequestFunctionMessage:
type: object
title: Function message
deprecated: true
properties:
role:
type: string
enum:
- function
description: The role of the messages author, in this case `function`.
x-stainless-const: true
content:
nullable: true
type: string
description: The contents of the function message.
name:
type: string
description: The name of the function to call.
required:
- role
- content
- name
Fields§
§content: String
The contents of the function message.
name: String
The name of the function to call.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatCompletionRequestFunctionMessage
impl<'de> Deserialize<'de> for ChatCompletionRequestFunctionMessage
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 ChatCompletionRequestFunctionMessage
impl PartialEq for ChatCompletionRequestFunctionMessage
Source§fn eq(&self, other: &ChatCompletionRequestFunctionMessage) -> bool
fn eq(&self, other: &ChatCompletionRequestFunctionMessage) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionRequestFunctionMessage
Auto Trait Implementations§
impl Freeze for ChatCompletionRequestFunctionMessage
impl RefUnwindSafe for ChatCompletionRequestFunctionMessage
impl Send for ChatCompletionRequestFunctionMessage
impl Sync for ChatCompletionRequestFunctionMessage
impl Unpin for ChatCompletionRequestFunctionMessage
impl UnwindSafe for ChatCompletionRequestFunctionMessage
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