ImageGenerationResult
Namespace: Vercel.AI.Provider
public class ImageGenerationResultImage generation result.
Inheritance: object
Derived: LumaImageGeneration
Constructors
Section titled “Constructors”ImageGenerationResult(IReadOnlyList<GeneratedImage>, IReadOnlyList<CallWarning>?, ImageResponseInfo?, LanguageModelUsage?, JsonElement?, bool?)
Section titled “ImageGenerationResult(IReadOnlyList<GeneratedImage>, IReadOnlyList<CallWarning>?, ImageResponseInfo?, LanguageModelUsage?, JsonElement?, bool?)”public ImageGenerationResult(IReadOnlyList<GeneratedImage> images, IReadOnlyList<CallWarning>? warnings = null, ImageResponseInfo? response = null, LanguageModelUsage? usage = null, JsonElement? providerMetadata = null, bool? isRetryable = null)Creates an image result.
Parameters
| Name | Type | Description |
|---|---|---|
images |
IReadOnlyList<GeneratedImage> | |
warnings |
IReadOnlyList<CallWarning> | |
response |
ImageResponseInfo | |
usage |
LanguageModelUsage | |
providerMetadata |
JsonElement? | |
isRetryable |
bool? |
Properties
Section titled “Properties”CallWarnings
Section titled “CallWarnings”public IReadOnlyList<CallWarning> CallWarnings { get; }Warnings of this call. Maps to warnings.
Value: IReadOnlyList<CallWarning>
Images
Section titled “Images”public IReadOnlyList<GeneratedImage> Images { get; }Generated images.
Value: IReadOnlyList<GeneratedImage>
IsRetryable
Section titled “IsRetryable”public bool? IsRetryable { get; }<a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a> when an empty result must not be retried. Maps to isRetryable.
Value: bool?
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider metadata of this call, keyed by provider name. Maps to providerMetadata.
Value: JsonElement?
Response
Section titled “Response”public ImageResponseInfo? Response { get; }Response metadata of this call, when the model reports it.
Value: ImageResponseInfo
public LanguageModelUsage? Usage { get; }Token usage, when the response included it.
Value: LanguageModelUsage
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product