pub struct FileSearchToolArgs { /* private fields */ }Expand description
Builder for FileSearchTool.
Implementations§
Source§impl FileSearchToolArgs
impl FileSearchToolArgs
Sourcepub fn vector_store_ids<VALUE>(
&mut self,
value: VALUE,
) -> &mut FileSearchToolArgs
pub fn vector_store_ids<VALUE>( &mut self, value: VALUE, ) -> &mut FileSearchToolArgs
The IDs of the vector stores to search.
Sourcepub fn max_num_results<VALUE>(
&mut self,
value: VALUE,
) -> &mut FileSearchToolArgs
pub fn max_num_results<VALUE>( &mut self, value: VALUE, ) -> &mut FileSearchToolArgs
The maximum number of results to return. This number should be between 1 and 50 inclusive.
Sourcepub fn filters<VALUE>(&mut self, value: VALUE) -> &mut FileSearchToolArgs
pub fn filters<VALUE>(&mut self, value: VALUE) -> &mut FileSearchToolArgs
A filter to apply.
Sourcepub fn ranking_options<VALUE>(
&mut self,
value: VALUE,
) -> &mut FileSearchToolArgswhere
VALUE: Into<RankingOptions>,
pub fn ranking_options<VALUE>(
&mut self,
value: VALUE,
) -> &mut FileSearchToolArgswhere
VALUE: Into<RankingOptions>,
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 (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 Default for FileSearchToolArgs
impl Default for FileSearchToolArgs
Source§fn default() -> FileSearchToolArgs
fn default() -> FileSearchToolArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileSearchToolArgs
impl RefUnwindSafe for FileSearchToolArgs
impl Send for FileSearchToolArgs
impl Sync for FileSearchToolArgs
impl Unpin for FileSearchToolArgs
impl UnsafeUnpin 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