New to Telerik UI for BlazorStart a free 30-day trial

Event arguments for the Chat AI Response event. Contains the AI response and a cancellation token source that can be used to cancel the AI request.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class ChatAIResponseEventArgs

Inheritance: objectChatAIResponseEventArgs

Constructors

C#
public ChatAIResponseEventArgs()

Properties

The cancellation token source that can be used to cancel the AI request.

C#
public CancellationTokenSource CancellationTokenSource { get; set; }

The AI response. Null if streaming is used.

C#
public Task<ChatAIResponse>? Response { get; }

The AI response chunks. Null if streaming is not used.

C#
public IAsyncEnumerable<ChatAIResponse>? ResponseStream { get; }