ReasoningUIPart
Namespace: Vercel.AI.Ui
public sealed class ReasoningUIPart : UIMessagePartA reasoning part. Maps to ReasoningUIPart.
Inheritance: object → UIMessagePart
Constructors
Section titled “Constructors”ReasoningUIPart(string)
Section titled “ReasoningUIPart(string)”public ReasoningUIPart(string text)Creates a reasoning part.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string |
Properties
Section titled “Properties”public string? Id { get; init; }The reasoning part ID.
Value: string
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 reasoning part: streaming or done.
Value: string
public string Text { get; }The reasoning text.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product