TextUIPart
Namespace: Vercel.AI.Ui
public sealed class TextUIPart : UIMessagePartA text part. Maps to TextUIPart.
Inheritance: object → UIMessagePart
Constructors
Section titled “Constructors”TextUIPart(string)
Section titled “TextUIPart(string)”public TextUIPart(string text)Creates a text part.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string |
Properties
Section titled “Properties”ProviderMetadata
Section titled “ProviderMetadata”public IReadOnlyDictionary<string, JsonElement>? ProviderMetadata { get; init; }The provider metadata.
Value: IReadOnlyDictionary<string, JsonElement>
public string? State { get; init; }The state of the text part: streaming or done.
Value: string
public string Text { get; }The text content.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product