openai_struct/models/
file_search_tool_call_results.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11#[allow(unused_imports)]
12use serde_json::Value;
13
14#[derive(Debug, Serialize, Deserialize)]
15pub struct FileSearchToolCallResults {
16    #[serde(rename = "attributes")]
17    pub attributes: Option<crate::models::VectorStoreFileAttributes>,
18    /// The unique ID of the file.
19    #[serde(rename = "file_id")]
20    pub file_id: Option<String>,
21    /// The name of the file.
22    #[serde(rename = "filename")]
23    pub filename: Option<String>,
24    /// The relevance score of the file - a value between 0 and 1.
25    #[serde(rename = "score")]
26    pub score: Option<f32>,
27    /// The text that was retrieved from the file.
28    #[serde(rename = "text")]
29    pub text: Option<String>,
30}