TextEndStreamPart
Namespace: Vercel.AI.Provider
public sealed class TextEndStreamPart : LanguageModelStreamPartMarks the end of one text block.
Inheritance: object → LanguageModelStreamPart
Constructors
Section titled “Constructors”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? |
Properties
Section titled “Properties”Citations
Section titled “Citations”public IReadOnlyList<Citation>? Citations { get; }References supporting the text block with this id, or null when there are none.
Value: IReadOnlyList<Citation>
public string Id { get; }Text block id.
Value: string
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider metadata for this block.
Value: JsonElement?
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product