Skip to content

GenerateVideoResult

Namespace: Vercel.AI.Operations

public sealed class GenerateVideoResult

Result of CancellationToken).

Inheritance: object

View source

GenerateVideoResult(IReadOnlyList<GeneratedVideo>, IReadOnlyList<OperationWarning>, IReadOnlyList<ProviderResponse>, JsonElement)

Section titled “GenerateVideoResult(IReadOnlyList<GeneratedVideo>, IReadOnlyList<OperationWarning>, IReadOnlyList<ProviderResponse>, JsonElement)”
public GenerateVideoResult(IReadOnlyList<GeneratedVideo> videos, IReadOnlyList<OperationWarning> warnings, IReadOnlyList<ProviderResponse> responses, JsonElement providerMetadata)

Creates a result.

Parameters

Name Type Description
videos IReadOnlyList<GeneratedVideo>
warnings IReadOnlyList<OperationWarning>
responses IReadOnlyList<ProviderResponse>
providerMetadata JsonElement

View source

public JsonElement ProviderMetadata { get; }

Merged provider metadata.

Value: JsonElement

View source

public IReadOnlyList<ProviderResponse> Responses { get; }

Responses. Each one carries that call’s provider metadata.

Value: IReadOnlyList<ProviderResponse>

View source

public GeneratedVideo Video { get; }

First video.

Value: GeneratedVideo

View source

public IReadOnlyList<GeneratedVideo> Videos { get; }

All videos.

Value: IReadOnlyList<GeneratedVideo>

View source

public IReadOnlyList<OperationWarning> Warnings { get; }

Warnings.

Value: IReadOnlyList<OperationWarning>

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product