pub struct ChatCompletionStoreMessage {
pub id: String,
pub role: Role,
pub content: Option<String>,
pub content_parts: Option<Vec<ContentPart>>,
pub name: Option<String>,
}Available on crate feature
chat-completion-types only.Expand description
A message in a stored chat completion.
Fields§
§id: StringThe identifier of the chat message.
role: RoleThe role of the author: user, assistant, tool, system, function, or developer.
content: Option<String>The text content of the stored message, or null.
content_parts: Option<Vec<ContentPart>>Original input content parts (text, image, audio, or file), or null.
name: Option<String>The optional name of the author.
Trait Implementations§
Source§impl Clone for ChatCompletionStoreMessage
impl Clone for ChatCompletionStoreMessage
Source§impl ComposeSchema for ChatCompletionStoreMessage
Available on crate feature openapi only.
impl ComposeSchema for ChatCompletionStoreMessage
Available on crate feature
openapi only.Source§impl Debug for ChatCompletionStoreMessage
impl Debug for ChatCompletionStoreMessage
Source§impl Default for ChatCompletionStoreMessage
impl Default for ChatCompletionStoreMessage
Source§impl<'de> Deserialize<'de> for ChatCompletionStoreMessage
impl<'de> Deserialize<'de> for ChatCompletionStoreMessage
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
impl StructuralPartialEq for ChatCompletionStoreMessage
Source§impl ToSchema for ChatCompletionStoreMessage
Available on crate feature openapi only.
impl ToSchema for ChatCompletionStoreMessage
Available on crate feature
openapi only.Auto Trait Implementations§
impl Freeze for ChatCompletionStoreMessage
impl RefUnwindSafe for ChatCompletionStoreMessage
impl Send for ChatCompletionStoreMessage
impl Sync for ChatCompletionStoreMessage
impl Unpin for ChatCompletionStoreMessage
impl UnsafeUnpin for ChatCompletionStoreMessage
impl UnwindSafe for ChatCompletionStoreMessage
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