openai_struct/models/input_message.rs
1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub InputMessage : A message input to the model with a role indicating instruction following hierarchy. Instructions given with the `developer` or `system` role take precedence over instructions given with the `user` role.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct InputMessage {
18 #[serde(rename = "content")]
19 pub content: crate::models::InputMessageContentList,
20 /// The role of the message input. One of `user`, `system`, or `developer`.
21 #[serde(rename = "role")]
22 pub role: String,
23 /// The status of item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.
24 #[serde(rename = "status")]
25 pub status: Option<String>,
26 /// The type of the message input. Always set to `message`.
27 #[serde(rename = "type")]
28 pub _type: Option<String>,
29}