openai_struct/models/
message_content_text_annotations_file_citation_object.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/// pub MessageContentTextAnnotationsFileCitationObject : A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the \"file_search\" tool to search files.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct MessageContentTextAnnotationsFileCitationObject {
18    #[serde(rename = "end_index")]
19    pub end_index: i32,
20    #[serde(rename = "file_citation")]
21    pub file_citation: crate::models::MessageContentTextAnnotationsFileCitationObjectFileCitation,
22    #[serde(rename = "start_index")]
23    pub start_index: i32,
24    /// The text in the message content that needs to be replaced.
25    #[serde(rename = "text")]
26    pub text: String,
27    /// Always `file_citation`.
28    #[serde(rename = "type")]
29    pub _type: String,
30}