openai_struct/models/
function_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/// pub FunctionToolCall : A tool call to run a function. See the  [function calling guide](/docs/guides/function-calling) for more information.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct FunctionToolCall {
18    /// A JSON string of the arguments to pass to the function.
19    #[serde(rename = "arguments")]
20    pub arguments: String,
21    /// The unique ID of the function tool call generated by the model.
22    #[serde(rename = "call_id")]
23    pub call_id: String,
24    /// The unique ID of the function tool call.
25    #[serde(rename = "id")]
26    pub id: Option<String>,
27    /// The name of the function to run.
28    #[serde(rename = "name")]
29    pub name: String,
30    /// The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.
31    #[serde(rename = "status")]
32    pub status: Option<String>,
33    /// The type of the function tool call. Always `function_call`.
34    #[serde(rename = "type")]
35    pub _type: String,
36}