openai_struct/models/file_search_tool.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 FileSearchTool : A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct FileSearchTool {
18 #[serde(rename = "filters")]
19 pub filters: Option<Value>,
20 /// The maximum number of results to return. This number should be between 1 and 50 inclusive.
21 #[serde(rename = "max_num_results")]
22 pub max_num_results: Option<i32>,
23 /// Ranking options for search.
24 #[serde(rename = "ranking_options")]
25 pub ranking_options: Option<crate::models::RankingOptions>,
26 /// The type of the file search tool. Always `file_search`.
27 #[serde(rename = "type")]
28 pub _type: String,
29 /// The IDs of the vector stores to search.
30 #[serde(rename = "vector_store_ids")]
31 pub vector_store_ids: Vec<String>,
32}