pub struct ResponseCodeInterpreterCallCompletedEvent {
pub item_id: String,
pub output_index: i64,
pub sequence_number: i64,
pub type_: ResponseCodeInterpreterCallCompletedEventType,
}Expand description
Emitted when the code interpreter call is completed.
JSON schema
{
"description": "Emitted when the code interpreter call is completed.",
"type": "object",
"required": [
"item_id",
"output_index",
"sequence_number",
"type"
],
"properties": {
"item_id": {
"description": "The unique identifier of the code interpreter tool call item.",
"type": "string"
},
"output_index": {
"description": "The index of the output item in the response for which the code interpreter call is completed.",
"type": "integer"
},
"sequence_number": {
"description": "The sequence number of this event, used to order streaming events.",
"type": "integer"
},
"type": {
"description": "The type of the event. Always `response.code_interpreter_call.completed`.",
"type": "string",
"enum": [
"response.code_interpreter_call.completed"
],
"x-stainless-const": true
}
},
"x-oaiMeta": {
"group": "responses",
"name": "response.code_interpreter_call.completed"
}
}Fields§
§item_id: StringThe unique identifier of the code interpreter tool call item.
output_index: i64The index of the output item in the response for which the code interpreter call is completed.
sequence_number: i64The sequence number of this event, used to order streaming events.
type_: ResponseCodeInterpreterCallCompletedEventTypeThe type of the event. Always response.code_interpreter_call.completed.
Trait Implementations§
Source§impl Clone for ResponseCodeInterpreterCallCompletedEvent
impl Clone for ResponseCodeInterpreterCallCompletedEvent
Source§fn clone(&self) -> ResponseCodeInterpreterCallCompletedEvent
fn clone(&self) -> ResponseCodeInterpreterCallCompletedEvent
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 ResponseCodeInterpreterCallCompletedEvent
impl<'de> Deserialize<'de> for ResponseCodeInterpreterCallCompletedEvent
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<ResponseCodeInterpreterCallCompletedEvent> for ResponseStreamEvent
impl From<ResponseCodeInterpreterCallCompletedEvent> for ResponseStreamEvent
Source§fn from(value: ResponseCodeInterpreterCallCompletedEvent) -> Self
fn from(value: ResponseCodeInterpreterCallCompletedEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResponseCodeInterpreterCallCompletedEvent
impl RefUnwindSafe for ResponseCodeInterpreterCallCompletedEvent
impl Send for ResponseCodeInterpreterCallCompletedEvent
impl Sync for ResponseCodeInterpreterCallCompletedEvent
impl Unpin for ResponseCodeInterpreterCallCompletedEvent
impl UnsafeUnpin for ResponseCodeInterpreterCallCompletedEvent
impl UnwindSafe for ResponseCodeInterpreterCallCompletedEvent
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