Class
DataGridPromptRequestCommandContext

Provides context for the PromptRequestCommand.

Definition

Namespace:Telerik.Maui.Controls.DataGrid

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class DataGridPromptRequestCommandContext

Inheritance: objectDataGridPromptRequestCommandContext

Constructors

DataGridPromptRequestCommandContext(string, Action<string>, Action<bool>)

Initializes a new instance of the DataGridPromptRequestCommandContext class.

Declaration

cs-api-definition
public DataGridPromptRequestCommandContext(string prompt, Action<string> onResponseSet = null, Action<bool> onHasErrorSet = null)

Parameters

prompt

string

The prompt text from the user.

onResponseSet

Action<string>

Optional callback invoked when the Response property is set.

onHasErrorSet

Action<bool>

Optional callback invoked when the HasError property is set.

Properties

HasError

Gets or sets a value indicating whether an error occurred during processing.

Declaration

cs-api-definition
public bool HasError { get; set; }

Property Value

bool

Prompt

Gets the prompt text from the user.

Declaration

cs-api-definition
public string Prompt { get; }

Property Value

string

RequestJson

Gets or sets the JSON request sent to the AI model.

Declaration

cs-api-definition
public string RequestJson { get; set; }

Property Value

string

ResponseJson

Gets or sets the response text.

Declaration

cs-api-definition
public string ResponseJson { get; set; }

Property Value

string