pub struct FileSearchTool {
pub vector_store_ids: Vec<String>,
pub filters: Option<FileSearchFilter>,
pub max_num_results: Option<u32>,
pub ranking_options: Option<FileSearchRankingOptions>,
}Expand description
File search tool configuration.
Spec: { type: "file_search", vector_store_ids, filters?, max_num_results?, ranking_options? }.
Fields§
§vector_store_ids: Vec<String>Vector store IDs to search over.
filters: Option<FileSearchFilter>Optional filter applied to candidate documents.
max_num_results: Option<u32>Maximum number of results to return.
ranking_options: Option<FileSearchRankingOptions>Ranking options for the search.
Trait Implementations§
Source§impl Clone for FileSearchTool
impl Clone for FileSearchTool
Source§fn clone(&self) -> FileSearchTool
fn clone(&self) -> FileSearchTool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileSearchTool
impl Debug for FileSearchTool
Source§impl<'de> Deserialize<'de> for FileSearchTool
impl<'de> Deserialize<'de> for FileSearchTool
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
Source§impl JsonSchema for FileSearchTool
impl JsonSchema for FileSearchTool
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for FileSearchTool
impl RefUnwindSafe for FileSearchTool
impl Send for FileSearchTool
impl Sync for FileSearchTool
impl Unpin for FileSearchTool
impl UnsafeUnpin for FileSearchTool
impl UnwindSafe for FileSearchTool
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