openai_struct/models/file_search_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 FileSearchToolCall : The results of a file search tool call. See the [file search guide](/docs/guides/tools-file-search) for more information.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct FileSearchToolCall {
18 /// The unique ID of the file search tool call.
19 #[serde(rename = "id")]
20 pub id: String,
21 /// The queries used to search for files.
22 #[serde(rename = "queries")]
23 pub queries: Vec<String>,
24 /// The results of the file search tool call.
25 #[serde(rename = "results")]
26 pub results: Option<Vec<crate::models::FileSearchToolCallResults>>,
27 /// The status of the file search tool call. One of `in_progress`, `searching`, `incomplete` or `failed`,
28 #[serde(rename = "status")]
29 pub status: String,
30 /// The type of the file search tool call. Always `file_search_call`.
31 #[serde(rename = "type")]
32 pub _type: String,
33}