@copilotkit/react-core 1.60.2 → 1.61.0

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.
@@ -1,4 +1,4 @@
1
- import { $ as InterruptEvent, $t as CopilotChatSuggestionPill, A as UseLearnFromUserActionRecorder, At as CopilotSidebarViewProps, B as AgentContextInput, Bt as CopilotChatViewProps, C as UseAttachmentsReturn, Ct as CopilotPopup, D as useLearnFromUserActionInCurrentThread, Dt as CopilotPopupView, E as UseLearnFromUserActionInCurrentThreadRecorder, Et as CopilotSidebarProps, F as useThreads, Ft as DefaultCloseIcon, G as useAgent, Gt as IntelligenceIndicator, H as useAgentContext, Ht as CopilotChatMessageView, I as UseInterruptConfig, It as DefaultOpenIcon, J as useRenderTool, Jt as IntelligenceIndicatorStatus, K as useHumanInTheLoop, Kt as IntelligenceIndicatorProps, L as useInterrupt, Lt as CopilotChat, M as Thread, Mt as CopilotModalHeaderProps, N as UseThreadsInput, Nt as CopilotChatToggleButton, O as LearnFromUserActionInput, Ot as CopilotPopupViewProps, P as UseThreadsResult, Pt as CopilotChatToggleButtonProps, Q as SandboxFunction, Qt as CopilotChatSuggestionViewProps, R as useConfigureSuggestions, Rt as CopilotChatProps, S as UseAttachmentsProps, St as CopilotChatAttachmentQueue, T as LearnFromUserActionInCurrentThreadInput, Tt as CopilotSidebar, U as useCapabilities, Ut as CopilotChatMessageViewProps, V as JsonSerializable, Vt as AutoScrollMode, W as UseAgentUpdate, Wt as INTELLIGENCE_TURN_HEAD, X as useFrontendTool, Xt as IntelligenceIndicatorViewProps, Y as useComponent, Yt as IntelligenceIndicatorView, Z as useRenderActivityMessage, Zt as CopilotChatSuggestionView, _ as CopilotKitCoreReactSubscriber, _n as AudioRecorderError, _t as WildcardToolCallRender, a as A2UIUserAction, an as CopilotChatAssistantMessage, at as ReactActivityMessageRenderer, b as UseLearningContainersArgs, bt as AttachmentsConfig, c as SandboxFunctionsContext, cn as CopilotChatToolCallsViewProps, ct as ReactCustomMessageRenderer, d as CopilotKitProviderProps, dn as ToolsMenuItem, dt as MCPAppsActivityContent, en as CopilotChatSuggestionPillProps, et as InterruptHandlerProps, f as A2UIRecoveryRendererOptions, fn as CopilotChatConfigurationProvider, ft as MCPAppsActivityContentSchema, g as CopilotKitCoreReactConfig, gn as useCopilotChatConfiguration, gt as CopilotKitInspectorProps, h as CopilotKitCoreReact, hn as CopilotChatLabels, ht as CopilotKitInspector, i as A2UIMessageRendererOptions, in as CopilotChatUserMessageProps, it as ReactFrontendTool, j as useLearnFromUserAction, jt as CopilotModalHeader, k as LearnFromUserActionResult, kt as CopilotSidebarView, l as useSandboxFunctions, ln as CopilotChatInput, lt as ReactCustomMessageRendererPosition, m as useCopilotKit, mn as CopilotChatConfigurationValue, mt as MCPAppsActivityType, nn as CopilotChatReasoningMessageProps, nt as defineToolCallRenderer, o as createA2UIMessageRenderer, on as CopilotChatAssistantMessageProps, ot as ReactToolCallRenderer, p as CopilotKitContextValue, pn as CopilotChatConfigurationProviderProps, pt as MCPAppsActivityRenderer, q as useDefaultRenderTool, qt as getIntelligenceTurnAnchors, r as CopilotKitProps, rn as CopilotChatUserMessage, rt as ReactHumanInTheLoop, s as InspectorAnchor, sn as CopilotChatToolCallsView, st as useRenderCustomMessages, t as CopilotKit, tn as CopilotChatReasoningMessage, tt as InterruptRenderProps, u as CopilotKitProvider, un as CopilotChatInputProps, ut as useRenderToolCall, v as UseLearningContainersInCurrentThreadArgs, vn as AudioRecorderState, vt as Attachment, w as useAttachments, wt as CopilotPopupProps, x as useLearningContainers, xt as CopilotChatAttachmentRenderer, y as useLearningContainersInCurrentThread, yn as CopilotChatAudioRecorder, yt as AttachmentModality, z as useSuggestions, zt as CopilotChatView } from "../copilotkit-CyL6ZsLP.cjs";
1
+ import { $ as InterruptEvent, $t as CopilotChatSuggestionPill, A as UseLearnFromUserActionRecorder, At as CopilotSidebarViewProps, B as AgentContextInput, Bt as CopilotChatViewProps, C as UseAttachmentsReturn, Ct as CopilotPopup, D as useLearnFromUserActionInCurrentThread, Dt as CopilotPopupView, E as UseLearnFromUserActionInCurrentThreadRecorder, Et as CopilotSidebarProps, F as useThreads, Ft as DefaultCloseIcon, G as useAgent, Gt as IntelligenceIndicator, H as useAgentContext, Ht as CopilotChatMessageView, I as UseInterruptConfig, It as DefaultOpenIcon, J as useRenderTool, Jt as IntelligenceIndicatorStatus, K as useHumanInTheLoop, Kt as IntelligenceIndicatorProps, L as useInterrupt, Lt as CopilotChat, M as Thread, Mt as CopilotModalHeaderProps, N as UseThreadsInput, Nt as CopilotChatToggleButton, O as LearnFromUserActionInput, Ot as CopilotPopupViewProps, P as UseThreadsResult, Pt as CopilotChatToggleButtonProps, Q as SandboxFunction, Qt as CopilotChatSuggestionViewProps, R as useConfigureSuggestions, Rt as CopilotChatProps, S as UseAttachmentsProps, St as CopilotChatAttachmentQueue, T as LearnFromUserActionInCurrentThreadInput, Tt as CopilotSidebar, U as useCapabilities, Ut as CopilotChatMessageViewProps, V as JsonSerializable, Vt as AutoScrollMode, W as UseAgentUpdate, Wt as INTELLIGENCE_TURN_HEAD, X as useFrontendTool, Xt as IntelligenceIndicatorViewProps, Y as useComponent, Yt as IntelligenceIndicatorView, Z as useRenderActivityMessage, Zt as CopilotChatSuggestionView, _ as CopilotKitCoreReactSubscriber, _n as AudioRecorderError, _t as WildcardToolCallRender, a as A2UIUserAction, an as CopilotChatAssistantMessage, at as ReactActivityMessageRenderer, b as UseLearningContainersArgs, bt as AttachmentsConfig, c as SandboxFunctionsContext, cn as CopilotChatToolCallsViewProps, ct as ReactCustomMessageRenderer, d as CopilotKitProviderProps, dn as ToolsMenuItem, dt as MCPAppsActivityContent, en as CopilotChatSuggestionPillProps, et as InterruptHandlerProps, f as A2UIRecoveryRendererOptions, fn as CopilotChatConfigurationProvider, ft as MCPAppsActivityContentSchema, g as CopilotKitCoreReactConfig, gn as useCopilotChatConfiguration, gt as CopilotKitInspectorProps, h as CopilotKitCoreReact, hn as CopilotChatLabels, ht as CopilotKitInspector, i as A2UIMessageRendererOptions, in as CopilotChatUserMessageProps, it as ReactFrontendTool, j as useLearnFromUserAction, jt as CopilotModalHeader, k as LearnFromUserActionResult, kt as CopilotSidebarView, l as useSandboxFunctions, ln as CopilotChatInput, lt as ReactCustomMessageRendererPosition, m as useCopilotKit, mn as CopilotChatConfigurationValue, mt as MCPAppsActivityType, nn as CopilotChatReasoningMessageProps, nt as defineToolCallRenderer, o as createA2UIMessageRenderer, on as CopilotChatAssistantMessageProps, ot as ReactToolCallRenderer, p as CopilotKitContextValue, pn as CopilotChatConfigurationProviderProps, pt as MCPAppsActivityRenderer, q as useDefaultRenderTool, qt as getIntelligenceTurnAnchors, r as CopilotKitProps, rn as CopilotChatUserMessage, rt as ReactHumanInTheLoop, s as InspectorAnchor, sn as CopilotChatToolCallsView, st as useRenderCustomMessages, t as CopilotKit, tn as CopilotChatReasoningMessage, tt as InterruptRenderProps, u as CopilotKitProvider, un as CopilotChatInputProps, ut as useRenderToolCall, v as UseLearningContainersInCurrentThreadArgs, vn as AudioRecorderState, vt as Attachment, w as useAttachments, wt as CopilotPopupProps, x as useLearningContainers, xt as CopilotChatAttachmentRenderer, y as useLearningContainersInCurrentThread, yn as CopilotChatAudioRecorder, yt as AttachmentModality, z as useSuggestions, zt as CopilotChatView } from "../copilotkit-CEdu_aie.cjs";
2
2
  import "./index.css";
