Skip to content

UIMessagePart

Namespace: Vercel.AI.Ui

public abstract class UIMessagePart

A part of a UIMessage. Maps to UIMessagePart.

Inheritance: object

Derived: CustomContentUIPart, DataUIPart, FileUIPart, ReasoningFileUIPart, ReasoningUIPart, SourceDocumentUIPart, SourceUrlUIPart, StepStartUIPart, TextUIPart, ToolUIPart

View source

protected UIMessagePart(string type)

Creates a part.

Parameters

Name Type Description
type string

View source

public string Type { get; }

The part type, such as text, tool-get-weather, or data-chart.

Value: string

View source

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