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