pub struct RunStepDetailsToolCallsFileSearchResultObject {
pub file_id: String,
pub file_name: String,
pub score: f64,
pub content: Option<Vec<RunStepDetailsToolCallsFileSearchResultObjectContent>>,
}
Expand description
A result instance of the file search.
Fields§
§file_id: String
The ID of the file that result was found in.
file_name: String
The name of the file that result was found in.
score: f64
The score of the result. All values must be a floating point number between 0 and 1.
content: Option<Vec<RunStepDetailsToolCallsFileSearchResultObjectContent>>
The content of the result that was found. The content is only included if requested via the include query parameter.
Implementations§
Source§impl RunStepDetailsToolCallsFileSearchResultObject
impl RunStepDetailsToolCallsFileSearchResultObject
Sourcepub fn builder() -> RunStepDetailsToolCallsFileSearchResultObjectBuilder<((), (), (), ())>
pub fn builder() -> RunStepDetailsToolCallsFileSearchResultObjectBuilder<((), (), (), ())>
Create a builder for building RunStepDetailsToolCallsFileSearchResultObject
.
On the builder, call .file_id(...)
, .file_name(...)
, .score(...)
, .content(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RunStepDetailsToolCallsFileSearchResultObject
.
Trait Implementations§
Source§impl Clone for RunStepDetailsToolCallsFileSearchResultObject
impl Clone for RunStepDetailsToolCallsFileSearchResultObject
Source§fn clone(&self) -> RunStepDetailsToolCallsFileSearchResultObject
fn clone(&self) -> RunStepDetailsToolCallsFileSearchResultObject
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 moreSource§impl<'de> Deserialize<'de> for RunStepDetailsToolCallsFileSearchResultObject
impl<'de> Deserialize<'de> for RunStepDetailsToolCallsFileSearchResultObject
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 PartialEq for RunStepDetailsToolCallsFileSearchResultObject
impl PartialEq for RunStepDetailsToolCallsFileSearchResultObject
Source§fn eq(&self, other: &RunStepDetailsToolCallsFileSearchResultObject) -> bool
fn eq(&self, other: &RunStepDetailsToolCallsFileSearchResultObject) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RunStepDetailsToolCallsFileSearchResultObject
Auto Trait Implementations§
impl Freeze for RunStepDetailsToolCallsFileSearchResultObject
impl RefUnwindSafe for RunStepDetailsToolCallsFileSearchResultObject
impl Send for RunStepDetailsToolCallsFileSearchResultObject
impl Sync for RunStepDetailsToolCallsFileSearchResultObject
impl Unpin for RunStepDetailsToolCallsFileSearchResultObject
impl UnwindSafe for RunStepDetailsToolCallsFileSearchResultObject
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