pub struct ResponseImageGenCallCompletedEvent {
pub item_id: String,
pub output_index: i64,
pub sequence_number: i64,
pub type_: ResponseImageGenCallCompletedEventType,
}Expand description
Emitted when an image generation tool call has completed and the final image is available.
JSON schema
{
"title": "ResponseImageGenCallCompletedEvent",
"description": "Emitted when an image generation tool call has completed and the final image is available.\n",
"type": "object",
"required": [
"item_id",
"output_index",
"sequence_number",
"type"
],
"properties": {
"item_id": {
"description": "The unique identifier of the image generation item being processed.",
"type": "string"
},
"output_index": {
"description": "The index of the output item in the response's output array.",
"type": "integer"
},
"sequence_number": {
"description": "The sequence number of this event.",
"type": "integer"
},
"type": {
"description": "The type of the event. Always 'response.image_generation_call.completed'.",
"type": "string",
"enum": [
"response.image_generation_call.completed"
],
"x-stainless-const": true
}
},
"x-oaiMeta": {
"group": "responses",
"name": "response.image_generation_call.completed"
}
}Fields§
§item_id: StringThe unique identifier of the image generation item being processed.
output_index: i64The index of the output item in the response’s output array.
sequence_number: i64The sequence number of this event.
type_: ResponseImageGenCallCompletedEventTypeThe type of the event. Always ‘response.image_generation_call.completed’.
Trait Implementations§
Source§impl Clone for ResponseImageGenCallCompletedEvent
impl Clone for ResponseImageGenCallCompletedEvent
Source§fn clone(&self) -> ResponseImageGenCallCompletedEvent
fn clone(&self) -> ResponseImageGenCallCompletedEvent
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 ResponseImageGenCallCompletedEvent
impl<'de> Deserialize<'de> for ResponseImageGenCallCompletedEvent
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<ResponseImageGenCallCompletedEvent> for ResponseStreamEvent
impl From<ResponseImageGenCallCompletedEvent> for ResponseStreamEvent
Source§fn from(value: ResponseImageGenCallCompletedEvent) -> Self
fn from(value: ResponseImageGenCallCompletedEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResponseImageGenCallCompletedEvent
impl RefUnwindSafe for ResponseImageGenCallCompletedEvent
impl Send for ResponseImageGenCallCompletedEvent
impl Sync for ResponseImageGenCallCompletedEvent
impl Unpin for ResponseImageGenCallCompletedEvent
impl UnsafeUnpin for ResponseImageGenCallCompletedEvent
impl UnwindSafe for ResponseImageGenCallCompletedEvent
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