use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ResponseTextDoneEvent {
#[serde(rename = "content_index")]
pub content_index: f64,
#[serde(rename = "item_id")]
pub item_id: String,
#[serde(rename = "output_index")]
pub output_index: f64,
#[serde(rename = "text")]
pub text: String,
#[serde(rename = "type")]
pub r#type: TypeTrue,
}
impl ResponseTextDoneEvent {
pub fn new(
content_index: f64,
item_id: String,
output_index: f64,
text: String,
r#type: TypeTrue,
) -> ResponseTextDoneEvent {
ResponseTextDoneEvent {
content_index,
item_id,
output_index,
text,
r#type,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum TypeTrue {
#[serde(rename = "response.output_text.done")]
ResponsePeriodOutputTextPeriodDone,
}
impl Default for TypeTrue {
fn default() -> TypeTrue {
Self::ResponsePeriodOutputTextPeriodDone
}
}