Skip to content

ReasoningUIPart

Namespace: Vercel.AI.Ui

public sealed class ReasoningUIPart : UIMessagePart

A reasoning part. Maps to ReasoningUIPart.

Inheritance: object → UIMessagePart

View source

public ReasoningUIPart(string text)

Creates a reasoning part.

Parameters

Name Type Description
text string

View source

public string? Id { get; init; }

The reasoning part ID.

Value: string

View source

public IReadOnlyDictionary<string, JsonElement>? ProviderMetadata { get; init; }

The provider metadata.

Value: IReadOnlyDictionary<string, JsonElement>

View source

public string? State { get; init; }

The state of the reasoning part: streaming or done.

Value: string

View source

public string Text { get; }

The reasoning text.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product