1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* OpenAI API
*
* The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
*
* OpenAPI spec pub version: 2.3.0
*
* Generated pub by: https://github.com/swagger-api/swagger-codegen.git
*/
#[allow(unused_imports)]
use serde_json::Value;
/// # on openapi.yaml
///
/// ```yaml
/// AssistantToolsFileSearch:
/// type: object
/// title: FileSearch tool
/// properties:
/// type:
/// type: string
/// description: "The type of tool being defined: `file_search`"
/// enum:
/// - file_search
/// x-stainless-const: true
/// file_search:
/// type: object
/// description: Overrides for the file search tool.
/// properties:
/// max_num_results:
/// type: integer
/// minimum: 1
/// maximum: 50
/// description: |
/// 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.
/// ranking_options:
/// $ref: "#/components/schemas/FileSearchRankingOptions"
/// required:
/// - type
/// ```
#[derive(Debug, Serialize, Deserialize)]
pub struct AssistantToolsFileSearch {
#[serde(rename = "file_search")]
pub file_search: Option<crate::models::AssistantToolsFileSearchFileSearch>,
/// The type of tool being defined: `file_search`
#[serde(rename = "type")]
pub _type: String,
}