New to Telerik UI for WinForms? Start a free 30-day trial

Represents AI-generated text and controls whether the response's action buttons are shown.

Definition

Constructors

Initializes an AI text message with application-defined user data.

C#
public AIChatTextMessage(string message, Author author, DateTime timeStamp, object userData)
Parameters:messagestring

The generated response text.

authorAuthor

The author displayed for the response.

timeStampDateTime

The time associated with the response.

userDataobject

Application-defined data associated with the message.

Initializes an AI text message without additional user data.

C#
public AIChatTextMessage(string message, Author author, DateTime timeStamp)
Parameters:messagestring

The generated response text.

authorAuthor

The author displayed for the response.

timeStampDateTime

The time associated with the response.

Properties

Gets or sets whether the AI response's copy, regenerate, and vote buttons are displayed. The default is true.

C#
public bool ShowButtonsArea { get; set; }

Changing this property does not raise PropertyChanged, so the chat view is not notified through the message-change path.