@copilotkitnext/react 0.0.22-alpha.3 → 0.0.22-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +635 -46
- package/dist/index.d.ts +635 -46
- package/dist/index.js +325 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4286 -109
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/dist/chunk-32YJ5VJ4.mjs +0 -157
- package/dist/chunk-32YJ5VJ4.mjs.map +0 -1
- package/dist/chunk-36HFWACS.mjs +0 -1
- package/dist/chunk-36HFWACS.mjs.map +0 -1
- package/dist/chunk-3TA5QBSZ.mjs +0 -122
- package/dist/chunk-3TA5QBSZ.mjs.map +0 -1
- package/dist/chunk-46BZRXWT.mjs +0 -16
- package/dist/chunk-46BZRXWT.mjs.map +0 -1
- package/dist/chunk-4UDBR75C.mjs +0 -106
- package/dist/chunk-4UDBR75C.mjs.map +0 -1
- package/dist/chunk-4XJK5IVQ.mjs +0 -83
- package/dist/chunk-4XJK5IVQ.mjs.map +0 -1
- package/dist/chunk-5AAT4Z3C.mjs +0 -107
- package/dist/chunk-5AAT4Z3C.mjs.map +0 -1
- package/dist/chunk-5JNWVLQI.mjs +0 -72
- package/dist/chunk-5JNWVLQI.mjs.map +0 -1
- package/dist/chunk-5SC3CO5Q.mjs +0 -69
- package/dist/chunk-5SC3CO5Q.mjs.map +0 -1
- package/dist/chunk-6VUKDHOD.mjs +0 -1
- package/dist/chunk-6VUKDHOD.mjs.map +0 -1
- package/dist/chunk-AEFM73CL.mjs +0 -32
- package/dist/chunk-AEFM73CL.mjs.map +0 -1
- package/dist/chunk-AI3Z3CHN.mjs +0 -97
- package/dist/chunk-AI3Z3CHN.mjs.map +0 -1
- package/dist/chunk-AXFRCGH6.mjs +0 -107
- package/dist/chunk-AXFRCGH6.mjs.map +0 -1
- package/dist/chunk-BT6C5OPU.mjs +0 -278
- package/dist/chunk-BT6C5OPU.mjs.map +0 -1
- package/dist/chunk-CGLGXQAU.mjs +0 -78
- package/dist/chunk-CGLGXQAU.mjs.map +0 -1
- package/dist/chunk-CSHBUHRW.mjs +0 -69
- package/dist/chunk-CSHBUHRW.mjs.map +0 -1
- package/dist/chunk-CZ3GI3IF.mjs +0 -283
- package/dist/chunk-CZ3GI3IF.mjs.map +0 -1
- package/dist/chunk-DVUQO72Z.mjs +0 -1
- package/dist/chunk-DVUQO72Z.mjs.map +0 -1
- package/dist/chunk-E4HD4M7R.mjs +0 -76
- package/dist/chunk-E4HD4M7R.mjs.map +0 -1
- package/dist/chunk-E56GYBP3.mjs +0 -101
- package/dist/chunk-E56GYBP3.mjs.map +0 -1
- package/dist/chunk-EJ5ZEAAN.mjs +0 -57
- package/dist/chunk-EJ5ZEAAN.mjs.map +0 -1
- package/dist/chunk-ETWJDCGE.mjs +0 -1
- package/dist/chunk-ETWJDCGE.mjs.map +0 -1
- package/dist/chunk-F43IPGPA.mjs +0 -311
- package/dist/chunk-F43IPGPA.mjs.map +0 -1
- package/dist/chunk-FIBK3DYE.mjs +0 -26
- package/dist/chunk-FIBK3DYE.mjs.map +0 -1
- package/dist/chunk-FVURPXQK.mjs +0 -45
- package/dist/chunk-FVURPXQK.mjs.map +0 -1
- package/dist/chunk-FZR2XQKR.mjs +0 -44
- package/dist/chunk-FZR2XQKR.mjs.map +0 -1
- package/dist/chunk-IA4CLXDM.mjs +0 -76
- package/dist/chunk-IA4CLXDM.mjs.map +0 -1
- package/dist/chunk-IH5VFJ4L.mjs +0 -60
- package/dist/chunk-IH5VFJ4L.mjs.map +0 -1
- package/dist/chunk-IICUCI5S.mjs +0 -43
- package/dist/chunk-IICUCI5S.mjs.map +0 -1
- package/dist/chunk-JLVGSNAO.mjs +0 -311
- package/dist/chunk-JLVGSNAO.mjs.map +0 -1
- package/dist/chunk-JWOIINVV.mjs +0 -237
- package/dist/chunk-JWOIINVV.mjs.map +0 -1
- package/dist/chunk-KCVDFZJX.mjs +0 -873
- package/dist/chunk-KCVDFZJX.mjs.map +0 -1
- package/dist/chunk-KPRUSQ3K.mjs +0 -1
- package/dist/chunk-KPRUSQ3K.mjs.map +0 -1
- package/dist/chunk-MWC5OV7Z.mjs +0 -1
- package/dist/chunk-MWC5OV7Z.mjs.map +0 -1
- package/dist/chunk-N5EP5OD5.mjs +0 -1
- package/dist/chunk-N5EP5OD5.mjs.map +0 -1
- package/dist/chunk-NASFZS3N.mjs +0 -43
- package/dist/chunk-NASFZS3N.mjs.map +0 -1
- package/dist/chunk-NB2GZAKG.mjs +0 -131
- package/dist/chunk-NB2GZAKG.mjs.map +0 -1
- package/dist/chunk-NB4DFAZH.mjs +0 -185
- package/dist/chunk-NB4DFAZH.mjs.map +0 -1
- package/dist/chunk-NNAYEAP2.mjs +0 -49
- package/dist/chunk-NNAYEAP2.mjs.map +0 -1
- package/dist/chunk-NNPKBGD6.mjs +0 -37
- package/dist/chunk-NNPKBGD6.mjs.map +0 -1
- package/dist/chunk-OMPVTGXH.mjs +0 -122
- package/dist/chunk-OMPVTGXH.mjs.map +0 -1
- package/dist/chunk-QFBM3ZT2.mjs +0 -45
- package/dist/chunk-QFBM3ZT2.mjs.map +0 -1
- package/dist/chunk-QJ6DZ645.mjs +0 -78
- package/dist/chunk-QJ6DZ645.mjs.map +0 -1
- package/dist/chunk-R5OLAA3L.mjs +0 -135
- package/dist/chunk-R5OLAA3L.mjs.map +0 -1
- package/dist/chunk-RF2CGPHQ.mjs +0 -215
- package/dist/chunk-RF2CGPHQ.mjs.map +0 -1
- package/dist/chunk-RGD2L3Z4.mjs +0 -96
- package/dist/chunk-RGD2L3Z4.mjs.map +0 -1
- package/dist/chunk-RK5P2LG6.mjs +0 -57
- package/dist/chunk-RK5P2LG6.mjs.map +0 -1
- package/dist/chunk-RRXDJCXI.mjs +0 -60
- package/dist/chunk-RRXDJCXI.mjs.map +0 -1
- package/dist/chunk-SPDE34WC.mjs +0 -283
- package/dist/chunk-SPDE34WC.mjs.map +0 -1
- package/dist/chunk-TAUOEJH2.mjs +0 -120
- package/dist/chunk-TAUOEJH2.mjs.map +0 -1
- package/dist/chunk-TKFOXPXF.mjs +0 -157
- package/dist/chunk-TKFOXPXF.mjs.map +0 -1
- package/dist/chunk-UOX5D73C.mjs +0 -22
- package/dist/chunk-UOX5D73C.mjs.map +0 -1
- package/dist/chunk-US4KNAAV.mjs +0 -1
- package/dist/chunk-US4KNAAV.mjs.map +0 -1
- package/dist/chunk-UZB3CTOY.mjs +0 -873
- package/dist/chunk-UZB3CTOY.mjs.map +0 -1
- package/dist/chunk-VBI6JXPC.mjs +0 -1
- package/dist/chunk-VBI6JXPC.mjs.map +0 -1
- package/dist/chunk-VE3SBLU7.mjs +0 -215
- package/dist/chunk-VE3SBLU7.mjs.map +0 -1
- package/dist/chunk-VUHFLJWI.mjs +0 -185
- package/dist/chunk-VUHFLJWI.mjs.map +0 -1
- package/dist/chunk-VVAXSF3M.mjs +0 -61
- package/dist/chunk-VVAXSF3M.mjs.map +0 -1
- package/dist/chunk-W5DUKRCI.mjs +0 -97
- package/dist/chunk-W5DUKRCI.mjs.map +0 -1
- package/dist/chunk-WNRDFAZ5.mjs +0 -22
- package/dist/chunk-WNRDFAZ5.mjs.map +0 -1
- package/dist/chunk-XO4IRKSC.mjs +0 -11
- package/dist/chunk-XO4IRKSC.mjs.map +0 -1
- package/dist/chunk-XU5CEPYQ.mjs +0 -75
- package/dist/chunk-XU5CEPYQ.mjs.map +0 -1
- package/dist/chunk-YPH4BHOY.mjs +0 -39
- package/dist/chunk-YPH4BHOY.mjs.map +0 -1
- package/dist/chunk-YVPPF62K.mjs +0 -32
- package/dist/chunk-YVPPF62K.mjs.map +0 -1
- package/dist/chunk-YZUPVMHC.mjs +0 -1
- package/dist/chunk-YZUPVMHC.mjs.map +0 -1
- package/dist/chunk-Z3OIGQCZ.mjs +0 -75
- package/dist/chunk-Z3OIGQCZ.mjs.map +0 -1
- package/dist/chunk-ZIDT52TM.mjs +0 -131
- package/dist/chunk-ZIDT52TM.mjs.map +0 -1
- package/dist/components/CopilotKitInspector.d.mts +0 -13
- package/dist/components/CopilotKitInspector.d.ts +0 -13
- package/dist/components/CopilotKitInspector.js +0 -69
- package/dist/components/CopilotKitInspector.js.map +0 -1
- package/dist/components/CopilotKitInspector.mjs +0 -7
- package/dist/components/CopilotKitInspector.mjs.map +0 -1
- package/dist/components/WildcardToolCallRender.d.mts +0 -7
- package/dist/components/WildcardToolCallRender.d.ts +0 -7
- package/dist/components/WildcardToolCallRender.js +0 -106
- package/dist/components/WildcardToolCallRender.js.map +0 -1
- package/dist/components/WildcardToolCallRender.mjs +0 -8
- package/dist/components/WildcardToolCallRender.mjs.map +0 -1
- package/dist/components/chat/CopilotChat.d.mts +0 -30
- package/dist/components/chat/CopilotChat.d.ts +0 -30
- package/dist/components/chat/CopilotChat.js +0 -2934
- package/dist/components/chat/CopilotChat.js.map +0 -1
- package/dist/components/chat/CopilotChat.mjs +0 -37
- package/dist/components/chat/CopilotChat.mjs.map +0 -1
- package/dist/components/chat/CopilotChatAssistantMessage.d.mts +0 -45
- package/dist/components/chat/CopilotChatAssistantMessage.d.ts +0 -45
- package/dist/components/chat/CopilotChatAssistantMessage.js +0 -735
- package/dist/components/chat/CopilotChatAssistantMessage.js.map +0 -1
- package/dist/components/chat/CopilotChatAssistantMessage.mjs +0 -29
- package/dist/components/chat/CopilotChatAssistantMessage.mjs.map +0 -1
- package/dist/components/chat/CopilotChatAudioRecorder.d.mts +0 -11
- package/dist/components/chat/CopilotChatAudioRecorder.d.ts +0 -11
- package/dist/components/chat/CopilotChatAudioRecorder.js +0 -131
- package/dist/components/chat/CopilotChatAudioRecorder.js.map +0 -1
- package/dist/components/chat/CopilotChatAudioRecorder.mjs +0 -9
- package/dist/components/chat/CopilotChatAudioRecorder.mjs.map +0 -1
- package/dist/components/chat/CopilotChatInput.d.mts +0 -67
- package/dist/components/chat/CopilotChatInput.d.ts +0 -67
- package/dist/components/chat/CopilotChatInput.js +0 -1305
- package/dist/components/chat/CopilotChatInput.js.map +0 -1
- package/dist/components/chat/CopilotChatInput.mjs +0 -16
- package/dist/components/chat/CopilotChatInput.mjs.map +0 -1
- package/dist/components/chat/CopilotChatMessageView.d.mts +0 -29
- package/dist/components/chat/CopilotChatMessageView.d.ts +0 -29
- package/dist/components/chat/CopilotChatMessageView.js +0 -1164
- package/dist/components/chat/CopilotChatMessageView.js.map +0 -1
- package/dist/components/chat/CopilotChatMessageView.mjs +0 -31
- package/dist/components/chat/CopilotChatMessageView.mjs.map +0 -1
- package/dist/components/chat/CopilotChatSuggestionPill.d.mts +0 -11
- package/dist/components/chat/CopilotChatSuggestionPill.d.ts +0 -11
- package/dist/components/chat/CopilotChatSuggestionPill.js +0 -76
- package/dist/components/chat/CopilotChatSuggestionPill.js.map +0 -1
- package/dist/components/chat/CopilotChatSuggestionPill.mjs +0 -10
- package/dist/components/chat/CopilotChatSuggestionPill.mjs.map +0 -1
- package/dist/components/chat/CopilotChatSuggestionView.d.mts +0 -33
- package/dist/components/chat/CopilotChatSuggestionView.d.ts +0 -33
- package/dist/components/chat/CopilotChatSuggestionView.js +0 -179
- package/dist/components/chat/CopilotChatSuggestionView.js.map +0 -1
- package/dist/components/chat/CopilotChatSuggestionView.mjs +0 -12
- package/dist/components/chat/CopilotChatSuggestionView.mjs.map +0 -1
- package/dist/components/chat/CopilotChatToggleButton.d.mts +0 -14
- package/dist/components/chat/CopilotChatToggleButton.d.ts +0 -14
- package/dist/components/chat/CopilotChatToggleButton.js +0 -222
- package/dist/components/chat/CopilotChatToggleButton.js.map +0 -1
- package/dist/components/chat/CopilotChatToggleButton.mjs +0 -16
- package/dist/components/chat/CopilotChatToggleButton.mjs.map +0 -1
- package/dist/components/chat/CopilotChatToolCallsView.d.mts +0 -10
- package/dist/components/chat/CopilotChatToolCallsView.d.ts +0 -10
- package/dist/components/chat/CopilotChatToolCallsView.js +0 -264
- package/dist/components/chat/CopilotChatToolCallsView.js.map +0 -1
- package/dist/components/chat/CopilotChatToolCallsView.mjs +0 -24
- package/dist/components/chat/CopilotChatToolCallsView.mjs.map +0 -1
- package/dist/components/chat/CopilotChatUserMessage.d.mts +0 -52
- package/dist/components/chat/CopilotChatUserMessage.d.ts +0 -52
- package/dist/components/chat/CopilotChatUserMessage.js +0 -523
- package/dist/components/chat/CopilotChatUserMessage.js.map +0 -1
- package/dist/components/chat/CopilotChatUserMessage.mjs +0 -14
- package/dist/components/chat/CopilotChatUserMessage.mjs.map +0 -1
- package/dist/components/chat/CopilotChatView.d.mts +0 -54
- package/dist/components/chat/CopilotChatView.d.ts +0 -54
- package/dist/components/chat/CopilotChatView.js +0 -2640
- package/dist/components/chat/CopilotChatView.js.map +0 -1
- package/dist/components/chat/CopilotChatView.mjs +0 -38
- package/dist/components/chat/CopilotChatView.mjs.map +0 -1
- package/dist/components/chat/CopilotModalHeader.d.mts +0 -22
- package/dist/components/chat/CopilotModalHeader.d.ts +0 -22
- package/dist/components/chat/CopilotModalHeader.js +0 -186
- package/dist/components/chat/CopilotModalHeader.js.map +0 -1
- package/dist/components/chat/CopilotModalHeader.mjs +0 -12
- package/dist/components/chat/CopilotModalHeader.mjs.map +0 -1
- package/dist/components/chat/CopilotPopup.d.mts +0 -33
- package/dist/components/chat/CopilotPopup.d.ts +0 -33
- package/dist/components/chat/CopilotPopup.js +0 -3343
- package/dist/components/chat/CopilotPopup.js.map +0 -1
- package/dist/components/chat/CopilotPopup.mjs +0 -43
- package/dist/components/chat/CopilotPopup.mjs.map +0 -1
- package/dist/components/chat/CopilotPopupView.d.mts +0 -30
- package/dist/components/chat/CopilotPopupView.d.ts +0 -30
- package/dist/components/chat/CopilotPopupView.js +0 -3003
- package/dist/components/chat/CopilotPopupView.js.map +0 -1
- package/dist/components/chat/CopilotPopupView.mjs +0 -41
- package/dist/components/chat/CopilotPopupView.mjs.map +0 -1
- package/dist/components/chat/CopilotSidebar.d.mts +0 -31
- package/dist/components/chat/CopilotSidebar.d.ts +0 -31
- package/dist/components/chat/CopilotSidebar.js +0 -3266
- package/dist/components/chat/CopilotSidebar.js.map +0 -1
- package/dist/components/chat/CopilotSidebar.mjs +0 -43
- package/dist/components/chat/CopilotSidebar.mjs.map +0 -1
- package/dist/components/chat/CopilotSidebarView.d.mts +0 -28
- package/dist/components/chat/CopilotSidebarView.d.ts +0 -28
- package/dist/components/chat/CopilotSidebarView.js +0 -2941
- package/dist/components/chat/CopilotSidebarView.js.map +0 -1
- package/dist/components/chat/CopilotSidebarView.mjs +0 -41
- package/dist/components/chat/CopilotSidebarView.mjs.map +0 -1
- package/dist/components/chat/index.d.mts +0 -23
- package/dist/components/chat/index.d.ts +0 -23
- package/dist/components/chat/index.js +0 -3503
- package/dist/components/chat/index.js.map +0 -1
- package/dist/components/chat/index.mjs +0 -95
- package/dist/components/chat/index.mjs.map +0 -1
- package/dist/components/index.d.mts +0 -29
- package/dist/components/index.d.ts +0 -29
- package/dist/components/index.js +0 -3583
- package/dist/components/index.js.map +0 -1
- package/dist/components/index.mjs +0 -104
- package/dist/components/index.mjs.map +0 -1
- package/dist/components/ui/button.d.mts +0 -14
- package/dist/components/ui/button.d.ts +0 -14
- package/dist/components/ui/button.js +0 -150
- package/dist/components/ui/button.js.map +0 -1
- package/dist/components/ui/button.mjs +0 -10
- package/dist/components/ui/button.mjs.map +0 -1
- package/dist/components/ui/dropdown-menu.d.mts +0 -28
- package/dist/components/ui/dropdown-menu.d.ts +0 -28
- package/dist/components/ui/dropdown-menu.js +0 -291
- package/dist/components/ui/dropdown-menu.js.map +0 -1
- package/dist/components/ui/dropdown-menu.mjs +0 -37
- package/dist/components/ui/dropdown-menu.mjs.map +0 -1
- package/dist/components/ui/tooltip.d.mts +0 -10
- package/dist/components/ui/tooltip.d.ts +0 -10
- package/dist/components/ui/tooltip.js +0 -103
- package/dist/components/ui/tooltip.js.map +0 -1
- package/dist/components/ui/tooltip.mjs +0 -14
- package/dist/components/ui/tooltip.mjs.map +0 -1
- package/dist/hooks/index.d.mts +0 -19
- package/dist/hooks/index.d.ts +0 -19
- package/dist/hooks/index.js +0 -691
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/index.mjs +0 -45
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/hooks/use-agent-context.d.mts +0 -5
- package/dist/hooks/use-agent-context.d.ts +0 -5
- package/dist/hooks/use-agent-context.js +0 -116
- package/dist/hooks/use-agent-context.js.map +0 -1
- package/dist/hooks/use-agent-context.mjs +0 -10
- package/dist/hooks/use-agent-context.mjs.map +0 -1
- package/dist/hooks/use-agent.d.mts +0 -16
- package/dist/hooks/use-agent.d.ts +0 -16
- package/dist/hooks/use-agent.js +0 -171
- package/dist/hooks/use-agent.js.map +0 -1
- package/dist/hooks/use-agent.mjs +0 -12
- package/dist/hooks/use-agent.mjs.map +0 -1
- package/dist/hooks/use-configure-suggestions.d.mts +0 -13
- package/dist/hooks/use-configure-suggestions.d.ts +0 -13
- package/dist/hooks/use-configure-suggestions.js +0 -232
- package/dist/hooks/use-configure-suggestions.js.map +0 -1
- package/dist/hooks/use-configure-suggestions.mjs +0 -11
- package/dist/hooks/use-configure-suggestions.mjs.map +0 -1
- package/dist/hooks/use-frontend-tool.d.mts +0 -8
- package/dist/hooks/use-frontend-tool.d.ts +0 -8
- package/dist/hooks/use-frontend-tool.js +0 -137
- package/dist/hooks/use-frontend-tool.js.map +0 -1
- package/dist/hooks/use-frontend-tool.mjs +0 -10
- package/dist/hooks/use-frontend-tool.mjs.map +0 -1
- package/dist/hooks/use-human-in-the-loop.d.mts +0 -7
- package/dist/hooks/use-human-in-the-loop.d.ts +0 -7
- package/dist/hooks/use-human-in-the-loop.js +0 -206
- package/dist/hooks/use-human-in-the-loop.js.map +0 -1
- package/dist/hooks/use-human-in-the-loop.mjs +0 -11
- package/dist/hooks/use-human-in-the-loop.mjs.map +0 -1
- package/dist/hooks/use-keyboard-height.d.mts +0 -15
- package/dist/hooks/use-keyboard-height.d.ts +0 -15
- package/dist/hooks/use-keyboard-height.js +0 -68
- package/dist/hooks/use-keyboard-height.js.map +0 -1
- package/dist/hooks/use-keyboard-height.mjs +0 -7
- package/dist/hooks/use-keyboard-height.mjs.map +0 -1
- package/dist/hooks/use-render-activity-message.d.mts +0 -5
- package/dist/hooks/use-render-activity-message.d.ts +0 -5
- package/dist/hooks/use-render-activity-message.js +0 -158
- package/dist/hooks/use-render-activity-message.js.map +0 -1
- package/dist/hooks/use-render-activity-message.mjs +0 -12
- package/dist/hooks/use-render-activity-message.mjs.map +0 -1
- package/dist/hooks/use-render-custom-messages.d.mts +0 -11
- package/dist/hooks/use-render-custom-messages.d.ts +0 -11
- package/dist/hooks/use-render-custom-messages.js +0 -170
- package/dist/hooks/use-render-custom-messages.js.map +0 -1
- package/dist/hooks/use-render-custom-messages.mjs +0 -12
- package/dist/hooks/use-render-custom-messages.mjs.map +0 -1
- package/dist/hooks/use-render-tool-call.d.mts +0 -16
- package/dist/hooks/use-render-tool-call.d.ts +0 -16
- package/dist/hooks/use-render-tool-call.js +0 -208
- package/dist/hooks/use-render-tool-call.js.map +0 -1
- package/dist/hooks/use-render-tool-call.mjs +0 -11
- package/dist/hooks/use-render-tool-call.mjs.map +0 -1
- package/dist/hooks/use-suggestions.d.mts +0 -14
- package/dist/hooks/use-suggestions.d.ts +0 -14
- package/dist/hooks/use-suggestions.js +0 -176
- package/dist/hooks/use-suggestions.js.map +0 -1
- package/dist/hooks/use-suggestions.mjs +0 -11
- package/dist/hooks/use-suggestions.mjs.map +0 -1
- package/dist/lib/react-core.d.mts +0 -33
- package/dist/lib/react-core.d.ts +0 -33
- package/dist/lib/react-core.js +0 -73
- package/dist/lib/react-core.js.map +0 -1
- package/dist/lib/react-core.mjs +0 -7
- package/dist/lib/react-core.mjs.map +0 -1
- package/dist/lib/slots.d.mts +0 -16
- package/dist/lib/slots.d.ts +0 -16
- package/dist/lib/slots.js +0 -60
- package/dist/lib/slots.js.map +0 -1
- package/dist/lib/slots.mjs +0 -7
- package/dist/lib/slots.mjs.map +0 -1
- package/dist/lib/utils.d.mts +0 -5
- package/dist/lib/utils.d.ts +0 -5
- package/dist/lib/utils.js +0 -35
- package/dist/lib/utils.js.map +0 -1
- package/dist/lib/utils.mjs +0 -7
- package/dist/lib/utils.mjs.map +0 -1
- package/dist/providers/CopilotChatConfigurationProvider.d.mts +0 -43
- package/dist/providers/CopilotChatConfigurationProvider.d.ts +0 -43
- package/dist/providers/CopilotChatConfigurationProvider.js +0 -109
- package/dist/providers/CopilotChatConfigurationProvider.js.map +0 -1
- package/dist/providers/CopilotChatConfigurationProvider.mjs +0 -11
- package/dist/providers/CopilotChatConfigurationProvider.mjs.map +0 -1
- package/dist/providers/CopilotKitProvider.d.mts +0 -33
- package/dist/providers/CopilotKitProvider.d.ts +0 -33
- package/dist/providers/CopilotKitProvider.js +0 -314
- package/dist/providers/CopilotKitProvider.js.map +0 -1
- package/dist/providers/CopilotKitProvider.mjs +0 -12
- package/dist/providers/CopilotKitProvider.mjs.map +0 -1
- package/dist/providers/index.d.mts +0 -13
- package/dist/providers/index.d.ts +0 -13
- package/dist/providers/index.js +0 -396
- package/dist/providers/index.js.map +0 -1
- package/dist/providers/index.mjs +0 -18
- package/dist/providers/index.mjs.map +0 -1
- package/dist/types/defineToolCallRenderer.d.mts +0 -41
- package/dist/types/defineToolCallRenderer.d.ts +0 -41
- package/dist/types/defineToolCallRenderer.js +0 -40
- package/dist/types/defineToolCallRenderer.js.map +0 -1
- package/dist/types/defineToolCallRenderer.mjs +0 -7
- package/dist/types/defineToolCallRenderer.mjs.map +0 -1
- package/dist/types/frontend-tool.d.mts +0 -9
- package/dist/types/frontend-tool.d.ts +0 -9
- package/dist/types/frontend-tool.js +0 -19
- package/dist/types/frontend-tool.js.map +0 -1
- package/dist/types/frontend-tool.mjs +0 -2
- package/dist/types/frontend-tool.mjs.map +0 -1
- package/dist/types/human-in-the-loop.d.mts +0 -29
- package/dist/types/human-in-the-loop.d.ts +0 -29
- package/dist/types/human-in-the-loop.js +0 -19
- package/dist/types/human-in-the-loop.js.map +0 -1
- package/dist/types/human-in-the-loop.mjs +0 -2
- package/dist/types/human-in-the-loop.mjs.map +0 -1
- package/dist/types/index.d.mts +0 -11
- package/dist/types/index.d.ts +0 -11
- package/dist/types/index.js +0 -42
- package/dist/types/index.js.map +0 -1
- package/dist/types/index.mjs +0 -13
- package/dist/types/index.mjs.map +0 -1
- package/dist/types/react-activity-message-renderer.d.mts +0 -29
- package/dist/types/react-activity-message-renderer.d.ts +0 -29
- package/dist/types/react-activity-message-renderer.js +0 -19
- package/dist/types/react-activity-message-renderer.js.map +0 -1
- package/dist/types/react-activity-message-renderer.mjs +0 -2
- package/dist/types/react-activity-message-renderer.mjs.map +0 -1
- package/dist/types/react-custom-message-renderer.d.mts +0 -18
- package/dist/types/react-custom-message-renderer.d.ts +0 -18
- package/dist/types/react-custom-message-renderer.js +0 -19
- package/dist/types/react-custom-message-renderer.js.map +0 -1
- package/dist/types/react-custom-message-renderer.mjs +0 -2
- package/dist/types/react-custom-message-renderer.mjs.map +0 -1
- package/dist/types/react-tool-call-renderer.d.mts +0 -30
- package/dist/types/react-tool-call-renderer.d.ts +0 -30
- package/dist/types/react-tool-call-renderer.js +0 -19
- package/dist/types/react-tool-call-renderer.js.map +0 -1
- package/dist/types/react-tool-call-renderer.mjs +0 -2
- package/dist/types/react-tool-call-renderer.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,46 +1,635 @@
|
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { ReactNode } from 'react';
|
|
4
|
+
import { AssistantMessage, Message, UserMessage, ToolCall, ToolMessage, ActivityMessage } from '@ag-ui/core';
|
|
5
|
+
import { Streamdown } from 'streamdown';
|
|
6
|
+
import { Suggestion, CopilotKitCore, ToolCallStatus, FrontendTool, DynamicSuggestionsConfig, StaticSuggestionsConfig, CopilotKitCoreConfig, CopilotKitCoreSubscriber } from '@copilotkitnext/core';
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
import * as _lit_labs_react from '@lit-labs/react';
|
|
9
|
+
import { WebInspectorElement } from '@copilotkitnext/web-inspector';
|
|
10
|
+
import { AbstractAgent, Context } from '@ag-ui/client';
|
|
11
|
+
|
|
12
|
+
declare const CopilotChatDefaultLabels: {
|
|
13
|
+
chatInputPlaceholder: string;
|
|
14
|
+
chatInputToolbarStartTranscribeButtonLabel: string;
|
|
15
|
+
chatInputToolbarCancelTranscribeButtonLabel: string;
|
|
16
|
+
chatInputToolbarFinishTranscribeButtonLabel: string;
|
|
17
|
+
chatInputToolbarAddButtonLabel: string;
|
|
18
|
+
chatInputToolbarToolsButtonLabel: string;
|
|
19
|
+
assistantMessageToolbarCopyCodeLabel: string;
|
|
20
|
+
assistantMessageToolbarCopyCodeCopiedLabel: string;
|
|
21
|
+
assistantMessageToolbarCopyMessageLabel: string;
|
|
22
|
+
assistantMessageToolbarThumbsUpLabel: string;
|
|
23
|
+
assistantMessageToolbarThumbsDownLabel: string;
|
|
24
|
+
assistantMessageToolbarReadAloudLabel: string;
|
|
25
|
+
assistantMessageToolbarRegenerateLabel: string;
|
|
26
|
+
userMessageToolbarCopyMessageLabel: string;
|
|
27
|
+
userMessageToolbarEditMessageLabel: string;
|
|
28
|
+
chatDisclaimerText: string;
|
|
29
|
+
chatToggleOpenLabel: string;
|
|
30
|
+
chatToggleCloseLabel: string;
|
|
31
|
+
modalHeaderTitle: string;
|
|
32
|
+
};
|
|
33
|
+
type CopilotChatLabels = typeof CopilotChatDefaultLabels;
|
|
34
|
+
interface CopilotChatConfigurationValue {
|
|
35
|
+
labels: CopilotChatLabels;
|
|
36
|
+
agentId: string;
|
|
37
|
+
threadId: string;
|
|
38
|
+
isModalOpen: boolean;
|
|
39
|
+
setModalOpen: (open: boolean) => void;
|
|
40
|
+
isModalDefaultOpen: boolean;
|
|
41
|
+
}
|
|
42
|
+
interface CopilotChatConfigurationProviderProps {
|
|
43
|
+
children: ReactNode;
|
|
44
|
+
labels?: Partial<CopilotChatLabels>;
|
|
45
|
+
agentId?: string;
|
|
46
|
+
threadId?: string;
|
|
47
|
+
isModalDefaultOpen?: boolean;
|
|
48
|
+
}
|
|
49
|
+
declare const CopilotChatConfigurationProvider: React__default.FC<CopilotChatConfigurationProviderProps>;
|
|
50
|
+
declare const useCopilotChatConfiguration: () => CopilotChatConfigurationValue | null;
|
|
51
|
+
|
|
52
|
+
/** Finite-state machine for every recorder implementation */
|
|
53
|
+
type AudioRecorderState = "idle" | "recording" | "processing";
|
|
54
|
+
/** Error subclass so callers can `instanceof`-guard recorder failures */
|
|
55
|
+
declare class AudioRecorderError extends Error {
|
|
56
|
+
constructor(message: string);
|
|
57
|
+
}
|
|
58
|
+
declare const CopilotChatAudioRecorder: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<any>>;
|
|
59
|
+
|
|
60
|
+
/** Existing union (unchanged) */
|
|
61
|
+
type SlotValue<C extends React__default.ComponentType<any>> = C | string | Partial<React__default.ComponentProps<C>>;
|
|
62
|
+
/** Utility: concrete React elements for every slot */
|
|
63
|
+
type SlotElements<S> = {
|
|
64
|
+
[K in keyof S]: React__default.ReactElement;
|
|
65
|
+
};
|
|
66
|
+
type WithSlots<S extends Record<string, React__default.ComponentType<any>>, Rest = {}> = {
|
|
67
|
+
[K in keyof S]?: SlotValue<S[K]>;
|
|
68
|
+
} & {
|
|
69
|
+
children?: (props: SlotElements<S> & Rest) => React__default.ReactNode;
|
|
70
|
+
} & Omit<Rest, "children">;
|
|
71
|
+
|
|
72
|
+
type CopilotChatInputMode = "input" | "transcribe" | "processing";
|
|
73
|
+
type ToolsMenuItem = {
|
|
74
|
+
label: string;
|
|
75
|
+
} & ({
|
|
76
|
+
action: () => void;
|
|
77
|
+
items?: never;
|
|
78
|
+
} | {
|
|
79
|
+
action?: never;
|
|
80
|
+
items: (ToolsMenuItem | "-")[];
|
|
81
|
+
});
|
|
82
|
+
type CopilotChatInputSlots = {
|
|
83
|
+
textArea: typeof CopilotChatInput.TextArea;
|
|
84
|
+
sendButton: typeof CopilotChatInput.SendButton;
|
|
85
|
+
startTranscribeButton: typeof CopilotChatInput.StartTranscribeButton;
|
|
86
|
+
cancelTranscribeButton: typeof CopilotChatInput.CancelTranscribeButton;
|
|
87
|
+
finishTranscribeButton: typeof CopilotChatInput.FinishTranscribeButton;
|
|
88
|
+
addMenuButton: typeof CopilotChatInput.AddMenuButton;
|
|
89
|
+
audioRecorder: typeof CopilotChatAudioRecorder;
|
|
90
|
+
};
|
|
91
|
+
type CopilotChatInputRestProps = {
|
|
92
|
+
mode?: CopilotChatInputMode;
|
|
93
|
+
toolsMenu?: (ToolsMenuItem | "-")[];
|
|
94
|
+
autoFocus?: boolean;
|
|
95
|
+
onSubmitMessage?: (value: string) => void;
|
|
96
|
+
onStop?: () => void;
|
|
97
|
+
isRunning?: boolean;
|
|
98
|
+
onStartTranscribe?: () => void;
|
|
99
|
+
onCancelTranscribe?: () => void;
|
|
100
|
+
onFinishTranscribe?: () => void;
|
|
101
|
+
onAddFile?: () => void;
|
|
102
|
+
value?: string;
|
|
103
|
+
onChange?: (value: string) => void;
|
|
104
|
+
} & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange">;
|
|
105
|
+
type CopilotChatInputBaseProps = WithSlots<CopilotChatInputSlots, CopilotChatInputRestProps>;
|
|
106
|
+
type CopilotChatInputChildrenArgs = CopilotChatInputBaseProps extends {
|
|
107
|
+
children?: infer C;
|
|
108
|
+
} ? C extends (props: infer P) => React__default.ReactNode ? P : never : never;
|
|
109
|
+
type CopilotChatInputProps = Omit<CopilotChatInputBaseProps, "children"> & {
|
|
110
|
+
children?: (props: CopilotChatInputChildrenArgs) => React__default.ReactNode;
|
|
111
|
+
};
|
|
112
|
+
declare function CopilotChatInput({ mode, onSubmitMessage, onStop, isRunning, onStartTranscribe, onCancelTranscribe, onFinishTranscribe, onAddFile, onChange, value, toolsMenu, autoFocus, textArea, sendButton, startTranscribeButton, cancelTranscribeButton, finishTranscribeButton, addMenuButton, audioRecorder, children, className, ...props }: CopilotChatInputProps): react_jsx_runtime.JSX.Element;
|
|
113
|
+
declare namespace CopilotChatInput {
|
|
114
|
+
const SendButton: React__default.FC<React__default.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
115
|
+
const ToolbarButton: React__default.FC<React__default.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
116
|
+
icon: React__default.ReactNode;
|
|
117
|
+
labelKey: keyof CopilotChatLabels;
|
|
118
|
+
defaultClassName?: string;
|
|
119
|
+
}>;
|
|
120
|
+
const StartTranscribeButton: React__default.FC<React__default.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
121
|
+
const CancelTranscribeButton: React__default.FC<React__default.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
122
|
+
const FinishTranscribeButton: React__default.FC<React__default.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
123
|
+
const AddMenuButton: React__default.FC<React__default.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
124
|
+
toolsMenu?: (ToolsMenuItem | "-")[];
|
|
125
|
+
onAddFile?: () => void;
|
|
126
|
+
}>;
|
|
127
|
+
type TextAreaProps = React__default.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
128
|
+
const TextArea: React__default.ForwardRefExoticComponent<TextAreaProps & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
129
|
+
const AudioRecorder: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<any>>;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
type CopilotChatToolCallsViewProps = {
|
|
133
|
+
message: AssistantMessage;
|
|
134
|
+
messages?: Message[];
|
|
135
|
+
};
|
|
136
|
+
declare function CopilotChatToolCallsView({ message, messages, }: CopilotChatToolCallsViewProps): react_jsx_runtime.JSX.Element | null;
|
|
137
|
+
|
|
138
|
+
type CopilotChatAssistantMessageProps = WithSlots<{
|
|
139
|
+
markdownRenderer: typeof CopilotChatAssistantMessage.MarkdownRenderer;
|
|
140
|
+
toolbar: typeof CopilotChatAssistantMessage.Toolbar;
|
|
141
|
+
copyButton: typeof CopilotChatAssistantMessage.CopyButton;
|
|
142
|
+
thumbsUpButton: typeof CopilotChatAssistantMessage.ThumbsUpButton;
|
|
143
|
+
thumbsDownButton: typeof CopilotChatAssistantMessage.ThumbsDownButton;
|
|
144
|
+
readAloudButton: typeof CopilotChatAssistantMessage.ReadAloudButton;
|
|
145
|
+
regenerateButton: typeof CopilotChatAssistantMessage.RegenerateButton;
|
|
146
|
+
toolCallsView: typeof CopilotChatToolCallsView;
|
|
147
|
+
}, {
|
|
148
|
+
onThumbsUp?: (message: AssistantMessage) => void;
|
|
149
|
+
onThumbsDown?: (message: AssistantMessage) => void;
|
|
150
|
+
onReadAloud?: (message: AssistantMessage) => void;
|
|
151
|
+
onRegenerate?: (message: AssistantMessage) => void;
|
|
152
|
+
message: AssistantMessage;
|
|
153
|
+
messages?: Message[];
|
|
154
|
+
isRunning?: boolean;
|
|
155
|
+
additionalToolbarItems?: React.ReactNode;
|
|
156
|
+
toolbarVisible?: boolean;
|
|
157
|
+
} & React.HTMLAttributes<HTMLDivElement>>;
|
|
158
|
+
declare function CopilotChatAssistantMessage({ message, messages, isRunning, onThumbsUp, onThumbsDown, onReadAloud, onRegenerate, additionalToolbarItems, toolbarVisible, markdownRenderer, toolbar, copyButton, thumbsUpButton, thumbsDownButton, readAloudButton, regenerateButton, toolCallsView, children, className, ...props }: CopilotChatAssistantMessageProps): react_jsx_runtime.JSX.Element;
|
|
159
|
+
declare namespace CopilotChatAssistantMessage {
|
|
160
|
+
const MarkdownRenderer: React.FC<Omit<React.ComponentProps<typeof Streamdown>, "children"> & {
|
|
161
|
+
content: string;
|
|
162
|
+
}>;
|
|
163
|
+
const Toolbar: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
164
|
+
const ToolbarButton: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
165
|
+
title: string;
|
|
166
|
+
children: React.ReactNode;
|
|
167
|
+
}>;
|
|
168
|
+
const CopyButton: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
169
|
+
const ThumbsUpButton: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
170
|
+
const ThumbsDownButton: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
171
|
+
const ReadAloudButton: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
172
|
+
const RegenerateButton: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
interface CopilotChatUserMessageOnEditMessageProps {
|
|
176
|
+
message: UserMessage;
|
|
177
|
+
}
|
|
178
|
+
interface CopilotChatUserMessageOnSwitchToBranchProps {
|
|
179
|
+
message: UserMessage;
|
|
180
|
+
branchIndex: number;
|
|
181
|
+
numberOfBranches: number;
|
|
182
|
+
}
|
|
183
|
+
type CopilotChatUserMessageProps = WithSlots<{
|
|
184
|
+
messageRenderer: typeof CopilotChatUserMessage.MessageRenderer;
|
|
185
|
+
toolbar: typeof CopilotChatUserMessage.Toolbar;
|
|
186
|
+
copyButton: typeof CopilotChatUserMessage.CopyButton;
|
|
187
|
+
editButton: typeof CopilotChatUserMessage.EditButton;
|
|
188
|
+
branchNavigation: typeof CopilotChatUserMessage.BranchNavigation;
|
|
189
|
+
}, {
|
|
190
|
+
onEditMessage?: (props: CopilotChatUserMessageOnEditMessageProps) => void;
|
|
191
|
+
onSwitchToBranch?: (props: CopilotChatUserMessageOnSwitchToBranchProps) => void;
|
|
192
|
+
message: UserMessage;
|
|
193
|
+
branchIndex?: number;
|
|
194
|
+
numberOfBranches?: number;
|
|
195
|
+
additionalToolbarItems?: React.ReactNode;
|
|
196
|
+
} & React.HTMLAttributes<HTMLDivElement>>;
|
|
197
|
+
declare function CopilotChatUserMessage({ message, onEditMessage, branchIndex, numberOfBranches, onSwitchToBranch, additionalToolbarItems, messageRenderer, toolbar, copyButton, editButton, branchNavigation, children, className, ...props }: CopilotChatUserMessageProps): react_jsx_runtime.JSX.Element;
|
|
198
|
+
declare namespace CopilotChatUserMessage {
|
|
199
|
+
const Container: React.FC<React.PropsWithChildren<React.HTMLAttributes<HTMLDivElement>>>;
|
|
200
|
+
const MessageRenderer: React.FC<{
|
|
201
|
+
content: string;
|
|
202
|
+
className?: string;
|
|
203
|
+
}>;
|
|
204
|
+
const Toolbar: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
205
|
+
const ToolbarButton: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
206
|
+
title: string;
|
|
207
|
+
children: React.ReactNode;
|
|
208
|
+
}>;
|
|
209
|
+
const CopyButton: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
210
|
+
copied?: boolean;
|
|
211
|
+
}>;
|
|
212
|
+
const EditButton: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
213
|
+
const BranchNavigation: React.FC<React.HTMLAttributes<HTMLDivElement> & {
|
|
214
|
+
currentBranch?: number;
|
|
215
|
+
numberOfBranches?: number;
|
|
216
|
+
onSwitchToBranch?: (props: CopilotChatUserMessageOnSwitchToBranchProps) => void;
|
|
217
|
+
message: UserMessage;
|
|
218
|
+
}>;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
interface CopilotChatSuggestionPillProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
222
|
+
/** Optional icon to render on the left side when not loading. */
|
|
223
|
+
icon?: React__default.ReactNode;
|
|
224
|
+
/** Whether the pill should display a loading spinner. */
|
|
225
|
+
isLoading?: boolean;
|
|
226
|
+
}
|
|
227
|
+
declare const CopilotChatSuggestionPill: React__default.ForwardRefExoticComponent<CopilotChatSuggestionPillProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
228
|
+
|
|
229
|
+
declare const DefaultContainer: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
230
|
+
type CopilotChatSuggestionViewProps = WithSlots<{
|
|
231
|
+
container: typeof DefaultContainer;
|
|
232
|
+
suggestion: typeof CopilotChatSuggestionPill;
|
|
233
|
+
}, {
|
|
234
|
+
suggestions: Suggestion[];
|
|
235
|
+
onSelectSuggestion?: (suggestion: Suggestion, index: number) => void;
|
|
236
|
+
loadingIndexes?: ReadonlyArray<number>;
|
|
237
|
+
} & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
238
|
+
declare const CopilotChatSuggestionView: React__default.ForwardRefExoticComponent<{
|
|
239
|
+
container?: SlotValue<React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>> | undefined;
|
|
240
|
+
suggestion?: SlotValue<React__default.ForwardRefExoticComponent<CopilotChatSuggestionPillProps & React__default.RefAttributes<HTMLButtonElement>>> | undefined;
|
|
241
|
+
} & {
|
|
242
|
+
children?: ((props: {
|
|
243
|
+
container: React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>>;
|
|
244
|
+
suggestion: React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>>;
|
|
245
|
+
} & {
|
|
246
|
+
suggestions: Suggestion[];
|
|
247
|
+
onSelectSuggestion?: (suggestion: Suggestion, index: number) => void;
|
|
248
|
+
loadingIndexes?: ReadonlyArray<number>;
|
|
249
|
+
} & React__default.HTMLAttributes<HTMLDivElement>) => React__default.ReactNode) | undefined;
|
|
250
|
+
} & Omit<{
|
|
251
|
+
suggestions: Suggestion[];
|
|
252
|
+
onSelectSuggestion?: (suggestion: Suggestion, index: number) => void;
|
|
253
|
+
loadingIndexes?: ReadonlyArray<number>;
|
|
254
|
+
} & React__default.HTMLAttributes<HTMLDivElement>, "children"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
255
|
+
|
|
256
|
+
type CopilotChatMessageViewProps = Omit<WithSlots<{
|
|
257
|
+
assistantMessage: typeof CopilotChatAssistantMessage;
|
|
258
|
+
userMessage: typeof CopilotChatUserMessage;
|
|
259
|
+
cursor: typeof CopilotChatMessageView.Cursor;
|
|
260
|
+
}, {
|
|
261
|
+
isRunning?: boolean;
|
|
262
|
+
messages?: Message[];
|
|
263
|
+
} & React.HTMLAttributes<HTMLDivElement>>, "children"> & {
|
|
264
|
+
children?: (props: {
|
|
265
|
+
isRunning: boolean;
|
|
266
|
+
messages: Message[];
|
|
267
|
+
messageElements: React.ReactElement[];
|
|
268
|
+
}) => React.ReactElement;
|
|
269
|
+
};
|
|
270
|
+
declare function CopilotChatMessageView({ messages, assistantMessage, userMessage, cursor, isRunning, children, className, ...props }: CopilotChatMessageViewProps): react_jsx_runtime.JSX.Element;
|
|
271
|
+
declare namespace CopilotChatMessageView {
|
|
272
|
+
var Cursor: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
type CopilotChatViewProps = WithSlots<{
|
|
276
|
+
messageView: typeof CopilotChatMessageView;
|
|
277
|
+
scrollView: React__default.FC<React__default.HTMLAttributes<HTMLDivElement>>;
|
|
278
|
+
scrollToBottomButton: React__default.FC<React__default.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
279
|
+
input: typeof CopilotChatInput;
|
|
280
|
+
inputContainer: React__default.FC<React__default.HTMLAttributes<HTMLDivElement> & {
|
|
281
|
+
children: React__default.ReactNode;
|
|
282
|
+
}>;
|
|
283
|
+
feather: React__default.FC<React__default.HTMLAttributes<HTMLDivElement>>;
|
|
284
|
+
disclaimer: React__default.FC<React__default.HTMLAttributes<HTMLDivElement>>;
|
|
285
|
+
suggestionView: typeof CopilotChatSuggestionView;
|
|
286
|
+
}, {
|
|
287
|
+
messages?: Message[];
|
|
288
|
+
autoScroll?: boolean;
|
|
289
|
+
inputProps?: Partial<Omit<CopilotChatInputProps, "children">>;
|
|
290
|
+
isRunning?: boolean;
|
|
291
|
+
suggestions?: Suggestion[];
|
|
292
|
+
suggestionLoadingIndexes?: ReadonlyArray<number>;
|
|
293
|
+
onSelectSuggestion?: (suggestion: Suggestion, index: number) => void;
|
|
294
|
+
} & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
295
|
+
declare function CopilotChatView({ messageView, input, scrollView, scrollToBottomButton, feather, inputContainer, disclaimer, suggestionView, messages, autoScroll, inputProps, isRunning, suggestions, suggestionLoadingIndexes, onSelectSuggestion, children, className, ...props }: CopilotChatViewProps): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
296
|
+
declare namespace CopilotChatView {
|
|
297
|
+
const ScrollView: React__default.FC<React__default.HTMLAttributes<HTMLDivElement> & {
|
|
298
|
+
autoScroll?: boolean;
|
|
299
|
+
scrollToBottomButton?: React__default.FC<React__default.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
300
|
+
inputContainerHeight?: number;
|
|
301
|
+
isResizing?: boolean;
|
|
302
|
+
}>;
|
|
303
|
+
const ScrollToBottomButton: React__default.FC<React__default.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
304
|
+
const Feather: React__default.FC<React__default.HTMLAttributes<HTMLDivElement>>;
|
|
305
|
+
const InputContainer: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & {
|
|
306
|
+
children: React__default.ReactNode;
|
|
307
|
+
keyboardHeight?: number;
|
|
308
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
309
|
+
const Disclaimer: React__default.FC<React__default.HTMLAttributes<HTMLDivElement>>;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
type CopilotChatProps = Omit<CopilotChatViewProps, "messages" | "isRunning" | "suggestions" | "suggestionLoadingIndexes" | "onSelectSuggestion"> & {
|
|
313
|
+
agentId?: string;
|
|
314
|
+
threadId?: string;
|
|
315
|
+
labels?: Partial<CopilotChatLabels>;
|
|
316
|
+
chatView?: SlotValue<typeof CopilotChatView>;
|
|
317
|
+
isModalDefaultOpen?: boolean;
|
|
318
|
+
};
|
|
319
|
+
declare function CopilotChat({ agentId, threadId, labels, chatView, isModalDefaultOpen, ...props }: CopilotChatProps): react_jsx_runtime.JSX.Element;
|
|
320
|
+
declare namespace CopilotChat {
|
|
321
|
+
const View: typeof CopilotChatView;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
declare const DefaultOpenIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
|
|
325
|
+
declare const DefaultCloseIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
|
|
326
|
+
interface CopilotChatToggleButtonProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
|
|
327
|
+
/** Optional slot override for the chat (closed) icon. */
|
|
328
|
+
openIcon?: SlotValue<typeof DefaultOpenIcon>;
|
|
329
|
+
/** Optional slot override for the close icon. */
|
|
330
|
+
closeIcon?: SlotValue<typeof DefaultCloseIcon>;
|
|
331
|
+
}
|
|
332
|
+
declare const CopilotChatToggleButton: React__default.ForwardRefExoticComponent<CopilotChatToggleButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
333
|
+
|
|
334
|
+
type HeaderSlots = {
|
|
335
|
+
titleContent: typeof CopilotModalHeader.Title;
|
|
336
|
+
closeButton: typeof CopilotModalHeader.CloseButton;
|
|
337
|
+
};
|
|
338
|
+
type HeaderRestProps = {
|
|
339
|
+
title?: string;
|
|
340
|
+
} & Omit<React__default.HTMLAttributes<HTMLDivElement>, "children">;
|
|
341
|
+
type CopilotModalHeaderProps = WithSlots<HeaderSlots, HeaderRestProps>;
|
|
342
|
+
declare function CopilotModalHeader({ title, titleContent, closeButton, children, className, ...rest }: CopilotModalHeaderProps): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
343
|
+
declare namespace CopilotModalHeader {
|
|
344
|
+
var displayName: string;
|
|
345
|
+
}
|
|
346
|
+
declare namespace CopilotModalHeader {
|
|
347
|
+
const Title: React__default.FC<React__default.HTMLAttributes<HTMLDivElement>>;
|
|
348
|
+
const CloseButton: React__default.FC<React__default.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
type CopilotSidebarViewProps = CopilotChatViewProps & {
|
|
352
|
+
header?: SlotValue<typeof CopilotModalHeader>;
|
|
353
|
+
width?: number | string;
|
|
354
|
+
};
|
|
355
|
+
declare function CopilotSidebarView({ header, width, ...props }: CopilotSidebarViewProps): react_jsx_runtime.JSX.Element;
|
|
356
|
+
declare namespace CopilotSidebarView {
|
|
357
|
+
var displayName: string;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
type CopilotPopupViewProps = CopilotChatViewProps & {
|
|
361
|
+
header?: SlotValue<typeof CopilotModalHeader>;
|
|
362
|
+
width?: number | string;
|
|
363
|
+
height?: number | string;
|
|
364
|
+
clickOutsideToClose?: boolean;
|
|
365
|
+
};
|
|
366
|
+
declare function CopilotPopupView({ header, width, height, clickOutsideToClose, className, ...restProps }: CopilotPopupViewProps): react_jsx_runtime.JSX.Element;
|
|
367
|
+
declare namespace CopilotPopupView {
|
|
368
|
+
var displayName: string;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
type CopilotSidebarProps = Omit<CopilotChatProps, "chatView"> & {
|
|
372
|
+
header?: CopilotSidebarViewProps["header"];
|
|
373
|
+
defaultOpen?: boolean;
|
|
374
|
+
width?: number | string;
|
|
375
|
+
};
|
|
376
|
+
declare function CopilotSidebar({ header, defaultOpen, width, ...chatProps }: CopilotSidebarProps): react_jsx_runtime.JSX.Element;
|
|
377
|
+
declare namespace CopilotSidebar {
|
|
378
|
+
var displayName: string;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
type CopilotPopupProps = Omit<CopilotChatProps, "chatView"> & {
|
|
382
|
+
header?: CopilotPopupViewProps["header"];
|
|
383
|
+
defaultOpen?: boolean;
|
|
384
|
+
width?: CopilotPopupViewProps["width"];
|
|
385
|
+
height?: CopilotPopupViewProps["height"];
|
|
386
|
+
clickOutsideToClose?: CopilotPopupViewProps["clickOutsideToClose"];
|
|
387
|
+
};
|
|
388
|
+
declare function CopilotPopup({ header, defaultOpen, width, height, clickOutsideToClose, ...chatProps }: CopilotPopupProps): react_jsx_runtime.JSX.Element;
|
|
389
|
+
declare namespace CopilotPopup {
|
|
390
|
+
var displayName: string;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
declare const WildcardToolCallRender: ReactToolCallRenderer<any>;
|
|
394
|
+
|
|
395
|
+
declare const CopilotKitInspectorBase: _lit_labs_react.ReactWebComponent<WebInspectorElement, {}>;
|
|
396
|
+
type CopilotKitInspectorBaseProps = React$1.ComponentProps<typeof CopilotKitInspectorBase>;
|
|
397
|
+
interface CopilotKitInspectorProps extends Omit<CopilotKitInspectorBaseProps, "core"> {
|
|
398
|
+
core?: CopilotKitCore | null;
|
|
399
|
+
}
|
|
400
|
+
declare const CopilotKitInspector: React$1.ForwardRefExoticComponent<Omit<CopilotKitInspectorProps, "ref"> & React$1.RefAttributes<WebInspectorElement>>;
|
|
401
|
+
|
|
402
|
+
interface UseRenderToolCallProps {
|
|
403
|
+
toolCall: ToolCall;
|
|
404
|
+
toolMessage?: ToolMessage;
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Hook that returns a function to render tool calls based on the render functions
|
|
408
|
+
* defined in CopilotKitProvider.
|
|
409
|
+
*
|
|
410
|
+
* @returns A function that takes a tool call and optional tool message and returns the rendered component
|
|
411
|
+
*/
|
|
412
|
+
declare function useRenderToolCall(): ({ toolCall, toolMessage, }: UseRenderToolCallProps) => React__default.ReactElement | null;
|
|
413
|
+
|
|
414
|
+
type ReactCustomMessageRendererPosition = "before" | "after";
|
|
415
|
+
interface ReactCustomMessageRenderer {
|
|
416
|
+
agentId?: string;
|
|
417
|
+
render: React.ComponentType<{
|
|
418
|
+
message: Message;
|
|
419
|
+
position: ReactCustomMessageRendererPosition;
|
|
420
|
+
runId: string;
|
|
421
|
+
messageIndex: number;
|
|
422
|
+
messageIndexInRun: number;
|
|
423
|
+
numberOfMessagesInRun: number;
|
|
424
|
+
agentId: string;
|
|
425
|
+
stateSnapshot: any;
|
|
426
|
+
}> | null;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
interface UseRenderCustomMessagesParams {
|
|
430
|
+
message: Message;
|
|
431
|
+
position: ReactCustomMessageRendererPosition;
|
|
432
|
+
}
|
|
433
|
+
declare function useRenderCustomMessages(): ((params: UseRenderCustomMessagesParams) => react_jsx_runtime.JSX.Element | null) | null;
|
|
434
|
+
|
|
435
|
+
declare function useRenderActivityMessage(): (message: ActivityMessage) => React.ReactElement | null;
|
|
436
|
+
|
|
437
|
+
interface ReactToolCallRenderer<T> {
|
|
438
|
+
name: string;
|
|
439
|
+
args: z.ZodSchema<T>;
|
|
440
|
+
/**
|
|
441
|
+
* Optional agent ID to constrain this tool renderer to a specific agent.
|
|
442
|
+
* If specified, this renderer will only be used for the specified agent.
|
|
443
|
+
*/
|
|
444
|
+
agentId?: string;
|
|
445
|
+
render: React.ComponentType<{
|
|
446
|
+
name: string;
|
|
447
|
+
args: Partial<T>;
|
|
448
|
+
status: ToolCallStatus.InProgress;
|
|
449
|
+
result: undefined;
|
|
450
|
+
} | {
|
|
451
|
+
name: string;
|
|
452
|
+
args: T;
|
|
453
|
+
status: ToolCallStatus.Executing;
|
|
454
|
+
result: undefined;
|
|
455
|
+
} | {
|
|
456
|
+
name: string;
|
|
457
|
+
args: T;
|
|
458
|
+
status: ToolCallStatus.Complete;
|
|
459
|
+
result: string;
|
|
460
|
+
}>;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
type ReactFrontendTool<T extends Record<string, unknown> = Record<string, unknown>> = FrontendTool<T> & {
|
|
464
|
+
render?: ReactToolCallRenderer<T>["render"];
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
declare function useFrontendTool<T extends Record<string, unknown> = Record<string, unknown>>(tool: ReactFrontendTool<T>): void;
|
|
468
|
+
|
|
469
|
+
type ReactHumanInTheLoop<T extends Record<string, unknown> = Record<string, unknown>> = Omit<FrontendTool<T>, "handler"> & {
|
|
470
|
+
render: React__default.ComponentType<{
|
|
471
|
+
name: string;
|
|
472
|
+
description: string;
|
|
473
|
+
args: Partial<T>;
|
|
474
|
+
status: ToolCallStatus.InProgress;
|
|
475
|
+
result: undefined;
|
|
476
|
+
respond: undefined;
|
|
477
|
+
} | {
|
|
478
|
+
name: string;
|
|
479
|
+
description: string;
|
|
480
|
+
args: T;
|
|
481
|
+
status: ToolCallStatus.Executing;
|
|
482
|
+
result: undefined;
|
|
483
|
+
respond: (result: unknown) => Promise<void>;
|
|
484
|
+
} | {
|
|
485
|
+
name: string;
|
|
486
|
+
description: string;
|
|
487
|
+
args: T;
|
|
488
|
+
status: ToolCallStatus.Complete;
|
|
489
|
+
result: string;
|
|
490
|
+
respond: undefined;
|
|
491
|
+
}>;
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
declare function useHumanInTheLoop<T extends Record<string, unknown> = Record<string, unknown>>(tool: ReactHumanInTheLoop<T>): void;
|
|
495
|
+
|
|
496
|
+
declare enum UseAgentUpdate {
|
|
497
|
+
OnMessagesChanged = "OnMessagesChanged",
|
|
498
|
+
OnStateChanged = "OnStateChanged",
|
|
499
|
+
OnRunStatusChanged = "OnRunStatusChanged"
|
|
500
|
+
}
|
|
501
|
+
interface UseAgentProps {
|
|
502
|
+
agentId?: string;
|
|
503
|
+
updates?: UseAgentUpdate[];
|
|
504
|
+
}
|
|
505
|
+
declare function useAgent({ agentId, updates }?: UseAgentProps): {
|
|
506
|
+
agent: AbstractAgent | undefined;
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
declare function useAgentContext(context: Context): void;
|
|
510
|
+
|
|
511
|
+
interface UseSuggestionsOptions {
|
|
512
|
+
agentId?: string;
|
|
513
|
+
}
|
|
514
|
+
interface UseSuggestionsResult {
|
|
515
|
+
suggestions: Suggestion[];
|
|
516
|
+
reloadSuggestions: () => void;
|
|
517
|
+
clearSuggestions: () => void;
|
|
518
|
+
isLoading: boolean;
|
|
519
|
+
}
|
|
520
|
+
declare function useSuggestions({ agentId }?: UseSuggestionsOptions): UseSuggestionsResult;
|
|
521
|
+
|
|
522
|
+
type StaticSuggestionInput = Omit<Suggestion, "isLoading"> & Partial<Pick<Suggestion, "isLoading">>;
|
|
523
|
+
type StaticSuggestionsConfigInput = Omit<StaticSuggestionsConfig, "suggestions"> & {
|
|
524
|
+
suggestions: StaticSuggestionInput[];
|
|
525
|
+
};
|
|
526
|
+
type SuggestionsConfigInput = DynamicSuggestionsConfig | StaticSuggestionsConfigInput;
|
|
527
|
+
interface UseConfigureSuggestionsOptions {
|
|
528
|
+
deps?: ReadonlyArray<unknown>;
|
|
529
|
+
}
|
|
530
|
+
declare function useConfigureSuggestions(config: SuggestionsConfigInput | null | undefined, options?: UseConfigureSuggestionsOptions): void;
|
|
531
|
+
|
|
532
|
+
interface ReactActivityMessageRenderer<TActivityContent> {
|
|
533
|
+
/**
|
|
534
|
+
* Activity type to match when rendering. Use "*" as a wildcard renderer.
|
|
535
|
+
*/
|
|
536
|
+
activityType: string;
|
|
537
|
+
/**
|
|
538
|
+
* Optional agent ID to scope the renderer to a particular agent.
|
|
539
|
+
*/
|
|
540
|
+
agentId?: string;
|
|
541
|
+
/**
|
|
542
|
+
* Schema describing the activity content payload.
|
|
543
|
+
*/
|
|
544
|
+
content: z.ZodSchema<TActivityContent>;
|
|
545
|
+
/**
|
|
546
|
+
* React component invoked to render the activity message.
|
|
547
|
+
*/
|
|
548
|
+
render: React.ComponentType<{
|
|
549
|
+
activityType: string;
|
|
550
|
+
content: TActivityContent;
|
|
551
|
+
message: ActivityMessage;
|
|
552
|
+
agent: AbstractAgent | undefined;
|
|
553
|
+
}>;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Helper to define a type-safe tool call renderer entry.
|
|
558
|
+
* - Accepts a single object whose keys match ReactToolCallRenderer's fields: { name, args, render, agentId? }.
|
|
559
|
+
* - Derives `args` type from the provided Zod schema.
|
|
560
|
+
* - Ensures the render function param type exactly matches ReactToolCallRenderer<T>["render"]'s param.
|
|
561
|
+
* - For wildcard tools (name: "*"), args is optional and defaults to z.any()
|
|
562
|
+
*/
|
|
563
|
+
type RenderProps<T> = {
|
|
564
|
+
name: string;
|
|
565
|
+
args: Partial<T>;
|
|
566
|
+
status: ToolCallStatus.InProgress;
|
|
567
|
+
result: undefined;
|
|
568
|
+
} | {
|
|
569
|
+
name: string;
|
|
570
|
+
args: T;
|
|
571
|
+
status: ToolCallStatus.Executing;
|
|
572
|
+
result: undefined;
|
|
573
|
+
} | {
|
|
574
|
+
name: string;
|
|
575
|
+
args: T;
|
|
576
|
+
status: ToolCallStatus.Complete;
|
|
577
|
+
result: string;
|
|
578
|
+
};
|
|
579
|
+
declare function defineToolCallRenderer(def: {
|
|
580
|
+
name: "*";
|
|
581
|
+
render: (props: RenderProps<any>) => React__default.ReactElement;
|
|
582
|
+
agentId?: string;
|
|
583
|
+
}): ReactToolCallRenderer<any>;
|
|
584
|
+
declare function defineToolCallRenderer<S extends z.ZodTypeAny>(def: {
|
|
585
|
+
name: string;
|
|
586
|
+
args: S;
|
|
587
|
+
render: (props: RenderProps<z.infer<S>>) => React__default.ReactElement;
|
|
588
|
+
agentId?: string;
|
|
589
|
+
}): ReactToolCallRenderer<z.infer<S>>;
|
|
590
|
+
|
|
591
|
+
interface CopilotKitCoreReactConfig extends CopilotKitCoreConfig {
|
|
592
|
+
renderToolCalls?: ReactToolCallRenderer<any>[];
|
|
593
|
+
renderActivityMessages?: ReactActivityMessageRenderer<any>[];
|
|
594
|
+
renderCustomMessages?: ReactCustomMessageRenderer[];
|
|
595
|
+
}
|
|
596
|
+
interface CopilotKitCoreReactSubscriber extends CopilotKitCoreSubscriber {
|
|
597
|
+
onRenderToolCallsChanged?: (event: {
|
|
598
|
+
copilotkit: CopilotKitCore;
|
|
599
|
+
renderToolCalls: ReactToolCallRenderer<any>[];
|
|
600
|
+
}) => void | Promise<void>;
|
|
601
|
+
}
|
|
602
|
+
declare class CopilotKitCoreReact extends CopilotKitCore {
|
|
603
|
+
private _renderToolCalls;
|
|
604
|
+
private _renderCustomMessages;
|
|
605
|
+
private _renderActivityMessages;
|
|
606
|
+
constructor(config: CopilotKitCoreReactConfig);
|
|
607
|
+
get renderCustomMessages(): Readonly<ReactCustomMessageRenderer[]>;
|
|
608
|
+
get renderActivityMessages(): Readonly<ReactActivityMessageRenderer<any>>[];
|
|
609
|
+
get renderToolCalls(): Readonly<ReactToolCallRenderer<any>>[];
|
|
610
|
+
setRenderToolCalls(renderToolCalls: ReactToolCallRenderer<any>[]): void;
|
|
611
|
+
subscribe(subscriber: CopilotKitCoreReactSubscriber): () => void;
|
|
612
|
+
unsubscribe(subscriber: CopilotKitCoreReactSubscriber): void;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
interface CopilotKitContextValue {
|
|
616
|
+
copilotkit: CopilotKitCoreReact;
|
|
617
|
+
}
|
|
618
|
+
interface CopilotKitProviderProps {
|
|
619
|
+
children: ReactNode;
|
|
620
|
+
runtimeUrl?: string;
|
|
621
|
+
headers?: Record<string, string>;
|
|
622
|
+
properties?: Record<string, unknown>;
|
|
623
|
+
useSingleEndpoint?: boolean;
|
|
624
|
+
agents__unsafe_dev_only?: Record<string, AbstractAgent>;
|
|
625
|
+
renderToolCalls?: ReactToolCallRenderer<any>[];
|
|
626
|
+
renderActivityMessages?: ReactActivityMessageRenderer<any>[];
|
|
627
|
+
renderCustomMessages?: ReactCustomMessageRenderer[];
|
|
628
|
+
frontendTools?: ReactFrontendTool[];
|
|
629
|
+
humanInTheLoop?: ReactHumanInTheLoop[];
|
|
630
|
+
showDevConsole?: boolean | "auto";
|
|
631
|
+
}
|
|
632
|
+
declare const CopilotKitProvider: React__default.FC<CopilotKitProviderProps>;
|
|
633
|
+
declare const useCopilotKit: () => CopilotKitContextValue;
|
|
634
|
+
|
|
635
|
+
export { AudioRecorderError, type AudioRecorderState, CopilotChat, CopilotChatAssistantMessage, type CopilotChatAssistantMessageProps, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, type CopilotChatConfigurationProviderProps, type CopilotChatConfigurationValue, CopilotChatInput, type CopilotChatInputProps, type CopilotChatLabels, CopilotChatMessageView, type CopilotChatMessageViewProps, type CopilotChatProps, CopilotChatSuggestionPill, type CopilotChatSuggestionPillProps, CopilotChatSuggestionView, type CopilotChatSuggestionViewProps, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, type CopilotChatToggleButtonProps, CopilotChatToolCallsView, type CopilotChatToolCallsViewProps, CopilotChatUserMessage, type CopilotChatUserMessageProps, CopilotChatView, type CopilotChatViewProps, type CopilotKitContextValue, CopilotKitCoreReact, type CopilotKitCoreReactConfig, type CopilotKitCoreReactSubscriber, CopilotKitInspector, type CopilotKitInspectorBaseProps, type CopilotKitInspectorProps, CopilotKitProvider, type CopilotKitProviderProps, CopilotModalHeader, type CopilotModalHeaderProps, CopilotPopup, type CopilotPopupProps, CopilotPopupView, type CopilotPopupViewProps, CopilotSidebar, type CopilotSidebarProps, CopilotSidebarView, type CopilotSidebarViewProps, type ReactActivityMessageRenderer, type ReactCustomMessageRenderer, type ReactCustomMessageRendererPosition, type ReactFrontendTool, type ReactHumanInTheLoop, type ReactToolCallRenderer, type ToolsMenuItem, WildcardToolCallRender, defineToolCallRenderer, useAgent, useAgentContext, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useFrontendTool, useHumanInTheLoop, useRenderActivityMessage, useRenderCustomMessages, useRenderToolCall, useSuggestions };
|