DataUIPart
Namespace: Vercel.AI.Ui
public sealed class DataUIPart : UIMessagePartA data part. Its type is data-{name}. Maps to DataUIPart.
Inheritance: object → UIMessagePart
Constructors
Section titled “Constructors”DataUIPart(string, JsonElement)
Section titled “DataUIPart(string, JsonElement)”public DataUIPart(string name, JsonElement data)Creates a data part named <code class=“paramref”>name</code>.
Parameters
| Name | Type | Description |
|---|---|---|
name |
string | |
data |
JsonElement |
Properties
Section titled “Properties”public JsonElement Data { get; }The data.
Value: JsonElement
public string? Id { get; init; }The part id.
Value: string
public string Name { get; }The data name, without the data- prefix.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product