Skip to content

ModelStreamPart

Namespace: Vercel.AI.Operations

public sealed class ModelStreamPart

A part emitted by a transcription or translation model stream.

Inheritance: object

View source

public byte[]? Audio { get; set; }

Translated audio bytes.

Value: byte[]

View source

public string? Delta { get; set; }

Text delta.

Value: string

View source

public double? DurationInSeconds { get; set; }

Duration in seconds.

Value: double?

View source

public Exception? Error { get; set; }

Error carried by an error part.

Value: Exception

View source

public IReadOnlyDictionary<string, string>? Headers { get; set; }

Response headers.

Value: IReadOnlyDictionary<string, string>

View source

public string? Id { get; set; }

Part id.

Value: string

View source

public string? Language { get; set; }

Detected language.

Value: string

View source

public string? ModelId { get; set; }

Response model id.

Value: string

View source

public string? OutputText { get; set; }

Translated text on finish.

Value: string

View source

public JsonElement? ProviderMetadata { get; set; }

Provider metadata.

Value: JsonElement?

View source

public JsonElement? Raw { get; set; }

Raw provider chunk.

Value: JsonElement?

View source

public IReadOnlyList<TranscriptSegment>? Segments { get; set; }

Transcript segments.

Value: IReadOnlyList<TranscriptSegment>

View source

public string? SourceText { get; set; }

Source transcript on finish.

Value: string

View source

public string? Text { get; set; }

Final text.

Value: string

View source

public DateTime? Timestamp { get; set; }

Response timestamp.

Value: DateTime?

View source

public string Type { get; set; }

Part type.

Value: string

View source

public OperationUsage? Usage { get; set; }

Usage on finish.

Value: OperationUsage

View source

public IReadOnlyList<OperationWarning>? Warnings { get; set; }

Warnings carried by stream-start.

Value: IReadOnlyList<OperationWarning>

View source

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