Skip to content

TranslationStreamStart

Namespace: Vercel.AI.Operations

public sealed class TranslationStreamStart

A started translation stream.

Inheritance: object

View source

TranslationStreamStart(ModelPartStream, ProviderResponse?)

Section titled “TranslationStreamStart(ModelPartStream, ProviderResponse?)”
public TranslationStreamStart(ModelPartStream stream, ProviderResponse? response = null)

Creates a start payload.

Parameters

Name Type Description
stream ModelPartStream
response ProviderResponse

View source

public ProviderResponse? Response { get; }

Initial response metadata.

Value: ProviderResponse

View source

public ModelPartStream Stream { get; }

Model parts.

Value: ModelPartStream

View source

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