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/// # on openapi.yaml
15///
16/// ```yaml
17/// ChatCompletionRequestFunctionMessage:
18/// type: object
19/// title: Function message
20/// deprecated: true
21/// properties:
22/// role:
23/// type: string
24/// enum:
25/// - function
26/// description: The role of the messages author, in this case `function`.
27/// x-stainless-const: true
28/// content:
29/// nullable: true
30/// type: string
31/// description: The contents of the function message.
32/// name:
33/// type: string
34/// description: The name of the function to call.
35/// required:
36/// - role
37/// - content
38/// - name
39/// ```
40#[derive(Debug, Serialize, Deserialize, PartialEq)]
41pub struct ChatCompletionRequestFunctionMessage {
42 /// The contents of the function message.
43 #[serde(rename = "content")]
44 pub content: String,
45 /// The name of the function to call.
46 #[serde(rename = "name")]
47 pub name: String,
48}