3
3
  import { Theme as A2UITheme, defaultTheme as a2uiDefaultTheme } from "@copilotkit/a2ui-renderer";
4
4
  export * from "@copilotkit/core";
@@ -1,4 +1,4 @@
1
- import { $ as InterruptEvent, $t as CopilotChatSuggestionPill, A as UseLearnFromUserActionRecorder, At as CopilotSidebarViewProps, B as AgentContextInput, Bt as CopilotChatViewProps, C as UseAttachmentsReturn, Ct as CopilotPopup, D as useLearnFromUserActionInCurrentThread, Dt as CopilotPopupView, E as UseLearnFromUserActionInCurrentThreadRecorder, Et as CopilotSidebarProps, F as useThreads, Ft as DefaultCloseIcon, G as useAgent, Gt as IntelligenceIndicator, H as useAgentContext, Ht as CopilotChatMessageView, I as UseInterruptConfig, It as DefaultOpenIcon, J as useRenderTool, Jt as IntelligenceIndicatorStatus, K as useHumanInTheLoop, Kt as IntelligenceIndicatorProps, L as useInterrupt, Lt as CopilotChat, M as Thread, Mt as CopilotModalHeaderProps, N as UseThreadsInput, Nt as CopilotChatToggleButton, O as LearnFromUserActionInput, Ot as CopilotPopupViewProps, P as UseThreadsResult, Pt as CopilotChatToggleButtonProps, Q as SandboxFunction, Qt as CopilotChatSuggestionViewProps, R as useConfigureSuggestions, Rt as CopilotChatProps, S as UseAttachmentsProps, St as CopilotChatAttachmentQueue, T as LearnFromUserActionInCurrentThreadInput, Tt as CopilotSidebar, U as useCapabilities, Ut as CopilotChatMessageViewProps, V as JsonSerializable, Vt as AutoScrollMode, W as UseAgentUpdate, Wt as INTELLIGENCE_TURN_HEAD, X as useFrontendTool, Xt as IntelligenceIndicatorViewProps, Y as useComponent, Yt as IntelligenceIndicatorView, Z as useRenderActivityMessage, Zt as CopilotChatSuggestionView, _ as CopilotKitCoreReactSubscriber, _n as AudioRecorderError, _t as WildcardToolCallRender, a as A2UIUserAction, an as CopilotChatAssistantMessage, at as ReactActivityMessageRenderer, b as UseLearningContainersArgs, bt as AttachmentsConfig, c as SandboxFunctionsContext, cn as CopilotChatToolCallsViewProps, ct as ReactCustomMessageRenderer, d as CopilotKitProviderProps, dn as ToolsMenuItem, dt as MCPAppsActivityContent, en as CopilotChatSuggestionPillProps, et as InterruptHandlerProps, f as A2UIRecoveryRendererOptions, fn as CopilotChatConfigurationProvider, ft as MCPAppsActivityContentSchema, g as CopilotKitCoreReactConfig, gn as useCopilotChatConfiguration, gt as CopilotKitInspectorProps, h as CopilotKitCoreReact, hn as CopilotChatLabels, ht as CopilotKitInspector, i as A2UIMessageRendererOptions, in as CopilotChatUserMessageProps, it as ReactFrontendTool, j as useLearnFromUserAction, jt as CopilotModalHeader, k as LearnFromUserActionResult, kt as CopilotSidebarView, l as useSandboxFunctions, ln as CopilotChatInput, lt as ReactCustomMessageRendererPosition, m as useCopilotKit, mn as CopilotChatConfigurationValue, mt as MCPAppsActivityType, nn as CopilotChatReasoningMessageProps, nt as defineToolCallRenderer, o as createA2UIMessageRenderer, on as CopilotChatAssistantMessageProps, ot as ReactToolCallRenderer, p as CopilotKitContextValue, pn as CopilotChatConfigurationProviderProps, pt as MCPAppsActivityRenderer, q as useDefaultRenderTool, qt as getIntelligenceTurnAnchors, r as CopilotKitProps, rn as CopilotChatUserMessage, rt as ReactHumanInTheLoop, s as InspectorAnchor, sn as CopilotChatToolCallsView, st as useRenderCustomMessages, t as CopilotKit, tn as CopilotChatReasoningMessage, tt as InterruptRenderProps, u as CopilotKitProvider, un as CopilotChatInputProps, ut as useRenderToolCall, v as UseLearningContainersInCurrentThreadArgs, vn as AudioRecorderState, vt as Attachment, w as useAttachments, wt as CopilotPopupProps, x as useLearningContainers, xt as CopilotChatAttachmentRenderer, y as useLearningContainersInCurrentThread, yn as CopilotChatAudioRecorder, yt as AttachmentModality, z as useSuggestions, zt as CopilotChatView } from "../copilotkit-UaQ7KSUq.mjs";
1
+ import { $ as InterruptEvent, $t as CopilotChatSuggestionPill, A as UseLearnFromUserActionRecorder, At as CopilotSidebarViewProps, B as AgentContextInput, Bt as CopilotChatViewProps, C as UseAttachmentsReturn, Ct as CopilotPopup, D as useLearnFromUserActionInCurrentThread, Dt as CopilotPopupView, E as UseLearnFromUserActionInCurrentThreadRecorder, Et as CopilotSidebarProps, F as useThreads, Ft as DefaultCloseIcon, G as useAgent, Gt as IntelligenceIndicator, H as useAgentContext, Ht as CopilotChatMessageView, I as UseInterruptConfig, It as DefaultOpenIcon, J as useRenderTool, Jt as IntelligenceIndicatorStatus, K as useHumanInTheLoop, Kt as IntelligenceIndicatorProps, L as useInterrupt, Lt as CopilotChat, M as Thread, Mt as CopilotModalHeaderProps, N as UseThreadsInput, Nt as CopilotChatToggleButton, O as LearnFromUserActionInput, Ot as CopilotPopupViewProps, P as UseThreadsResult, Pt as CopilotChatToggleButtonProps, Q as SandboxFunction, Qt as CopilotChatSuggestionViewProps, R as useConfigureSuggestions, Rt as CopilotChatProps, S as UseAttachmentsProps, St as CopilotChatAttachmentQueue, T as LearnFromUserActionInCurrentThreadInput, Tt as CopilotSidebar, U as useCapabilities, Ut as CopilotChatMessageViewProps, V as JsonSerializable, Vt as AutoScrollMode, W as UseAgentUpdate, Wt as INTELLIGENCE_TURN_HEAD, X as useFrontendTool, Xt as IntelligenceIndicatorViewProps, Y as useComponent, Yt as IntelligenceIndicatorView, Z as useRenderActivityMessage, Zt as CopilotChatSuggestionView, _ as CopilotKitCoreReactSubscriber, _n as AudioRecorderError, _t as WildcardToolCallRender, a as A2UIUserAction, an as CopilotChatAssistantMessage, at as ReactActivityMessageRenderer, b as UseLearningContainersArgs, bt as AttachmentsConfig, c as SandboxFunctionsContext, cn as CopilotChatToolCallsViewProps, ct as ReactCustomMessageRenderer, d as CopilotKitProviderProps, dn as ToolsMenuItem, dt as MCPAppsActivityContent, en as CopilotChatSuggestionPillProps, et as InterruptHandlerProps, f as A2UIRecoveryRendererOptions, fn as CopilotChatConfigurationProvider, ft as MCPAppsActivityContentSchema, g as CopilotKitCoreReactConfig, gn as useCopilotChatConfiguration, gt as CopilotKitInspectorProps, h as CopilotKitCoreReact, hn as CopilotChatLabels, ht as CopilotKitInspector, i as A2UIMessageRendererOptions, in as CopilotChatUserMessageProps, it as ReactFrontendTool, j as useLearnFromUserAction, jt as CopilotModalHeader, k as LearnFromUserActionResult, kt as CopilotSidebarView, l as useSandboxFunctions, ln as CopilotChatInput, lt as ReactCustomMessageRendererPosition, m as useCopilotKit, mn as CopilotChatConfigurationValue, mt as MCPAppsActivityType, nn as CopilotChatReasoningMessageProps, nt as defineToolCallRenderer, o as createA2UIMessageRenderer, on as CopilotChatAssistantMessageProps, ot as ReactToolCallRenderer, p as CopilotKitContextValue, pn as CopilotChatConfigurationProviderProps, pt as MCPAppsActivityRenderer, q as useDefaultRenderTool, qt as getIntelligenceTurnAnchors, r as CopilotKitProps, rn as CopilotChatUserMessage, rt as ReactHumanInTheLoop, s as InspectorAnchor, sn as CopilotChatToolCallsView, st as useRenderCustomMessages, t as CopilotKit, tn as CopilotChatReasoningMessage, tt as InterruptRenderProps, u as CopilotKitProvider, un as CopilotChatInputProps, ut as useRenderToolCall, v as UseLearningContainersInCurrentThreadArgs, vn as AudioRecorderState, vt as Attachment, w as useAttachments, wt as CopilotPopupProps, x as useLearningContainers, xt as CopilotChatAttachmentRenderer, y as useLearningContainersInCurrentThread, yn as CopilotChatAudioRecorder, yt as AttachmentModality, z as useSuggestions, zt as CopilotChatView } from "../copilotkit-M1FiciGd.mjs";
2
2
  import "./index.css";
