Skip to content

Commit 566dc85

Browse files
committed
try using copilot readable in dojo
1 parent 0ab0851 commit 566dc85

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

apps/dojo/src/app/[integrationId]/feature/agentic_chat/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import "./style.css";
55
import {
66
CopilotKit,
77
useFrontendTool,
8+
useHumanInTheLoop,
9+
useCopilotReadable,
810
} from "@copilotkit/react-core";
911
import { CopilotChat } from "@copilotkit/react-ui";
1012

@@ -32,6 +34,10 @@ const AgenticChat: React.FC<AgenticChatProps> = ({ params }) => {
3234
const Chat = () => {
3335
const [background, setBackground] = useState<string>("--copilot-kit-background-color");
3436

37+
useCopilotReadable({
38+
description: 'Name of the user',
39+
value: 'Bob'
40+
})
3541
useFrontendTool({
3642
name: "change_background",
3743
description:

0 commit comments

Comments
 (0)