A part of a ChatMessage as returned by GetParts: either a piece of text or a tool call.
Object
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public sealed class ChatMessagePartGets whether the part is text.
public bool IsText { get; }
| Type | Description |
|---|---|
| bool | Gets whether the part is text. |
Gets the text of the part. Empty when the part is a tool call.
public string Text { get; }
| Type | Description |
|---|---|
| string | Gets the text of the part. Empty when the part is a tool call. |
Gets the tool call of the part, or null when the part is text.
public ChatToolCall ToolCall { get; }
| Type | Description |
|---|---|
| ChatToolCall | Gets the tool call of the part, or null when the part is text. |