Package com.openai.models.images
Interface ImageEditStreamEvent.Visitor
-
- All Implemented Interfaces:
public interface ImageEditStreamEvent.Visitor<T extends Object>
An interface that defines how to map each variant of ImageEditStreamEvent to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract T
visitPartialImage(ImageEditPartialImageEvent partialImage)
Emitted when a partial image is available during image editing streaming. abstract T
visitCompleted(ImageEditCompletedEvent completed)
Emitted when image editing has completed and the final image is available. T
unknown(JsonValue json)
Maps an unknown variant of ImageEditStreamEvent to a value of type T. -
-
Method Detail
-
visitPartialImage
abstract T visitPartialImage(ImageEditPartialImageEvent partialImage)
Emitted when a partial image is available during image editing streaming.
-
visitCompleted
abstract T visitCompleted(ImageEditCompletedEvent completed)
Emitted when image editing has completed and the final image is available.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of ImageEditStreamEvent to a value of type T.
An instance of ImageEditStreamEvent can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-