pub struct ResponseOutputMessage {
pub content: Vec<ResponseOutputContent>,
pub id: String,
pub role: ResponseOutputMessageRole,
pub status: Option<ResponseOutputMessageStatus>,
pub type_: ResponseOutputMessageType,
}Expand description
An output message from the model.
JSON schema
{
"description": "An output message from the model.",
"type": "object",
"required": [
"content",
"id",
"role",
"type"
],
"properties": {
"content": {
"type": "array",
"items": {
"$ref": "#/definitions/ResponseOutputContent"
}
},
"id": {
"description": "The unique ID of the output message.",
"type": "string"
},
"role": {
"description": "The role of the output message. Always `assistant`.",
"type": "string",
"enum": [
"assistant"
]
},
"status": {
"description": "The status of the message.",
"type": "string",
"enum": [
"in_progress",
"completed",
"incomplete"
]
},
"type": {
"description": "The type of the output item. Always `message`.",
"type": "string",
"enum": [
"message"
]
}
}
}Fields§
§content: Vec<ResponseOutputContent>§id: StringThe unique ID of the output message.
role: ResponseOutputMessageRoleThe role of the output message. Always assistant.
status: Option<ResponseOutputMessageStatus>The status of the message.
type_: ResponseOutputMessageTypeThe type of the output item. Always message.
Trait Implementations§
Source§impl Clone for ResponseOutputMessage
impl Clone for ResponseOutputMessage
Source§fn clone(&self) -> ResponseOutputMessage
fn clone(&self) -> ResponseOutputMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResponseOutputMessage
impl Debug for ResponseOutputMessage
Source§impl<'de> Deserialize<'de> for ResponseOutputMessage
impl<'de> Deserialize<'de> for ResponseOutputMessage
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 From<ResponseOutputMessage> for ResponseOutputItem
impl From<ResponseOutputMessage> for ResponseOutputItem
Source§fn from(value: ResponseOutputMessage) -> Self
fn from(value: ResponseOutputMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResponseOutputMessage
impl RefUnwindSafe for ResponseOutputMessage
impl Send for ResponseOutputMessage
impl Sync for ResponseOutputMessage
impl Unpin for ResponseOutputMessage
impl UnsafeUnpin for ResponseOutputMessage
impl UnwindSafe for ResponseOutputMessage
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