UNPKG

@copilotkit/react-core

Version:

<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />

1 lines 610 B
{"version":3,"sources":["../src/hooks/use-default-tool.ts"],"sourcesContent":["import { useCopilotAction } from \"./use-copilot-action\";\nimport { CatchAllFrontendAction } from \"../types/frontend-action\";\n\nexport function useDefaultTool(\n tool: Omit<CatchAllFrontendAction, \"name\">,\n dependencies?: any[],\n) {\n // Use the existing useCopilotAction hook\n useCopilotAction(\n { ...tool, name: \"*\" } satisfies CatchAllFrontendAction,\n dependencies,\n );\n}\n"],"mappings":";;;;;;;;;AAGO,SAAS,eACd,MACA,cACA;AAEA;AAAA,IACE,iCAAK,OAAL,EAAW,MAAM,IAAI;AAAA,IACrB;AAAA,EACF;AACF;","names":[]}