pub struct OpenAIFileSearchTool {
pub vector_store_ids: Vec<String>,
pub max_num_results: Option<u32>,
pub include_results: bool,
pub filters: Option<Value>,
}Expand description
OpenAI hosted file search configuration.
Fields§
§vector_store_ids: Vec<String>Vector stores to search.
max_num_results: Option<u32>Maximum number of search results.
include_results: boolWhether to request file_search_call.results in the response include list.
filters: Option<Value>Official filter object.
Implementations§
Source§impl OpenAIFileSearchTool
impl OpenAIFileSearchTool
Sourcepub fn new(vector_store_ids: impl Into<Vec<String>>) -> Self
pub fn new(vector_store_ids: impl Into<Vec<String>>) -> Self
Creates file search over the provided vector stores.
Sourcepub const fn max_num_results(self, value: u32) -> Self
pub const fn max_num_results(self, value: u32) -> Self
Sets maximum result count.
Sourcepub const fn include_results(self, include: bool) -> Self
pub const fn include_results(self, include: bool) -> Self
Requests file search result inclusion.
Trait Implementations§
Source§impl Clone for OpenAIFileSearchTool
impl Clone for OpenAIFileSearchTool
Source§fn clone(&self) -> OpenAIFileSearchTool
fn clone(&self) -> OpenAIFileSearchTool
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 OpenAIFileSearchTool
impl Debug for OpenAIFileSearchTool
Source§impl<'de> Deserialize<'de> for OpenAIFileSearchTool
impl<'de> Deserialize<'de> for OpenAIFileSearchTool
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
impl Eq for OpenAIFileSearchTool
Source§impl PartialEq for OpenAIFileSearchTool
impl PartialEq for OpenAIFileSearchTool
Source§impl Serialize for OpenAIFileSearchTool
impl Serialize for OpenAIFileSearchTool
impl StructuralPartialEq for OpenAIFileSearchTool
Auto Trait Implementations§
impl Freeze for OpenAIFileSearchTool
impl RefUnwindSafe for OpenAIFileSearchTool
impl Send for OpenAIFileSearchTool
impl Sync for OpenAIFileSearchTool
impl Unpin for OpenAIFileSearchTool
impl UnsafeUnpin for OpenAIFileSearchTool
impl UnwindSafe for OpenAIFileSearchTool
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