openai_struct/models/
response_text_annotation_delta_event.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 ResponseTextAnnotationDeltaEvent : Emitted when a text annotation is added.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct ResponseTextAnnotationDeltaEvent {
18    #[serde(rename = "annotation")]
19    pub annotation: crate::models::Annotation,
20    /// The index of the annotation that was added.
21    #[serde(rename = "annotation_index")]
22    pub annotation_index: i32,
23    /// The index of the content part that the text annotation was added to.
24    #[serde(rename = "content_index")]
25    pub content_index: i32,
26    /// The ID of the output item that the text annotation was added to.
27    #[serde(rename = "item_id")]
28    pub item_id: String,
29    /// The index of the output item that the text annotation was added to.
30    #[serde(rename = "output_index")]
31    pub output_index: i32,
32    /// The type of the event. Always `response.output_text.annotation.added`.
33    #[serde(rename = "type")]
34    pub _type: String,
35}