pub struct AssistantToolsFileSearch {
pub file_search: Option<AssistantToolsFileSearchFileSearch>,
pub _type: String,
}
Expand description
§on openapi.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
Fields§
§file_search: Option<AssistantToolsFileSearchFileSearch>
§_type: String
The type of tool being defined: file_search
Trait Implementations§
Source§impl Debug for AssistantToolsFileSearch
impl Debug for AssistantToolsFileSearch
Source§impl<'de> Deserialize<'de> for AssistantToolsFileSearch
impl<'de> Deserialize<'de> for AssistantToolsFileSearch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AssistantToolsFileSearch
impl RefUnwindSafe for AssistantToolsFileSearch
impl Send for AssistantToolsFileSearch
impl Sync for AssistantToolsFileSearch
impl Unpin for AssistantToolsFileSearch
impl UnwindSafe for AssistantToolsFileSearch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more