openai_struct/models/
run_tool_call_object.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 RunToolCallObject : Tool call objects
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct RunToolCallObject {
18    #[serde(rename = "function")]
19    pub function: crate::models::RunToolCallObjectFunction,
20    /// The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint.
21    #[serde(rename = "id")]
22    pub id: String,
23    /// The type of tool call the output is required for. For now, this is always `function`.
24    #[serde(rename = "type")]
25    pub _type: String,
26}