openai_struct/models/assistant_tools_file_search_file_search.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 AssistantToolsFileSearchFileSearch : Overrides for the file search tool.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct AssistantToolsFileSearchFileSearch {
18 /// The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive. Note that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.
19 #[serde(rename = "max_num_results")]
20 pub max_num_results: Option<i32>,
21 #[serde(rename = "ranking_options")]
22 pub ranking_options: Option<crate::models::FileSearchRankingOptions>,
23}