forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsuggestions.ts
More file actions
32 lines (30 loc) · 791 Bytes
/
Copy pathsuggestions.ts
File metadata and controls
32 lines (30 loc) · 791 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
27
28
29
30
31
32
"use client";
import { useConfigureSuggestions } from "@copilotkit/react-core/v2";
export function useSuggestions() {
useConfigureSuggestions({
suggestions: [
{
title: "Weather in SF",
message: "What's the weather in San Francisco?",
},
{
title: "Find flights",
message: "Find flights from SFO to JFK.",
},
{
title: "Stock price",
message: "What's the current price of AAPL?",
},
{
title: "Roll a d20",
message: "Roll a 20-sided die.",
},
{
title: "Chain tools",
message:
"Chain a few tools in this single turn: get the weather in Tokyo, search flights from SFO to Tokyo, and roll a d20.",
},
],
available: "always",
});
}