Files
2026-07-13 12:58:18 +08:00

18 lines
348 B
TypeScript

import { useCopilotAction } from "@copilotkit/react-core";
useCopilotAction({
name: "optional",
parameters: [
{
name: "arg",
type: "string",
description: "The optional argument to display.",
required: false,
},
],
handler: async ({ arg }) => {
// TODO this should fail
let x: string = arg;
},
});