Supported Types
ImageGenerationResponse
Union Discrimination
Use theType field to determine which variant is active, then access the corresponding field:
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
createImagesResponse := operations.CreateCreateImagesResponseImageGenerationResponse(components.ImageGenerationResponse{/* values here */})
createImagesResponse := operations.CreateCreateImagesResponseEventStream(*stream.EventStream[components.ImageStreamingResponse]{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch createImagesResponse.Type {
case operations.CreateImagesResponseTypeImageGenerationResponse:
// createImagesResponse.ImageGenerationResponse is populated
case operations.CreateImagesResponseTypeEventStream:
// createImagesResponse.EventStream is populated
}