Class
ChatAIResponseEventArgs

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class ChatAIResponseEventArgs

Inheritance: objectChatAIResponseEventArgs

Constructors

ChatAIResponseEventArgs()

Declaration

cs-api-definition
public ChatAIResponseEventArgs()

Properties

CancellationTokenSource

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

Declaration

cs-api-definition
public CancellationTokenSource CancellationTokenSource { get; set; }

Property Value

CancellationTokenSource

Response

The AI response. Null if streaming is used.

Declaration

cs-api-definition
public Task<ChatAIResponse>? Response { get; }

Property Value

Task<ChatAIResponse>

ResponseStream

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

Declaration

cs-api-definition
public IAsyncEnumerable<ChatAIResponse>? ResponseStream { get; }

Property Value

IAsyncEnumerable<ChatAIResponse>