struct
AI::Provider::ImageModel::Result
- AI::Provider::ImageModel::Result
- Struct
- Value
- Object
Overview
The result of an image model doGenerate call.
Included Modules
- JSON::Serializable
Defined in:
ai/provider/image_model/image_model.crConstructors
- .new(images : Array(ImageData), warnings : Array(Shared::Warning), response : ResultResponse, provider_metadata : ProviderMetadata | Nil = nil, usage : Usage | Nil = nil)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#images : Array(ImageData)
Generated images as base64 encoded strings or binary data.
-
#provider_metadata : ProviderMetadata | Nil
Additional provider-specific metadata.
-
#response : ResultResponse
Response information for telemetry and debugging.
-
#usage : Usage | Nil
Optional token usage for the image generation call.
-
#warnings : Array(Shared::Warning)
Warnings for the call, e.g.
Constructor Detail
Instance Method Detail
Generated images as base64 encoded strings or binary data.