openai_struct/models/
chat_completion_message_tool_call.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, Clone, PartialEq)]
15pub struct ChatCompletionMessageToolCall {
16    #[serde(rename = "function")]
17    pub function: crate::models::ChatCompletionMessageToolCallFunction,
18    /// The ID of the tool call.
19    #[serde(rename = "id")]
20    pub id: String,
21    /// The type of the tool. Currently, only `function` is supported.
22    #[serde(rename = "type")]
23    pub _type: String,
24}