Skip to content

StreamTranslateResult

Namespace: Vercel.AI.Operations

public sealed class StreamTranslateResult

Streaming translation result.

Inheritance: object

View source

public Task<double?> DurationInSeconds { get; }

Duration. Accessing it claims the stream.

Value: Task<double?>

View source

public OperationFullStream<ModelStreamPart> FullStream { get; }

Single-consumer part stream.

Value: OperationFullStream&lt;ModelStreamPart&gt;

View source

public Task<JsonElement> ProviderMetadata { get; }

Provider metadata. Accessing it claims the stream.

Value: Task<JsonElement>

View source

public Task<ProviderResponse> Response { get; }

Response. Accessing it claims the stream.

Value: Task<ProviderResponse>

View source

public Task<string> SourceText { get; }

Source transcript. Accessing it claims the stream.

Value: Task<string>

View source

public Task<string> TranslationText { get; }

Translated text. Accessing it claims the stream.

Value: Task<string>

View source

public Task<OperationUsage?> Usage { get; }

Usage. Accessing it claims the stream.

Value: Task<OperationUsage>

View source

public Task<IReadOnlyList<OperationWarning>> Warnings { get; }

Warnings. Accessing it claims the stream.

Value: Task<IReadOnlyList<OperationWarning>>

View source

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