forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuseExampleSuggestions.ts
More file actions
38 lines (37 loc) · 1.2 KB
/
Copy pathuseExampleSuggestions.ts
File metadata and controls
38 lines (37 loc) · 1.2 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
// frontend/src/hooks/useExampleSuggestions.ts
import { useConfigureSuggestions } from "@copilotkit/react-core/v2";
export const useExampleSuggestions = () => {
useConfigureSuggestions({
suggestions: [
{
title: "Pie chart (Controlled Generative UI)",
message:
"Please show me the distribution of our revenue by category in a pie chart.",
},
{
title: "Bar chart (Controlled Generative UI)",
message:
"Please show me the distribution of our expenses by category in a bar chart.",
},
{
title: "MCP apps (Open Generative UI)",
message:
"Please create a simple network diagram of a router and two switches.",
},
{
title: "Change theme (Frontend Tools)",
message: "Switch the app to dark mode.",
},
{
title: "Scheduling (Human In The Loop)",
message: "Please schedule a meeting with me to learn about CopilotKit.",
},
{
title: "Canvas (Shared State)",
message:
"Please demonstrate shared state, open the canvas, and then add some todos to it about learning about CopilotKit.",
},
],
available: "always",
});
};