pub struct FileSearchToolArgs { /* private fields */ }Expand description
Builder for FileSearchTool.
Implementations§
Source§impl FileSearchToolArgs
impl FileSearchToolArgs
Sourcepub fn vector_store_ids<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn vector_store_ids<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
The IDs of the vector stores to search.
Sourcepub fn max_num_results<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn max_num_results<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
The maximum number of results to return. This number should be between 1 and 50 inclusive.
Sourcepub fn ranking_options<VALUE: Into<RankingOptions>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn ranking_options<VALUE: Into<RankingOptions>>( &mut self, value: VALUE, ) -> &mut Self
Ranking options for search.
Sourcepub fn build(&self) -> Result<FileSearchTool, OpenAIError>
pub fn build(&self) -> Result<FileSearchTool, OpenAIError>
Trait Implementations§
Source§impl Clone for FileSearchToolArgs
impl Clone for FileSearchToolArgs
Source§fn clone(&self) -> FileSearchToolArgs
fn clone(&self) -> FileSearchToolArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FileSearchToolArgs
impl RefUnwindSafe for FileSearchToolArgs
impl Send for FileSearchToolArgs
impl Sync for FileSearchToolArgs
impl Unpin for FileSearchToolArgs
impl UnwindSafe for FileSearchToolArgs
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