openai_struct/models/
function_tool_call_resource.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 FunctionToolCallResource {
16    /// A JSON string of the arguments to pass to the function.
17    #[serde(rename = "arguments")]
18    pub arguments: String,
19    /// The unique ID of the function tool call generated by the model.
20    #[serde(rename = "call_id")]
21    pub call_id: String,
22    /// The unique ID of the function tool call.
23    #[serde(rename = "id")]
24    pub id: String,
25    /// The name of the function to run.
26    #[serde(rename = "name")]
27    pub name: String,
28    /// The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.
29    #[serde(rename = "status")]
30    pub status: Option<String>,
31    /// The type of the function tool call. Always `function_call`.
32    #[serde(rename = "type")]
33    pub _type: String,
34}