pub struct ResponseReasoningTextDeltaEvent {
pub content_index: i64,
pub delta: String,
pub item_id: String,
pub output_index: i64,
pub sequence_number: i64,
pub type_: ResponseReasoningTextDeltaEventType,
}Expand description
Emitted when a delta is added to a reasoning text.
JSON schema
{
"description": "Emitted when a delta is added to a reasoning text.",
"type": "object",
"required": [
"content_index",
"delta",
"item_id",
"output_index",
"sequence_number",
"type"
],
"properties": {
"content_index": {
"description": "The index of the reasoning content part this delta is associated with.\n",
"type": "integer"
},
"delta": {
"description": "The text delta that was added to the reasoning content.\n",
"type": "string"
},
"item_id": {
"description": "The ID of the item this reasoning text delta is associated with.\n",
"type": "string"
},
"output_index": {
"description": "The index of the output item this reasoning text delta is associated with.\n",
"type": "integer"
},
"sequence_number": {
"description": "The sequence number of this event.\n",
"type": "integer"
},
"type": {
"description": "The type of the event. Always `response.reasoning_text.delta`.\n",
"type": "string",
"enum": [
"response.reasoning_text.delta"
],
"x-stainless-const": true
}
},
"x-oaiMeta": {
"group": "responses",
"name": "response.reasoning_text.delta"
}
}Fields§
§content_index: i64The index of the reasoning content part this delta is associated with.
delta: StringThe text delta that was added to the reasoning content.
item_id: StringThe ID of the item this reasoning text delta is associated with.
output_index: i64The index of the output item this reasoning text delta is associated with.
sequence_number: i64The sequence number of this event.
type_: ResponseReasoningTextDeltaEventTypeThe type of the event. Always response.reasoning_text.delta.
Trait Implementations§
Source§impl Clone for ResponseReasoningTextDeltaEvent
impl Clone for ResponseReasoningTextDeltaEvent
Source§fn clone(&self) -> ResponseReasoningTextDeltaEvent
fn clone(&self) -> ResponseReasoningTextDeltaEvent
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<'de> Deserialize<'de> for ResponseReasoningTextDeltaEvent
impl<'de> Deserialize<'de> for ResponseReasoningTextDeltaEvent
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<ResponseReasoningTextDeltaEvent> for ResponseStreamEvent
impl From<ResponseReasoningTextDeltaEvent> for ResponseStreamEvent
Source§fn from(value: ResponseReasoningTextDeltaEvent) -> Self
fn from(value: ResponseReasoningTextDeltaEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResponseReasoningTextDeltaEvent
impl RefUnwindSafe for ResponseReasoningTextDeltaEvent
impl Send for ResponseReasoningTextDeltaEvent
impl Sync for ResponseReasoningTextDeltaEvent
impl Unpin for ResponseReasoningTextDeltaEvent
impl UnsafeUnpin for ResponseReasoningTextDeltaEvent
impl UnwindSafe for ResponseReasoningTextDeltaEvent
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