pub struct CreateMessageRequest {
pub attachments: Option<Vec<CreateMessageRequestAttachments>>,
pub content: Value,
pub metadata: Option<Metadata>,
pub role: String,
}
Fields§
§attachments: Option<Vec<CreateMessageRequestAttachments>>
A list of files attached to the message, and the tools they should be added to.
content: Value
§metadata: Option<Metadata>
§role: String
The role of the entity that is creating the message. Allowed values include: - user
: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages. - assistant
: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.
Trait Implementations§
Source§impl Debug for CreateMessageRequest
impl Debug for CreateMessageRequest
Source§impl<'de> Deserialize<'de> for CreateMessageRequest
impl<'de> Deserialize<'de> for CreateMessageRequest
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 CreateMessageRequest
impl RefUnwindSafe for CreateMessageRequest
impl Send for CreateMessageRequest
impl Sync for CreateMessageRequest
impl Unpin for CreateMessageRequest
impl UnwindSafe for CreateMessageRequest
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