@copilotkit/react-core 2.0.0-rc.65 → 2.0.0-rc.66
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.cjs +26 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +103 -103
- package/dist/index.d.mts +103 -103
- package/dist/index.mjs +26 -26
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +26 -26
- package/dist/index.umd.js.map +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -814,7 +814,7 @@ function ɵuseOwnedCore(ref, create) {
|
|
|
814
814
|
|
|
815
815
|
//#endregion
|
|
816
816
|
//#region package.json
|
|
817
|
-
var version$1 = "2.0.0-rc.
|
|
817
|
+
var version$1 = "2.0.0-rc.66";
|
|
818
818
|
|
|
819
819
|
//#endregion
|
|
820
820
|
//#region src/components/CopilotKitInspector.tsx
|
|
@@ -8175,151 +8175,151 @@ const WildcardToolCallRender = require_chat.defineToolCallRenderer({
|
|
|
8175
8175
|
|
|
8176
8176
|
//#endregion
|
|
8177
8177
|
//#region src/removed-exports.ts
|
|
8178
|
-
/** @deprecated "CoAgentStateRendersProvider" was removed in CopilotKit 2.0. Delete it. Render agent.state from useAgent from @copilotkit/react-core in your component. Run `npx
|
|
8178
|
+
/** @deprecated "CoAgentStateRendersProvider" was removed in CopilotKit 2.0. Delete it. Render agent.state from useAgent from @copilotkit/react-core in your component. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8179
8179
|
const CoAgentStateRendersProvider = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8180
8180
|
name: "CoAgentStateRendersProvider",
|
|
8181
8181
|
use: "Delete it. Render agent.state from useAgent from @copilotkit/react-core in your component.",
|
|
8182
8182
|
docs: "/migrate/v2#hook-mapping"
|
|
8183
8183
|
});
|
|
8184
|
-
/** @deprecated "CopilotTask" was removed in CopilotKit 2.0. Run the agent from code: add a message with agent.addMessage from useAgent, then call copilotkit.runAgent({ agent }) from useCopilotKit, both from @copilotkit/react-core. Run `npx
|
|
8184
|
+
/** @deprecated "CopilotTask" was removed in CopilotKit 2.0. Run the agent from code: add a message with agent.addMessage from useAgent, then call copilotkit.runAgent({ agent }) from useCopilotKit, both from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/programmatic-control#sending-a-message-from-code */
|
|
8185
8185
|
const CopilotTask = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8186
8186
|
name: "CopilotTask",
|
|
8187
8187
|
use: "Run the agent from code: add a message with agent.addMessage from useAgent, then call copilotkit.runAgent({ agent }) from useCopilotKit, both from @copilotkit/react-core.",
|
|
8188
8188
|
docs: "/programmatic-control#sending-a-message-from-code"
|
|
8189
8189
|
});
|
|
8190
|
-
/** @deprecated "createA2UIMessageRenderer" was removed in CopilotKit 2.0. The A2UI v0.9 renderer was removed, and CopilotKitProvider renders A2UI with generative UI. Pass generativeUI={{ ui }} with a UI from createGenerativeUI in @copilotkit/react-core/generative-ui. Run `npx
|
|
8190
|
+
/** @deprecated "createA2UIMessageRenderer" was removed in CopilotKit 2.0. The A2UI v0.9 renderer was removed, and CopilotKitProvider renders A2UI with generative UI. Pass generativeUI={{ ui }} with a UI from createGenerativeUI in @copilotkit/react-core/generative-ui. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/generative-ui-2.0#a2ui-v09-renderer */
|
|
8191
8191
|
const createA2UIMessageRenderer = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8192
8192
|
name: "createA2UIMessageRenderer",
|
|
8193
8193
|
use: "The A2UI v0.9 renderer was removed, and CopilotKitProvider renders A2UI with generative UI. Pass generativeUI={{ ui }} with a UI from createGenerativeUI in @copilotkit/react-core/generative-ui.",
|
|
8194
8194
|
docs: "/migrate/generative-ui-2.0#a2ui-v09-renderer"
|
|
8195
8195
|
});
|
|
8196
|
-
/** @deprecated "shouldShowDevConsole" was removed in CopilotKit 2.0. Delete the call. To turn the Inspector on or off, set enableInspector on CopilotKitProvider. Run `npx
|
|
8196
|
+
/** @deprecated "shouldShowDevConsole" was removed in CopilotKit 2.0. Delete the call. To turn the Inspector on or off, set enableInspector on CopilotKitProvider. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/removed-apis-2.0#showdevconsole */
|
|
8197
8197
|
const shouldShowDevConsole = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8198
8198
|
name: "shouldShowDevConsole",
|
|
8199
8199
|
use: "Delete the call. To turn the Inspector on or off, set enableInspector on CopilotKitProvider.",
|
|
8200
8200
|
docs: "/migrate/removed-apis-2.0#showdevconsole"
|
|
8201
8201
|
});
|
|
8202
|
-
/** @deprecated "ThreadsProvider" was removed in CopilotKit 2.0. Delete it. Pass threadId to CopilotChat (or to CopilotChatConfigurationProvider around the chat), and list the threads with useThreads, from @copilotkit/react-core. Run `npx
|
|
8202
|
+
/** @deprecated "ThreadsProvider" was removed in CopilotKit 2.0. Delete it. Pass threadId to CopilotChat (or to CopilotChatConfigurationProvider around the chat), and list the threads with useThreads, from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/chat-2.0#thread-lists */
|
|
8203
8203
|
const ThreadsProvider = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8204
8204
|
name: "ThreadsProvider",
|
|
8205
8205
|
use: "Delete it. Pass threadId to CopilotChat (or to CopilotChatConfigurationProvider around the chat), and list the threads with useThreads, from @copilotkit/react-core.",
|
|
8206
8206
|
docs: "/migrate/chat-2.0#thread-lists"
|
|
8207
8207
|
});
|
|
8208
|
-
/** @deprecated "useCoAgent" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state. Run `npx
|
|
8208
|
+
/** @deprecated "useCoAgent" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8209
8209
|
const useCoAgent = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8210
8210
|
name: "useCoAgent",
|
|
8211
8211
|
use: "Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state.",
|
|
8212
8212
|
docs: "/migrate/v2#hook-mapping"
|
|
8213
8213
|
});
|
|
8214
|
-
/** @deprecated "useCoAgentStateRender" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core, and render agent.state in your component. Run `npx
|
|
8214
|
+
/** @deprecated "useCoAgentStateRender" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core, and render agent.state in your component. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8215
8215
|
const useCoAgentStateRender = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8216
8216
|
name: "useCoAgentStateRender",
|
|
8217
8217
|
use: "Use useAgent from @copilotkit/react-core, and render agent.state in your component.",
|
|
8218
8218
|
docs: "/migrate/v2#hook-mapping"
|
|
8219
8219
|
});
|
|
8220
|
-
/** @deprecated "useCoAgentStateRenders" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core, and render agent.state in your component. Run `npx
|
|
8220
|
+
/** @deprecated "useCoAgentStateRenders" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core, and render agent.state in your component. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8221
8221
|
const useCoAgentStateRenders = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8222
8222
|
name: "useCoAgentStateRenders",
|
|
8223
8223
|
use: "Use useAgent from @copilotkit/react-core, and render agent.state in your component.",
|
|
8224
8224
|
docs: "/migrate/v2#hook-mapping"
|
|
8225
8225
|
});
|
|
8226
|
-
/** @deprecated "useCopilotAction" was removed in CopilotKit 2.0. Use useFrontendTool from @copilotkit/react-core (parameters are now a Zod 4 / Standard Schema), or useHumanInTheLoop when the action waits for the user. Run `npx
|
|
8226
|
+
/** @deprecated "useCopilotAction" was removed in CopilotKit 2.0. Use useFrontendTool from @copilotkit/react-core (parameters are now a Zod 4 / Standard Schema), or useHumanInTheLoop when the action waits for the user. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8227
8227
|
const useCopilotAction = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8228
8228
|
name: "useCopilotAction",
|
|
8229
8229
|
use: "Use useFrontendTool from @copilotkit/react-core (parameters are now a Zod 4 / Standard Schema), or useHumanInTheLoop when the action waits for the user.",
|
|
8230
8230
|
docs: "/migrate/v2#hook-mapping"
|
|
8231
8231
|
});
|
|
8232
|
-
/** @deprecated "useCopilotAdditionalInstructions" was removed in CopilotKit 2.0. Use useAgentContext from @copilotkit/react-core to give the agent the instructions. Run `npx
|
|
8232
|
+
/** @deprecated "useCopilotAdditionalInstructions" was removed in CopilotKit 2.0. Use useAgentContext from @copilotkit/react-core to give the agent the instructions. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8233
8233
|
const useCopilotAdditionalInstructions = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8234
8234
|
name: "useCopilotAdditionalInstructions",
|
|
8235
8235
|
use: "Use useAgentContext from @copilotkit/react-core to give the agent the instructions.",
|
|
8236
8236
|
docs: "/migrate/v2#hook-mapping"
|
|
8237
8237
|
});
|
|
8238
|
-
/** @deprecated "useCopilotAuthenticatedAction_c" was removed in CopilotKit 2.0. Use useFrontendTool from @copilotkit/react-core, and check the user in its handler. Run `npx
|
|
8238
|
+
/** @deprecated "useCopilotAuthenticatedAction_c" was removed in CopilotKit 2.0. Use useFrontendTool from @copilotkit/react-core, and check the user in its handler. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8239
8239
|
const useCopilotAuthenticatedAction_c = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8240
8240
|
name: "useCopilotAuthenticatedAction_c",
|
|
8241
8241
|
use: "Use useFrontendTool from @copilotkit/react-core, and check the user in its handler.",
|
|
8242
8242
|
docs: "/migrate/v2#hook-mapping"
|
|
8243
8243
|
});
|
|
8244
|
-
/** @deprecated "useCopilotChat" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent with its messages. For a chat UI of your own, see Headless UI. Run `npx
|
|
8244
|
+
/** @deprecated "useCopilotChat" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent with its messages. For a chat UI of your own, see Headless UI. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8245
8245
|
const useCopilotChat = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8246
8246
|
name: "useCopilotChat",
|
|
8247
8247
|
use: "Use useAgent from @copilotkit/react-core. It returns the agent with its messages. For a chat UI of your own, see Headless UI.",
|
|
8248
8248
|
docs: "/migrate/v2#hook-mapping"
|
|
8249
8249
|
});
|
|
8250
|
-
/** @deprecated "useCopilotChatHeadless_c" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state. Run `npx
|
|
8250
|
+
/** @deprecated "useCopilotChatHeadless_c" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8251
8251
|
const useCopilotChatHeadless_c = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8252
8252
|
name: "useCopilotChatHeadless_c",
|
|
8253
8253
|
use: "Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state.",
|
|
8254
8254
|
docs: "/migrate/v2#hook-mapping"
|
|
8255
8255
|
});
|
|
8256
|
-
/** @deprecated "useCopilotChatInternal" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state. Run `npx
|
|
8256
|
+
/** @deprecated "useCopilotChatInternal" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8257
8257
|
const useCopilotChatInternal = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8258
8258
|
name: "useCopilotChatInternal",
|
|
8259
8259
|
use: "Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state.",
|
|
8260
8260
|
docs: "/migrate/v2#hook-mapping"
|
|
8261
8261
|
});
|
|
8262
|
-
/** @deprecated "useCopilotChatSuggestions" was removed in CopilotKit 2.0. Use useConfigureSuggestions from @copilotkit/react-core. Run `npx
|
|
8262
|
+
/** @deprecated "useCopilotChatSuggestions" was removed in CopilotKit 2.0. Use useConfigureSuggestions from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8263
8263
|
const useCopilotChatSuggestions = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8264
8264
|
name: "useCopilotChatSuggestions",
|
|
8265
8265
|
use: "Use useConfigureSuggestions from @copilotkit/react-core.",
|
|
8266
8266
|
docs: "/migrate/v2#hook-mapping"
|
|
8267
8267
|
});
|
|
8268
|
-
/** @deprecated "useCopilotContext" was removed in CopilotKit 2.0. Use useCopilotKit from @copilotkit/react-core. It returns the CopilotKit core. Run `npx
|
|
8268
|
+
/** @deprecated "useCopilotContext" was removed in CopilotKit 2.0. Use useCopilotKit from @copilotkit/react-core. It returns the CopilotKit core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/programmatic-control#sending-a-message-from-code */
|
|
8269
8269
|
const useCopilotContext = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8270
8270
|
name: "useCopilotContext",
|
|
8271
8271
|
use: "Use useCopilotKit from @copilotkit/react-core. It returns the CopilotKit core.",
|
|
8272
8272
|
docs: "/programmatic-control#sending-a-message-from-code"
|
|
8273
8273
|
});
|
|
8274
|
-
/** @deprecated "useCopilotMessagesContext" was removed in CopilotKit 2.0. Read agent.messages from useAgent from @copilotkit/react-core. Run `npx
|
|
8274
|
+
/** @deprecated "useCopilotMessagesContext" was removed in CopilotKit 2.0. Read agent.messages from useAgent from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8275
8275
|
const useCopilotMessagesContext = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8276
8276
|
name: "useCopilotMessagesContext",
|
|
8277
8277
|
use: "Read agent.messages from useAgent from @copilotkit/react-core.",
|
|
8278
8278
|
docs: "/migrate/v2#hook-mapping"
|
|
8279
8279
|
});
|
|
8280
|
-
/** @deprecated "useCopilotReadable" was removed in CopilotKit 2.0. Use useAgentContext from @copilotkit/react-core. Run `npx
|
|
8280
|
+
/** @deprecated "useCopilotReadable" was removed in CopilotKit 2.0. Use useAgentContext from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8281
8281
|
const useCopilotReadable = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8282
8282
|
name: "useCopilotReadable",
|
|
8283
8283
|
use: "Use useAgentContext from @copilotkit/react-core.",
|
|
8284
8284
|
docs: "/migrate/v2#hook-mapping"
|
|
8285
8285
|
});
|
|
8286
|
-
/** @deprecated "useCopilotRuntimeClient" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL runtime client. Use useAgent or useCopilotKit from @copilotkit/react-core. Run `npx
|
|
8286
|
+
/** @deprecated "useCopilotRuntimeClient" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL runtime client. Use useAgent or useCopilotKit from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
|
|
8287
8287
|
const useCopilotRuntimeClient = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8288
8288
|
name: "useCopilotRuntimeClient",
|
|
8289
8289
|
use: "CopilotKit 2.0 has no GraphQL runtime client. Use useAgent or useCopilotKit from @copilotkit/react-core.",
|
|
8290
8290
|
docs: "/migrate/v2#update-the-runtime"
|
|
8291
8291
|
});
|
|
8292
|
-
/** @deprecated "useDefaultTool" was removed in CopilotKit 2.0. Use useDefaultRenderTool from @copilotkit/react-core. Run `npx
|
|
8292
|
+
/** @deprecated "useDefaultTool" was removed in CopilotKit 2.0. Use useDefaultRenderTool from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8293
8293
|
const useDefaultTool = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8294
8294
|
name: "useDefaultTool",
|
|
8295
8295
|
use: "Use useDefaultRenderTool from @copilotkit/react-core.",
|
|
8296
8296
|
docs: "/migrate/v2#hook-mapping"
|
|
8297
8297
|
});
|
|
8298
|
-
/** @deprecated "useLangGraphInterrupt" was removed in CopilotKit 2.0. Use useInterrupt from @copilotkit/react-core. Run `npx
|
|
8298
|
+
/** @deprecated "useLangGraphInterrupt" was removed in CopilotKit 2.0. Use useInterrupt from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8299
8299
|
const useLangGraphInterrupt = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8300
8300
|
name: "useLangGraphInterrupt",
|
|
8301
8301
|
use: "Use useInterrupt from @copilotkit/react-core.",
|
|
8302
8302
|
docs: "/migrate/v2#hook-mapping"
|
|
8303
8303
|
});
|
|
8304
|
-
/** @deprecated "useLazyToolRenderer" was removed in CopilotKit 2.0. Use useRenderToolCall from @copilotkit/react-core. It returns a function that renders a tool call. Run `npx
|
|
8304
|
+
/** @deprecated "useLazyToolRenderer" was removed in CopilotKit 2.0. Use useRenderToolCall from @copilotkit/react-core. It returns a function that renders a tool call. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#gotchas */
|
|
8305
8305
|
const useLazyToolRenderer = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8306
8306
|
name: "useLazyToolRenderer",
|
|
8307
8307
|
use: "Use useRenderToolCall from @copilotkit/react-core. It returns a function that renders a tool call.",
|
|
8308
8308
|
docs: "/migrate/v2#gotchas"
|
|
8309
8309
|
});
|
|
8310
|
-
/** @deprecated "useLearningContainers" was removed in CopilotKit 2.0. Set getLearningContainerId on CopilotKitIntelligence from @copilotkit/runtime. Run `npx
|
|
8310
|
+
/** @deprecated "useLearningContainers" was removed in CopilotKit 2.0. Set getLearningContainerId on CopilotKitIntelligence from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/chat-2.0#removed-exports */
|
|
8311
8311
|
const useLearningContainers = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8312
8312
|
name: "useLearningContainers",
|
|
8313
8313
|
use: "Set getLearningContainerId on CopilotKitIntelligence from @copilotkit/runtime.",
|
|
8314
8314
|
docs: "/migrate/chat-2.0#removed-exports"
|
|
8315
8315
|
});
|
|
8316
|
-
/** @deprecated "useLearningContainersInCurrentThread" was removed in CopilotKit 2.0. Set getLearningContainerId on CopilotKitIntelligence from @copilotkit/runtime. Run `npx
|
|
8316
|
+
/** @deprecated "useLearningContainersInCurrentThread" was removed in CopilotKit 2.0. Set getLearningContainerId on CopilotKitIntelligence from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/chat-2.0#removed-exports */
|
|
8317
8317
|
const useLearningContainersInCurrentThread = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8318
8318
|
name: "useLearningContainersInCurrentThread",
|
|
8319
8319
|
use: "Set getLearningContainerId on CopilotKitIntelligence from @copilotkit/runtime.",
|
|
8320
8320
|
docs: "/migrate/chat-2.0#removed-exports"
|
|
8321
8321
|
});
|
|
8322
|
-
/** @deprecated "useMakeCopilotDocumentReadable" was removed in CopilotKit 2.0. Use useAgentContext from @copilotkit/react-core, with the document text as the value. Run `npx
|
|
8322
|
+
/** @deprecated "useMakeCopilotDocumentReadable" was removed in CopilotKit 2.0. Use useAgentContext from @copilotkit/react-core, with the document text as the value. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
|
|
8323
8323
|
const useMakeCopilotDocumentReadable = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
|
|
8324
8324
|
name: "useMakeCopilotDocumentReadable",
|
|
8325
8325
|
use: "Use useAgentContext from @copilotkit/react-core, with the document text as the value.",
|