pub struct FileSearchTool {
pub type_: String,
pub vector_store_ids: Vec<String>,
pub filters: Option<Filters>,
pub max_num_results: Option<i64>,
pub ranking_options: Option<RankingOptions>,
}Expand description
A tool that searches for relevant content from uploaded files.
Fields§
§type_: StringThe type of the file search tool. Always file_search.
vector_store_ids: Vec<String>The IDs of the vector stores to search.
filters: Option<Filters>A filter to apply.
max_num_results: Option<i64>The maximum number of results to return.
ranking_options: Option<RankingOptions>Ranking options for 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
Auto 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