Skip to content

TextEndStreamPart

Namespace: Vercel.AI.Provider

public sealed class TextEndStreamPart : LanguageModelStreamPart

Marks the end of one text block.

Inheritance: object → LanguageModelStreamPart

View source

TextEndStreamPart(string, IReadOnlyList<Citation>?, JsonElement?)

Section titled “TextEndStreamPart(string, IReadOnlyList<Citation>?, JsonElement?)”
public TextEndStreamPart(string id, IReadOnlyList<Citation>? citations = null, JsonElement? providerMetadata = null)

Creates a text-end part.

Parameters

Name Type Description
id string
citations IReadOnlyList<Citation>
providerMetadata JsonElement?

View source

public IReadOnlyList<Citation>? Citations { get; }

References supporting the text block with this id, or null when there are none.

Value: IReadOnlyList<Citation>

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