openai_struct/models/
chat_completion_request_function_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#[allow(unused_imports)]
12use serde_json::Value;
13
14#[derive(Debug, Serialize, Deserialize, PartialEq)]
15pub struct ChatCompletionRequestFunctionMessage {
16    /// The contents of the function message.
17    #[serde(rename = "content")]
18    pub content: String,
19    /// The name of the function to call.
20    #[serde(rename = "name")]
21    pub name: String,
22    /// The role of the messages author, in this case `function`.
23    #[serde(rename = "role")]
24    pub role: String,
25}