3
3
  import { Theme as A2UITheme, defaultTheme as a2uiDefaultTheme } from "@copilotkit/a2ui-renderer";
4
4
  export * from "@copilotkit/core";
package/dist/v2/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- import { $ as useAgent, A as INTELLIGENCE_TURN_HEAD, B as CopilotChatToolCallsView, C as CopilotChatToggleButton, Ct as useCopilotChatConfiguration, D as CopilotChatView_default, E as CopilotChat, F as CopilotChatSuggestionPill, G as useLearnFromUserAction, H as useLearningContainers, I as CopilotChatReasoningMessage_default, J as useConfigureSuggestions, K as useThreads, L as CopilotChatUserMessage_default, M as getIntelligenceTurnAnchors, N as IntelligenceIndicatorView, O as CopilotChatAttachmentQueue, P as CopilotChatSuggestionView, Q as UseAgentUpdate, R as CopilotChatAttachmentRenderer, S as CopilotModalHeader, St as CopilotChatConfigurationProvider, T as DefaultOpenIcon, U as useAttachments, V as useLearningContainersInCurrentThread, W as useLearnFromUserActionInCurrentThread, X as useAgentContext, Y as useSuggestions, Z as useCapabilities, _ as WildcardToolCallRender, _t as useCopilotKit, at as CopilotKitProvider, b as CopilotPopupView, bt as AudioRecorderError, ct as useSandboxFunctions, dt as MCPAppsActivityType, et as useHumanInTheLoop, ft as CopilotKitInspector, gt as defineToolCallRenderer, ht as useRenderTool, it as useRenderCustomMessages, j as IntelligenceIndicator, k as CopilotChatMessageView, lt as MCPAppsActivityContentSchema, mt as useDefaultRenderTool, nt as useFrontendTool, ot as createA2UIMessageRenderer, pt as useRenderToolCall, q as useInterrupt, rt as useRenderActivityMessage, st as SandboxFunctionsContext, t as CopilotKit, tt as useComponent, ut as MCPAppsActivityRenderer, v as CopilotPopup, vt as CopilotKitCoreReact, w as DefaultCloseIcon, x as CopilotSidebarView, xt as CopilotChatAudioRecorder, y as CopilotSidebar, yt as CopilotChatInput_default, z as CopilotChatAssistantMessage_default } from "../copilotkit-DheptEiV.mjs";
3
+ import { $ as useAgent, A as INTELLIGENCE_TURN_HEAD, B as CopilotChatToolCallsView, C as CopilotChatToggleButton, Ct as useCopilotChatConfiguration, D as CopilotChatView_default, E as CopilotChat, F as CopilotChatSuggestionPill, G as useLearnFromUserAction, H as useLearningContainers, I as CopilotChatReasoningMessage_default, J as useConfigureSuggestions, K as useThreads, L as CopilotChatUserMessage_default, M as getIntelligenceTurnAnchors, N as IntelligenceIndicatorView, O as CopilotChatAttachmentQueue, P as CopilotChatSuggestionView, Q as UseAgentUpdate, R as CopilotChatAttachmentRenderer, S as CopilotModalHeader, St as CopilotChatConfigurationProvider, T as DefaultOpenIcon, U as useAttachments, V as useLearningContainersInCurrentThread, W as useLearnFromUserActionInCurrentThread, X as useAgentContext, Y as useSuggestions, Z as useCapabilities, _ as WildcardToolCallRender, _t as useCopilotKit, at as CopilotKitProvider, b as CopilotPopupView, bt as AudioRecorderError, ct as useSandboxFunctions, dt as MCPAppsActivityType, et as useHumanInTheLoop, ft as CopilotKitInspector, gt as defineToolCallRenderer, ht as useRenderTool, it as useRenderCustomMessages, j as IntelligenceIndicator, k as CopilotChatMessageView, lt as MCPAppsActivityContentSchema, mt as useDefaultRenderTool, nt as useFrontendTool, ot as createA2UIMessageRenderer, pt as useRenderToolCall, q as useInterrupt, rt as useRenderActivityMessage, st as SandboxFunctionsContext, t as CopilotKit, tt as useComponent, ut as MCPAppsActivityRenderer, v as CopilotPopup, vt as CopilotKitCoreReact, w as DefaultCloseIcon, x as CopilotSidebarView, xt as CopilotChatAudioRecorder, y as CopilotSidebar, yt as CopilotChatInput_default, z as CopilotChatAssistantMessage_default } from "../copilotkit-BCxdKlMw.mjs";
4
4
  import "./index.css";
