pub struct ResponseTextDeltaEvent {
pub content_index: i64,
pub delta: String,
pub item_id: String,
pub logprobs: Vec<ResponseLogProb>,
pub output_index: i64,
pub sequence_number: i64,
pub type_: ResponseTextDeltaEventType,
}Expand description
Emitted when there is an additional text delta.
JSON schema
{
"description": "Emitted when there is an additional text delta.",
"type": "object",
"required": [
"content_index",
"delta",
"item_id",
"logprobs",
"output_index",
"sequence_number",
"type"
],
"properties": {
"content_index": {
"description": "The index of the content part that the text delta was added to.\n",
"type": "integer"
},
"delta": {
"description": "The text delta that was added.\n",
"type": "string"
},
"item_id": {
"description": "The ID of the output item that the text delta was added to.\n",
"type": "string"
},
"logprobs": {
"description": "The log probabilities of the tokens in the delta.\n",
"type": "array",
"items": {
"$ref": "#/components/schemas/ResponseLogProb"
}
},
"output_index": {
"description": "The index of the output item that the text delta was added to.\n",
"type": "integer"
},
"sequence_number": {
"description": "The sequence number for this event.",
"type": "integer"
},
"type": {
"description": "The type of the event. Always `response.output_text.delta`.\n",
"type": "string",
"enum": [
"response.output_text.delta"
],
"x-stainless-const": true
}
},
"x-oaiMeta": {
"group": "responses",
"name": "response.output_text.delta"
}
}Fields§
§content_index: i64The index of the content part that the text delta was added to.
delta: StringThe text delta that was added.
item_id: StringThe ID of the output item that the text delta was added to.
logprobs: Vec<ResponseLogProb>The log probabilities of the tokens in the delta.
output_index: i64The index of the output item that the text delta was added to.
sequence_number: i64The sequence number for this event.
type_: ResponseTextDeltaEventTypeThe type of the event. Always response.output_text.delta.
Trait Implementations§
Source§impl Clone for ResponseTextDeltaEvent
impl Clone for ResponseTextDeltaEvent
Source§fn clone(&self) -> ResponseTextDeltaEvent
fn clone(&self) -> ResponseTextDeltaEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResponseTextDeltaEvent
impl Debug for ResponseTextDeltaEvent
Source§impl<'de> Deserialize<'de> for ResponseTextDeltaEvent
impl<'de> Deserialize<'de> for ResponseTextDeltaEvent
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 From<ResponseTextDeltaEvent> for ResponseStreamEvent
impl From<ResponseTextDeltaEvent> for ResponseStreamEvent
Source§fn from(value: ResponseTextDeltaEvent) -> Self
fn from(value: ResponseTextDeltaEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResponseTextDeltaEvent
impl RefUnwindSafe for ResponseTextDeltaEvent
impl Send for ResponseTextDeltaEvent
impl Sync for ResponseTextDeltaEvent
impl Unpin for ResponseTextDeltaEvent
impl UnsafeUnpin for ResponseTextDeltaEvent
impl UnwindSafe for ResponseTextDeltaEvent
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