ImageModelResult
Namespace: Vercel.AI.Operations
public sealed class ImageModelResultOne doGenerate result.
Inheritance: object
Constructors
Section titled “Constructors”ImageModelResult(IReadOnlyList<object?>, IReadOnlyList<OperationWarning>?, OperationUsage?, JsonElement?, ProviderResponse?, bool?)
Section titled “ImageModelResult(IReadOnlyList<object?>, IReadOnlyList<OperationWarning>?, OperationUsage?, JsonElement?, ProviderResponse?, bool?)”public ImageModelResult(IReadOnlyList<object?> images, IReadOnlyList<OperationWarning>? warnings = null, OperationUsage? usage = null, JsonElement? providerMetadata = null, ProviderResponse? response = null, bool? isRetryable = null)Creates a result.
Parameters
| Name | Type | Description |
|---|---|---|
images |
IReadOnlyList<object> | |
warnings |
IReadOnlyList<OperationWarning> | |
usage |
OperationUsage | |
providerMetadata |
JsonElement? | |
response |
ProviderResponse | |
isRetryable |
bool? |
Properties
Section titled “Properties”Images
Section titled “Images”public IReadOnlyList<object?> Images { get; }Image payloads: base64 strings or byte arrays.
Value: IReadOnlyList<object>
IsRetryable
Section titled “IsRetryable”public bool? IsRetryable { get; }When false, an empty image list is terminal.
Value: bool?
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider metadata, including per-image arrays.
Value: JsonElement?
Response
Section titled “Response”public ProviderResponse Response { get; }Response metadata.
Value: ProviderResponse
public OperationUsage? Usage { get; }Token usage. Null when the provider omitted it.
Value: OperationUsage
Warnings
Section titled “Warnings”public IReadOnlyList<OperationWarning> Warnings { get; }Warnings from this call.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product