5
5
  import { defaultTheme as a2uiDefaultTheme } from "@copilotkit/a2ui-renderer";
6
6
 
@@ -3628,6 +3628,10 @@ window.parent.postMessage({jsonrpc:"2.0",method:"ui/notifications/sandbox-proxy-
3628
3628
  ...selfManagedAgents
3629
3629
  }), [agents, selfManagedAgents]);
3630
3630
  const hasLocalAgents = mergedAgents && Object.keys(mergedAgents).length > 0;
3631
+ const hasSelfManagedAgents = Object.keys(selfManagedAgents).length > 0;
3632
+ (0, react.useEffect)(() => {
3633
+ if (hasSelfManagedAgents && !resolvedPublicKey) console.warn("[CopilotKit] `selfManagedAgents` is part of CopilotKit's Enterprise Intelligence offering. Provide a `publicLicenseKey` for production use — contact the CopilotKit team about licensing.");
3634
+ }, [hasSelfManagedAgents, resolvedPublicKey]);
3631
3635
  const headers = typeof headersProp === "function" ? headersProp() : headersProp;
3632
3636
  const mergedHeaders = (0, react.useMemo)(() => {
3633
3637
  if (!resolvedPublicKey) return headers;
@@ -4105,36 +4109,40 @@ window.parent.postMessage({jsonrpc:"2.0",method:"ui/notifications/sandbox-proxy-
4105
4109
  }, []);
4106
4110
  const RenderComponent = (0, react.useCallback)((props) => {
4107
4111
  const ToolComponent = tool.render;
4108
- if (props.status === "inProgress") {
4112
+ if (props.status === _copilotkit_core.ToolCallStatus.InProgress) {
4109
4113
  const enhancedProps = {
4110
4114
  ...props,
4111
4115
  name: tool.name,
4112
4116
  description: tool.description || "",
4117
+ agentId: tool.agentId,
4113
4118
  respond: void 0
4114
4119
  };
4115
4120
  return react.default.createElement(ToolComponent, enhancedProps);
4116
- } else if (props.status === "executing") {
4121
+ } else if (props.status === _copilotkit_core.ToolCallStatus.Executing) {
4117
4122
  const enhancedProps = {
4118
4123
  ...props,
4119
4124
  name: tool.name,
4120
4125
  description: tool.description || "",
4126
+ agentId: tool.agentId,
4121
4127
  respond
4122
4128
  };
4123
4129
  return react.default.createElement(ToolComponent, enhancedProps);
4124
- } else if (props.status === "complete") {
4130
+ } else if (props.status === _copilotkit_core.ToolCallStatus.Complete) {
4125
4131
  const enhancedProps = {
4126
4132
  ...props,
4127
4133
  name: tool.name,
4128
4134
  description: tool.description || "",
4135
+ agentId: tool.agentId,
4129
4136
  respond: void 0
4130
4137
  };
4131
4138
  return react.default.createElement(ToolComponent, enhancedProps);
4132
4139
  }
4133
- return react.default.createElement(ToolComponent, props);
4140
+ return props;
4134
4141
  }, [
4135
4142
  tool.render,
4136
4143
  tool.name,
4137
4144
  tool.description,
4145
+ tool.agentId,
4138
4146
  respond
4139
4147
  ]);
4140
4148
  useFrontendTool({
@@ -9982,21 +9990,6 @@ window.parent.postMessage({jsonrpc:"2.0",method:"ui/notifications/sandbox-proxy-
9982
9990
 
9983
9991
  //#endregion
9984
9992
  //#region src/components/copilot-provider/copilotkit.tsx
9985
- /**
9986
- * This component will typically wrap your entire application (or a sub-tree of your application where you want to have a copilot). It provides the copilot context to all other components and hooks.
9987
- *
9988
- * ## Example
9989
- *
9990
- * You can find more information about self-hosting CopilotKit [here](/guides/self-hosting).
9991
- *
9992
- * ```tsx
9993
- * import { CopilotKit } from "@copilotkit/react-core";
9994
- *
9995
- * <CopilotKit runtimeUrl="<your-runtime-url>">
9996
- * // ... your app ...
9997
- * </CopilotKit>
9998
- * ```
9999
- */
10000
9993
  function CopilotKit({ children, ...props }) {
10001
9994
  const enabled = shouldShowDevConsole(props.showDevConsole);
10002
9995
  const showInspector = shouldShowDevConsole(props.enableInspector);
@@ -10485,7 +10478,11 @@ window.parent.postMessage({jsonrpc:"2.0",method:"ui/notifications/sandbox-proxy-
10485
10478
  function validateProps(props) {
10486
10479
  const cloudFeatures = Object.keys(props).filter((key) => key.endsWith("_c"));
10487
10480
  const hasApiKey = props.publicApiKey || props.publicLicenseKey;
10488
- if (!props.runtimeUrl && !hasApiKey) throw new _copilotkit_shared.ConfigurationError("Missing required prop: 'runtimeUrl' or 'publicApiKey' or 'publicLicenseKey'");
10481
+ const hasLocalAgents = Object.keys({
10482
+ ...props.agents__unsafe_dev_only,
10483
+ ...props.selfManagedAgents
10484
+ }).length > 0;
10485
+ if (!props.runtimeUrl && !hasApiKey && !hasLocalAgents) throw new _copilotkit_shared.ConfigurationError("Missing required prop: 'runtimeUrl' or 'publicApiKey' or 'publicLicenseKey'");
10489
10486
  if (cloudFeatures.length > 0 && !hasApiKey) throw new _copilotkit_shared.MissingPublicApiKeyError(`Missing required prop: 'publicApiKey' or 'publicLicenseKey' to use cloud features: ${cloudFeatures.map(formatFeatureName).join(", ")}`);
10490
10487
  }
10491
10488