ChatMessagePart Class

A part of a ChatMessage as returned by GetParts: either a piece of text or a tool call.

Inheritance

Object

ChatMessagePart

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public sealed class ChatMessagePart

Properties

IsTextLink to this section

Gets whether the part is text.

Declaration
public bool IsText { get; }
Property Value
Type Description
boolGets whether the part is text.

TextLink to this section

Gets the text of the part. Empty when the part is a tool call.

Declaration
public string Text { get; }
Property Value
Type Description
stringGets the text of the part. Empty when the part is a tool call.

ToolCallLink to this section

Gets the tool call of the part, or null when the part is text.

Declaration
public ChatToolCall ToolCall { get; }
Property Value
Type Description
ChatToolCallGets the tool call of the part, or null when the part is text.
In This Article
An error has occurred. This app may no longer respond until reloaded. Reload 🗙