pub struct FileSearchToolCallResult {
pub attributes: HashMap<String, Value>,
pub file_id: String,
pub filename: String,
pub score: f32,
pub text: String,
}Expand description
A single result from a file search.
Fields§
§attributes: HashMap<String, Value>Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects API or the dashboard. Keys are strings with a maximum length of 64 characters . Values are strings with a maximum length of 512 characters, booleans, or numbers.
file_id: StringThe unique ID of the file.
filename: StringThe name of the file.
score: f32The relevance score of the file - a value between 0 and 1.
text: StringThe text that was retrieved from the file.
Trait Implementations§
Source§impl Clone for FileSearchToolCallResult
impl Clone for FileSearchToolCallResult
Source§fn clone(&self) -> FileSearchToolCallResult
fn clone(&self) -> FileSearchToolCallResult
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 Debug for FileSearchToolCallResult
impl Debug for FileSearchToolCallResult
Source§impl<'de> Deserialize<'de> for FileSearchToolCallResult
impl<'de> Deserialize<'de> for FileSearchToolCallResult
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 FileSearchToolCallResult
impl PartialEq for FileSearchToolCallResult
Source§impl Serialize for FileSearchToolCallResult
impl Serialize for FileSearchToolCallResult
impl StructuralPartialEq for FileSearchToolCallResult
Auto Trait Implementations§
impl Freeze for FileSearchToolCallResult
impl RefUnwindSafe for FileSearchToolCallResult
impl Send for FileSearchToolCallResult
impl Sync for FileSearchToolCallResult
impl Unpin for FileSearchToolCallResult
impl UnwindSafe for FileSearchToolCallResult
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