-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy pathForm1.cs
More file actions
26 lines (23 loc) · 818 Bytes
/
Form1.cs
File metadata and controls
26 lines (23 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using Telerik.WinControls.UI.AIPrompt;
namespace Common
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
// >> aiprompt-getting-started-promptrequest
private void RadAIPrompt1_PromptRequest(object sender, Telerik.WinControls.UI.AIPrompt.PromptRequestEventArgs e)
{
AIPromptOutputItem responseAIPromptOutputItemModel = new AIPromptOutputItem()
{
Title = "Response from your AI model",
InputText = e.InputText,
ResponseText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.", // Here you can set the string value returned from your AI model
};
this.radaiPrompt1.OutputItems.Add(responseAIPromptOutputItemModel);
}
// << aiprompt-getting-started-promptrequest
}
}