Skip to content

TextStartStreamPart

Namespace: Vercel.AI.Provider

public sealed class TextStartStreamPart : LanguageModelStreamPart

Marks the start of one text block.

Inheritance: object → LanguageModelStreamPart

View source

public TextStartStreamPart(string id, JsonElement? providerMetadata = null)

Creates a text-start part.

Parameters

Name Type Description
id string
providerMetadata JsonElement?

View source

public string Id { get; }

Text block id.

Value: string

View source

public JsonElement? ProviderMetadata { get; }

Provider metadata for this block.

Value: JsonElement?

View source

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