@copilotkit/runtime 2.0.0-rc.64 → 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/removed-exports.cjs +52 -52
- package/dist/removed-exports.cjs.map +1 -1
- package/dist/removed-exports.d.cts +169 -169
- package/dist/removed-exports.d.mts +169 -169
- package/dist/removed-exports.mjs +52 -52
- package/dist/removed-exports.mjs.map +1 -1
- package/dist/runtime/core/package-info.cjs +1 -1
- package/dist/runtime/core/package-info.mjs +1 -1
- package/dist/runtime/core/runtime.cjs +76 -0
- package/dist/runtime/core/runtime.cjs.map +1 -1
- package/dist/runtime/core/runtime.d.cts +60 -0
- package/dist/runtime/core/runtime.d.cts.map +1 -1
- package/dist/runtime/core/runtime.d.mts +60 -0
- package/dist/runtime/core/runtime.d.mts.map +1 -1
- package/dist/runtime/core/runtime.mjs +77 -1
- package/dist/runtime/core/runtime.mjs.map +1 -1
- package/dist/v2/index.cjs +5 -5
- package/dist/v2/index.cjs.map +1 -1
- package/dist/v2/index.d.cts +24 -24
- package/dist/v2/index.d.mts +24 -24
- package/dist/v2/index.mjs +5 -5
- package/dist/v2/index.mjs.map +1 -1
- package/dist/v2/node.cjs +4 -4
- package/dist/v2/node.cjs.map +1 -1
- package/dist/v2/node.d.cts +5 -5
- package/dist/v2/node.d.mts +5 -5
- package/dist/v2/node.mjs +4 -4
- package/dist/v2/node.mjs.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removed-exports.mjs","names":[],"sources":["../src/removed-exports.ts"],"sourcesContent":["// GENERATED FILE — DO NOT EDIT BY HAND.\n// Regenerate with: pnpm exec tsx scripts/deprecations/removed-exports.mts generate\n//\n// Stand-ins for the CopilotKit 1.x exports that 2.0 removed from @copilotkit/runtime.\n// Calling, constructing, or rendering one throws a CopilotKitRemovedApiError,\n// and importing one does not. TypeScript fails on the same code with the same\n// message. The replacements are in packages/shared/src/removed-exports-table.ts.\n\nimport { removedApi } from \"@copilotkit/shared\";\nimport type { RemovedType } from \"@copilotkit/shared\";\n\n/** @deprecated \"AnthropicAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const AnthropicAdapter = /*#__PURE__*/ removedApi({\n name: \"AnthropicAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"AnthropicAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type AnthropicAdapter = typeof AnthropicAdapter;\n\n/** @deprecated \"AnthropicAdapterParams\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type AnthropicAdapterParams = RemovedType<\n \"AnthropicAdapterParams\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"AnthropicPromptCachingConfig\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type AnthropicPromptCachingConfig = RemovedType<\n \"AnthropicPromptCachingConfig\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"BasicAgent\" was removed in CopilotKit 2.0. Use BuiltInAgent from @copilotkit/runtime/agent. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/removed-apis-2.0#runtime */\nexport const BasicAgent = /*#__PURE__*/ removedApi({\n name: \"BasicAgent\",\n use: \"Use BuiltInAgent from @copilotkit/runtime/agent.\",\n docs: \"/migrate/removed-apis-2.0#runtime\",\n});\n/** @deprecated \"BasicAgent\" was removed in CopilotKit 2.0. Use BuiltInAgent from @copilotkit/runtime/agent. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/removed-apis-2.0#runtime */\nexport type BasicAgent = typeof BasicAgent;\n\n/** @deprecated \"BasicAgentConfiguration\" was removed in CopilotKit 2.0. Use BuiltInAgentClassicConfig from @copilotkit/runtime/agent. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/removed-apis-2.0#runtime */\nexport type BasicAgentConfiguration = RemovedType<\n \"BasicAgentConfiguration\",\n \"Use BuiltInAgentClassicConfig from @copilotkit/runtime/agent.\",\n \"/migrate/removed-apis-2.0#runtime\"\n>;\n\n/** @deprecated \"BedrockAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const BedrockAdapter = /*#__PURE__*/ removedApi({\n name: \"BedrockAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"BedrockAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type BedrockAdapter = typeof BedrockAdapter;\n\n/** @deprecated \"BedrockAdapterParams\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type BedrockAdapterParams = RemovedType<\n \"BedrockAdapterParams\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"buildSchema\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const buildSchema = /*#__PURE__*/ removedApi({\n name: \"buildSchema\",\n use: \"CopilotKit 2.0 has no GraphQL endpoint. Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime.\",\n docs: \"/migrate/v2#update-the-runtime\",\n});\n\n/** @deprecated \"BuiltInAgentModel\" was removed in CopilotKit 2.0. Use AnyTextAdapter from @tanstack/ai: the model of a BuiltInAgent is a TanStack AI text adapter. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport type BuiltInAgentModel = RemovedType<\n \"BuiltInAgentModel\",\n \"Use AnyTextAdapter from @tanstack/ai: the model of a BuiltInAgent is a TanStack AI text adapter.\",\n \"/migrate/runtime-2.0#built-in-agent\"\n>;\n\n/** @deprecated \"classifyModelSpec\" was removed in CopilotKit 2.0. Pass an adapter as model, for example anthropicText(\"claude-sonnet-4-6\"). To switch models from the frontend, set the resolveModel option of the BuiltInAgent. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec */\nexport const classifyModelSpec = /*#__PURE__*/ removedApi({\n name: \"classifyModelSpec\",\n use: 'Pass an adapter as model, for example anthropicText(\"claude-sonnet-4-6\"). To switch models from the frontend, set the resolveModel option of the BuiltInAgent.',\n docs: \"/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec\",\n});\n\n/** @deprecated \"CommonConfig\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type CommonConfig = RemovedType<\n \"CommonConfig\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"convertJsonSchemaToZodSchema\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport const convertJsonSchemaToZodSchema = /*#__PURE__*/ removedApi({\n name: \"convertJsonSchemaToZodSchema\",\n use: \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n docs: \"/migrate/runtime-2.0#built-in-agent\",\n});\n\n/** @deprecated \"convertMCPToolsToActions\" was removed in CopilotKit 2.0. Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport const convertMCPToolsToActions = /*#__PURE__*/ removedApi({\n name: \"convertMCPToolsToActions\",\n use: \"Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }.\",\n docs: \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\",\n});\n\n/** @deprecated \"convertMessagesToVercelAISDKMessages\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport const convertMessagesToVercelAISDKMessages = /*#__PURE__*/ removedApi({\n name: \"convertMessagesToVercelAISDKMessages\",\n use: \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n docs: \"/migrate/runtime-2.0#built-in-agent\",\n});\n\n/** @deprecated \"convertServiceAdapterError\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const convertServiceAdapterError = /*#__PURE__*/ removedApi({\n name: \"convertServiceAdapterError\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n\n/** @deprecated \"convertToolDefinitionsToVercelAITools\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport const convertToolDefinitionsToVercelAITools = /*#__PURE__*/ removedApi({\n name: \"convertToolDefinitionsToVercelAITools\",\n use: \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n docs: \"/migrate/runtime-2.0#built-in-agent\",\n});\n\n/** @deprecated \"convertToolsToVercelAITools\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport const convertToolsToVercelAITools = /*#__PURE__*/ removedApi({\n name: \"convertToolsToVercelAITools\",\n use: \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n docs: \"/migrate/runtime-2.0#built-in-agent\",\n});\n\n/** @deprecated \"CopilotEndpointCorsConfig\" was removed in CopilotKit 2.0. Use CopilotKitCorsConfig from @copilotkit/runtime, the cors option of createCopilotKitRuntimeHandler. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#cors-and-lifecycle */\nexport type CopilotEndpointCorsConfig = RemovedType<\n \"CopilotEndpointCorsConfig\",\n \"Use CopilotKitCorsConfig from @copilotkit/runtime, the cors option of createCopilotKitRuntimeHandler.\",\n \"/migrate/runtime-2.0#cors-and-lifecycle\"\n>;\n\n/** @deprecated \"CopilotExpressEndpointParams\" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport type CopilotExpressEndpointParams = RemovedType<\n \"CopilotExpressEndpointParams\",\n \"Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.\",\n \"/migrate/runtime-2.0#node-and-express\"\n>;\n\n/** @deprecated \"CopilotExpressRouter\" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport type CopilotExpressRouter = RemovedType<\n \"CopilotExpressRouter\",\n \"Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.\",\n \"/migrate/runtime-2.0#node-and-express\"\n>;\n\n/** @deprecated \"CopilotHonoApp\" was removed in CopilotKit 2.0. Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */\nexport type CopilotHonoApp = RemovedType<\n \"CopilotHonoApp\",\n \"Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw.\",\n \"/migrate/runtime-2.0#fetch-and-nextjs\"\n>;\n\n/** @deprecated \"copilotKitEndpoint\" was removed in CopilotKit 2.0. CopilotKitRuntime has no remoteEndpoints. Serve each Python agent over AG-UI, and register it in agents. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#python-sdk-endpoint */\nexport const copilotKitEndpoint = /*#__PURE__*/ removedApi({\n name: \"copilotKitEndpoint\",\n use: \"CopilotKitRuntime has no remoteEndpoints. Serve each Python agent over AG-UI, and register it in agents.\",\n docs: \"/migrate/agents-2.0#python-sdk-endpoint\",\n});\n\n/** @deprecated \"CopilotKitRequestHandler\" was removed in CopilotKit 2.0. Use CopilotKitRuntimeFetchHandler from @copilotkit/runtime. It takes the Request directly. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/removed-apis-2.0#runtime */\nexport type CopilotKitRequestHandler = RemovedType<\n \"CopilotKitRequestHandler\",\n \"Use CopilotKitRuntimeFetchHandler from @copilotkit/runtime. It takes the Request directly.\",\n \"/migrate/removed-apis-2.0#runtime\"\n>;\n\n/** @deprecated \"CopilotRequestContextProperties\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. Read the request in the hooks option of createCopilotKitRuntimeHandler (CopilotKitRuntimeHooks from @copilotkit/runtime). Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type CopilotRequestContextProperties = RemovedType<\n \"CopilotRequestContextProperties\",\n \"CopilotKit 2.0 has no GraphQL endpoint. Read the request in the hooks option of createCopilotKitRuntimeHandler (CopilotKitRuntimeHooks from @copilotkit/runtime).\",\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"CopilotRuntime\" was removed in CopilotKit 2.0. Use CopilotKitRuntime from @copilotkit/runtime, and pass each agent in agents. A model runs in a BuiltInAgent from @copilotkit/runtime/agent, so serviceAdapter, remoteEndpoints, and actions are gone. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const CopilotRuntime = /*#__PURE__*/ removedApi({\n name: \"CopilotRuntime\",\n use: \"Use CopilotKitRuntime from @copilotkit/runtime, and pass each agent in agents. A model runs in a BuiltInAgent from @copilotkit/runtime/agent, so serviceAdapter, remoteEndpoints, and actions are gone.\",\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"CopilotRuntime\" was removed in CopilotKit 2.0. Use CopilotKitRuntime from @copilotkit/runtime, and pass each agent in agents. A model runs in a BuiltInAgent from @copilotkit/runtime/agent, so serviceAdapter, remoteEndpoints, and actions are gone. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type CopilotRuntime<_T1 = unknown> = typeof CopilotRuntime;\n\n/** @deprecated \"CopilotRuntimeChatCompletionRequest\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type CopilotRuntimeChatCompletionRequest = RemovedType<\n \"CopilotRuntimeChatCompletionRequest\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"CopilotRuntimeChatCompletionResponse\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type CopilotRuntimeChatCompletionResponse = RemovedType<\n \"CopilotRuntimeChatCompletionResponse\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"CopilotRuntimeConstructorParams_BASE\" was removed in CopilotKit 2.0. Use CopilotKitRuntimeOptions from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type CopilotRuntimeConstructorParams_BASE<_T1 = unknown> = RemovedType<\n \"CopilotRuntimeConstructorParams_BASE\",\n \"Use CopilotKitRuntimeOptions from @copilotkit/runtime.\",\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"CopilotRuntimeLogger\" was removed in CopilotKit 2.0. Use CopilotKitRuntimeLogger from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#renamed-runtime-exports */\nexport type CopilotRuntimeLogger = RemovedType<\n \"CopilotRuntimeLogger\",\n \"Use CopilotKitRuntimeLogger from @copilotkit/runtime.\",\n \"/migrate/runtime-2.0#renamed-runtime-exports\"\n>;\n\n/** @deprecated \"copilotRuntimeNestEndpoint\" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport const copilotRuntimeNestEndpoint = /*#__PURE__*/ removedApi({\n name: \"copilotRuntimeNestEndpoint\",\n use: \"Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.\",\n docs: \"/migrate/runtime-2.0#node-and-express\",\n});\n\n/** @deprecated \"copilotRuntimeNextJSAppRouterEndpoint\" was removed in CopilotKit 2.0. Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime, and export the handler as GET and POST from app/api/copilotkit/[[...slug]]/route.ts. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */\nexport const copilotRuntimeNextJSAppRouterEndpoint = /*#__PURE__*/ removedApi({\n name: \"copilotRuntimeNextJSAppRouterEndpoint\",\n use: \"Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime, and export the handler as GET and POST from app/api/copilotkit/[[...slug]]/route.ts.\",\n docs: \"/migrate/runtime-2.0#fetch-and-nextjs\",\n});\n\n/** @deprecated \"copilotRuntimeNextJSPagesRouterEndpoint\" was removed in CopilotKit 2.0. Serve the runtime with createCopilotKitNodeHandler from @copilotkit/runtime/node. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport const copilotRuntimeNextJSPagesRouterEndpoint = /*#__PURE__*/ removedApi(\n {\n name: \"copilotRuntimeNextJSPagesRouterEndpoint\",\n use: \"Serve the runtime with createCopilotKitNodeHandler from @copilotkit/runtime/node.\",\n docs: \"/migrate/runtime-2.0#node-and-express\",\n },\n);\n\n/** @deprecated \"copilotRuntimeNodeExpressEndpoint\" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport const copilotRuntimeNodeExpressEndpoint = /*#__PURE__*/ removedApi({\n name: \"copilotRuntimeNodeExpressEndpoint\",\n use: \"Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.\",\n docs: \"/migrate/runtime-2.0#node-and-express\",\n});\n\n/** @deprecated \"copilotRuntimeNodeHttpEndpoint\" was removed in CopilotKit 2.0. Serve the runtime with createCopilotKitNodeListener from @copilotkit/runtime/node. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport const copilotRuntimeNodeHttpEndpoint = /*#__PURE__*/ removedApi({\n name: \"copilotRuntimeNodeHttpEndpoint\",\n use: \"Serve the runtime with createCopilotKitNodeListener from @copilotkit/runtime/node.\",\n docs: \"/migrate/runtime-2.0#node-and-express\",\n});\n\n/** @deprecated \"CopilotServiceAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type CopilotServiceAdapter = RemovedType<\n \"CopilotServiceAdapter\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"createCopilotEndpoint\" was removed in CopilotKit 2.0. Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */\nexport const createCopilotEndpoint = /*#__PURE__*/ removedApi({\n name: \"createCopilotEndpoint\",\n use: \"Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw.\",\n docs: \"/migrate/runtime-2.0#fetch-and-nextjs\",\n});\n\n/** @deprecated \"createCopilotEndpointExpress\" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport const createCopilotEndpointExpress = /*#__PURE__*/ removedApi({\n name: \"createCopilotEndpointExpress\",\n use: \"Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.\",\n docs: \"/migrate/runtime-2.0#node-and-express\",\n});\n\n/** @deprecated \"createCopilotEndpointSingleRoute\" was removed in CopilotKit 2.0. Use createCopilotKitRuntimeHandler from @copilotkit/runtime with mode: \"single-route\". Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#single-route-endpoints */\nexport const createCopilotEndpointSingleRoute = /*#__PURE__*/ removedApi({\n name: \"createCopilotEndpointSingleRoute\",\n use: 'Use createCopilotKitRuntimeHandler from @copilotkit/runtime with mode: \"single-route\".',\n docs: \"/migrate/runtime-2.0#single-route-endpoints\",\n});\n\n/** @deprecated \"createCopilotEndpointSingleRouteExpress\" was removed in CopilotKit 2.0. Use createCopilotKitNodeListener from @copilotkit/runtime/node with mode: \"single-route\". Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#single-route-endpoints */\nexport const createCopilotEndpointSingleRouteExpress = /*#__PURE__*/ removedApi(\n {\n name: \"createCopilotEndpointSingleRouteExpress\",\n use: 'Use createCopilotKitNodeListener from @copilotkit/runtime/node with mode: \"single-route\".',\n docs: \"/migrate/runtime-2.0#single-route-endpoints\",\n },\n);\n\n/** @deprecated \"createCopilotExpressHandler\" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport const createCopilotExpressHandler = /*#__PURE__*/ removedApi({\n name: \"createCopilotExpressHandler\",\n use: \"Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.\",\n docs: \"/migrate/runtime-2.0#node-and-express\",\n});\n\n/** @deprecated \"createCopilotHonoHandler\" was removed in CopilotKit 2.0. Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */\nexport const createCopilotHonoHandler = /*#__PURE__*/ removedApi({\n name: \"createCopilotHonoHandler\",\n use: \"Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw.\",\n docs: \"/migrate/runtime-2.0#fetch-and-nextjs\",\n});\n\n/** @deprecated \"CreateCopilotRuntimeServerOptions\" was removed in CopilotKit 2.0. Use CopilotKitRuntimeHandlerOptions from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */\nexport type CreateCopilotRuntimeServerOptions = RemovedType<\n \"CreateCopilotRuntimeServerOptions\",\n \"Use CopilotKitRuntimeHandlerOptions from @copilotkit/runtime.\",\n \"/migrate/runtime-2.0#fetch-and-nextjs\"\n>;\n\n/** @deprecated \"createLogger\" was removed in CopilotKit 2.0. Pass a logger (CopilotKitRuntimeLogger) to CopilotKitRuntime from @copilotkit/runtime, or set debug: true for debug logs. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#debug-logs */\nexport const createLogger = /*#__PURE__*/ removedApi({\n name: \"createLogger\",\n use: \"Pass a logger (CopilotKitRuntimeLogger) to CopilotKitRuntime from @copilotkit/runtime, or set debug: true for debug logs.\",\n docs: \"/migrate/runtime-2.0#debug-logs\",\n});\n\n/** @deprecated \"createSafeUrlDownload\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport const createSafeUrlDownload = /*#__PURE__*/ removedApi({\n name: \"createSafeUrlDownload\",\n use: \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n docs: \"/migrate/runtime-2.0#built-in-agent\",\n});\n\n/** @deprecated \"CreateSafeUrlDownloadOptions\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport type CreateSafeUrlDownloadOptions = RemovedType<\n \"CreateSafeUrlDownloadOptions\",\n \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n \"/migrate/runtime-2.0#built-in-agent\"\n>;\n\n/** @deprecated \"CustomEventNames\" was removed in CopilotKit 2.0. Import CustomEventNames from @ag-ui/langgraph. Its members have new names and values. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#customeventnames */\nexport type CustomEventNames = RemovedType<\n \"CustomEventNames\",\n \"Import CustomEventNames from @ag-ui/langgraph. Its members have new names and values.\",\n \"/migrate/agents-2.0#customeventnames\"\n>;\n\n/** @deprecated \"EmptyAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const EmptyAdapter = /*#__PURE__*/ removedApi({\n name: \"EmptyAdapter\",\n use: \"CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime.\",\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"EmptyAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type EmptyAdapter = typeof EmptyAdapter;\n\n/** @deprecated \"ExperimentalEmptyAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const ExperimentalEmptyAdapter = /*#__PURE__*/ removedApi({\n name: \"ExperimentalEmptyAdapter\",\n use: \"CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime.\",\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"ExperimentalEmptyAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type ExperimentalEmptyAdapter = typeof ExperimentalEmptyAdapter;\n\n/** @deprecated \"ExperimentalOllamaAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const ExperimentalOllamaAdapter = /*#__PURE__*/ removedApi({\n name: \"ExperimentalOllamaAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"ExperimentalOllamaAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type ExperimentalOllamaAdapter = typeof ExperimentalOllamaAdapter;\n\n/** @deprecated \"extractParametersFromSchema\" was removed in CopilotKit 2.0. Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport const extractParametersFromSchema = /*#__PURE__*/ removedApi({\n name: \"extractParametersFromSchema\",\n use: \"Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }.\",\n docs: \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\",\n});\n\n/** @deprecated \"FilterThinkingTextBuffer\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const FilterThinkingTextBuffer = /*#__PURE__*/ removedApi({\n name: \"FilterThinkingTextBuffer\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"FilterThinkingTextBuffer\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type FilterThinkingTextBuffer = typeof FilterThinkingTextBuffer;\n\n/** @deprecated \"generateMcpToolInstructions\" was removed in CopilotKit 2.0. Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport const generateMcpToolInstructions = /*#__PURE__*/ removedApi({\n name: \"generateMcpToolInstructions\",\n use: \"Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }.\",\n docs: \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\",\n});\n\n/** @deprecated \"getCommonConfig\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const getCommonConfig = /*#__PURE__*/ removedApi({\n name: \"getCommonConfig\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n\n/** @deprecated \"getSdkClientOptions\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const getSdkClientOptions = /*#__PURE__*/ removedApi({\n name: \"getSdkClientOptions\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n\n/** @deprecated \"GoogleGenerativeAIAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const GoogleGenerativeAIAdapter = /*#__PURE__*/ removedApi({\n name: \"GoogleGenerativeAIAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"GoogleGenerativeAIAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type GoogleGenerativeAIAdapter = typeof GoogleGenerativeAIAdapter;\n\n/** @deprecated \"GraphQLContext\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. Read the request in the hooks option of createCopilotKitRuntimeHandler (CopilotKitRuntimeHooks from @copilotkit/runtime). Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type GraphQLContext = RemovedType<\n \"GraphQLContext\",\n \"CopilotKit 2.0 has no GraphQL endpoint. Read the request in the hooks option of createCopilotKitRuntimeHandler (CopilotKitRuntimeHooks from @copilotkit/runtime).\",\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"GraphQLRequestContext\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. Read the request in the hooks option of createCopilotKitRuntimeHandler (CopilotKitRuntimeHooks from @copilotkit/runtime). Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type GraphQLRequestContext = RemovedType<\n \"GraphQLRequestContext\",\n \"CopilotKit 2.0 has no GraphQL endpoint. Read the request in the hooks option of createCopilotKitRuntimeHandler (CopilotKitRuntimeHooks from @copilotkit/runtime).\",\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"GroqAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const GroqAdapter = /*#__PURE__*/ removedApi({\n name: \"GroqAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"GroqAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type GroqAdapter = typeof GroqAdapter;\n\n/** @deprecated \"GroqAdapterParams\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type GroqAdapterParams = RemovedType<\n \"GroqAdapterParams\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"GuardrailsValidationFailureResponse\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const GuardrailsValidationFailureResponse = /*#__PURE__*/ removedApi({\n name: \"GuardrailsValidationFailureResponse\",\n use: \"CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event.\",\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"GuardrailsValidationFailureResponse\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type GuardrailsValidationFailureResponse =\n typeof GuardrailsValidationFailureResponse;\n\n/** @deprecated \"isA2UIEnabled\" was removed in CopilotKit 2.0. The runtime a2ui option is now generativeUI: { a2uiVersion: \"0.9\" }. Read generativeUI on your runtime options. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/generative-ui-2.0#a2ui-v09-renderer */\nexport const isA2UIEnabled = /*#__PURE__*/ removedApi({\n name: \"isA2UIEnabled\",\n use: 'The runtime a2ui option is now generativeUI: { a2uiVersion: \"0.9\" }. Read generativeUI on your runtime options.',\n docs: \"/migrate/generative-ui-2.0#a2ui-v09-renderer\",\n});\n\n/** @deprecated \"LangChainAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const LangChainAdapter = /*#__PURE__*/ removedApi({\n name: \"LangChainAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"LangChainAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type LangChainAdapter = typeof LangChainAdapter;\n\n/** @deprecated \"LangGraphAgent\" was removed in CopilotKit 2.0. Import LangGraphAgent from @ag-ui/langgraph. The constructor options are the same. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */\nexport const LangGraphAgent = /*#__PURE__*/ removedApi({\n name: \"LangGraphAgent\",\n use: \"Import LangGraphAgent from @ag-ui/langgraph. The constructor options are the same.\",\n docs: \"/migrate/agents-2.0#langgraph-agents\",\n});\n/** @deprecated \"LangGraphAgent\" was removed in CopilotKit 2.0. Import LangGraphAgent from @ag-ui/langgraph. The constructor options are the same. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */\nexport type LangGraphAgent = typeof LangGraphAgent;\n\n/** @deprecated \"LangGraphHttpAgent\" was removed in CopilotKit 2.0. Import LangGraphHttpAgent from @ag-ui/langgraph. The constructor options are the same. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */\nexport const LangGraphHttpAgent = /*#__PURE__*/ removedApi({\n name: \"LangGraphHttpAgent\",\n use: \"Import LangGraphHttpAgent from @ag-ui/langgraph. The constructor options are the same.\",\n docs: \"/migrate/agents-2.0#langgraph-agents\",\n});\n/** @deprecated \"LangGraphHttpAgent\" was removed in CopilotKit 2.0. Import LangGraphHttpAgent from @ag-ui/langgraph. The constructor options are the same. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */\nexport type LangGraphHttpAgent = typeof LangGraphHttpAgent;\n\n/** @deprecated \"langGraphPlatformEndpoint\" was removed in CopilotKit 2.0. CopilotKitRuntime has no remoteEndpoints. Create a LangGraphAgent from @ag-ui/langgraph for each agent, and pass it in agents. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-platform */\nexport const langGraphPlatformEndpoint = /*#__PURE__*/ removedApi({\n name: \"langGraphPlatformEndpoint\",\n use: \"CopilotKitRuntime has no remoteEndpoints. Create a LangGraphAgent from @ag-ui/langgraph for each agent, and pass it in agents.\",\n docs: \"/migrate/agents-2.0#langgraph-platform\",\n});\n\n/** @deprecated \"LogLevel\" was removed in CopilotKit 2.0. Pass a logger (CopilotKitRuntimeLogger) to CopilotKitRuntime from @copilotkit/runtime, or set debug: true for debug logs. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#debug-logs */\nexport type LogLevel = RemovedType<\n \"LogLevel\",\n \"Pass a logger (CopilotKitRuntimeLogger) to CopilotKitRuntime from @copilotkit/runtime, or set debug: true for debug logs.\",\n \"/migrate/runtime-2.0#debug-logs\"\n>;\n\n/** @deprecated \"MCPClient\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPClient = RemovedType<\n \"MCPClient\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MCPClientConfig\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPClientConfig = RemovedType<\n \"MCPClientConfig\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MCPClientConfigHTTP\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPClientConfigHTTP = RemovedType<\n \"MCPClientConfigHTTP\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MCPClientConfigSSE\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPClientConfigSSE = RemovedType<\n \"MCPClientConfigSSE\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MCPClientProvider\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPClientProvider = RemovedType<\n \"MCPClientProvider\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MCPEndpointConfig\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPEndpointConfig = RemovedType<\n \"MCPEndpointConfig\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MCPTool\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPTool = RemovedType<\n \"MCPTool\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MCPTransport\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPTransport = RemovedType<\n \"MCPTransport\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MessageConversionOptions\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport type MessageConversionOptions = RemovedType<\n \"MessageConversionOptions\",\n \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n \"/migrate/runtime-2.0#built-in-agent\"\n>;\n\n/** @deprecated \"MessageStreamInterruptedResponse\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const MessageStreamInterruptedResponse = /*#__PURE__*/ removedApi({\n name: \"MessageStreamInterruptedResponse\",\n use: \"CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event.\",\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"MessageStreamInterruptedResponse\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type MessageStreamInterruptedResponse =\n typeof MessageStreamInterruptedResponse;\n\n/** @deprecated \"ModelSpecifier\" was removed in CopilotKit 2.0. Use AnyTextAdapter from @tanstack/ai: the model of a BuiltInAgent is a TanStack AI text adapter. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport type ModelSpecifier = RemovedType<\n \"ModelSpecifier\",\n \"Use AnyTextAdapter from @tanstack/ai: the model of a BuiltInAgent is a TanStack AI text adapter.\",\n \"/migrate/runtime-2.0#built-in-agent\"\n>;\n\n/** @deprecated \"OpenAIAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const OpenAIAdapter = /*#__PURE__*/ removedApi({\n name: \"OpenAIAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"OpenAIAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type OpenAIAdapter = typeof OpenAIAdapter;\n\n/** @deprecated \"OpenAIAdapterParams\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type OpenAIAdapterParams = RemovedType<\n \"OpenAIAdapterParams\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"OpenAIAssistantAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const OpenAIAssistantAdapter = /*#__PURE__*/ removedApi({\n name: \"OpenAIAssistantAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"OpenAIAssistantAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type OpenAIAssistantAdapter = typeof OpenAIAssistantAdapter;\n\n/** @deprecated \"OpenAIAssistantAdapterParams\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type OpenAIAssistantAdapterParams = RemovedType<\n \"OpenAIAssistantAdapterParams\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"PredictStateTool\" was removed in CopilotKit 2.0. Import PredictStateTool from @ag-ui/langgraph. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */\nexport type PredictStateTool = RemovedType<\n \"PredictStateTool\",\n \"Import PredictStateTool from @ag-ui/langgraph.\",\n \"/migrate/agents-2.0#langgraph-agents\"\n>;\n\n/** @deprecated \"RemoteChain\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const RemoteChain = /*#__PURE__*/ removedApi({\n name: \"RemoteChain\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"RemoteChain\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type RemoteChain = typeof RemoteChain;\n\n/** @deprecated \"RemoteChainParameters\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type RemoteChainParameters = RemovedType<\n \"RemoteChainParameters\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"resolveEndpointType\" was removed in CopilotKit 2.0. CopilotKitRuntime has no remoteEndpoints. Register each agent in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-platform */\nexport const resolveEndpointType = /*#__PURE__*/ removedApi({\n name: \"resolveEndpointType\",\n use: \"CopilotKitRuntime has no remoteEndpoints. Register each agent in agents on CopilotKitRuntime from @copilotkit/runtime.\",\n docs: \"/migrate/agents-2.0#langgraph-platform\",\n});\n\n/** @deprecated \"resolveModel\" was removed in CopilotKit 2.0. Pass an adapter as model, for example anthropicText(\"claude-sonnet-4-6\"). To switch models from the frontend, set the resolveModel option of the BuiltInAgent. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec */\nexport const resolveModel = /*#__PURE__*/ removedApi({\n name: \"resolveModel\",\n use: 'Pass an adapter as model, for example anthropicText(\"claude-sonnet-4-6\"). To switch models from the frontend, set the resolveModel option of the BuiltInAgent.',\n docs: \"/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec\",\n});\n\n/** @deprecated \"SafeUrlDownloadOptions\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport type SafeUrlDownloadOptions = RemovedType<\n \"SafeUrlDownloadOptions\",\n \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n \"/migrate/runtime-2.0#built-in-agent\"\n>;\n\n/** @deprecated \"SdkClientLike\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type SdkClientLike = RemovedType<\n \"SdkClientLike\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"TelemetryAgentRunner\" was removed in CopilotKit 2.0. Delete the wrapper, and pass your runner as runner on CopilotKitRuntime. The runtime reports telemetry by itself. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/shared-2.0#telemetry-entry-point-removed */\nexport const TelemetryAgentRunner = /*#__PURE__*/ removedApi({\n name: \"TelemetryAgentRunner\",\n use: \"Delete the wrapper, and pass your runner as runner on CopilotKitRuntime. The runtime reports telemetry by itself.\",\n docs: \"/migrate/shared-2.0#telemetry-entry-point-removed\",\n});\n/** @deprecated \"TelemetryAgentRunner\" was removed in CopilotKit 2.0. Delete the wrapper, and pass your runner as runner on CopilotKitRuntime. The runtime reports telemetry by itself. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/shared-2.0#telemetry-entry-point-removed */\nexport type TelemetryAgentRunner = typeof TelemetryAgentRunner;\n\n/** @deprecated \"TelemetryAgentRunnerConfig\" was removed in CopilotKit 2.0. Delete the wrapper, and pass your runner as runner on CopilotKitRuntime. The runtime reports telemetry by itself. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/shared-2.0#telemetry-entry-point-removed */\nexport type TelemetryAgentRunnerConfig = RemovedType<\n \"TelemetryAgentRunnerConfig\",\n \"Delete the wrapper, and pass your runner as runner on CopilotKitRuntime. The runtime reports telemetry by itself.\",\n \"/migrate/shared-2.0#telemetry-entry-point-removed\"\n>;\n\n/** @deprecated \"TextMessageEvents\" was removed in CopilotKit 2.0. Import the AG-UI event types, such as TextMessageStartEvent, from @ag-ui/client. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */\nexport type TextMessageEvents = RemovedType<\n \"TextMessageEvents\",\n \"Import the AG-UI event types, such as TextMessageStartEvent, from @ag-ui/client.\",\n \"/migrate/agents-2.0#langgraph-agents\"\n>;\n\n/** @deprecated \"toFetchCorsConfig\" was removed in CopilotKit 2.0. Pass a CopilotKitCorsConfig as the cors option of createCopilotKitRuntimeHandler from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#cors-and-lifecycle */\nexport const toFetchCorsConfig = /*#__PURE__*/ removedApi({\n name: \"toFetchCorsConfig\",\n use: \"Pass a CopilotKitCorsConfig as the cors option of createCopilotKitRuntimeHandler from @copilotkit/runtime.\",\n docs: \"/migrate/runtime-2.0#cors-and-lifecycle\",\n});\n\n/** @deprecated \"ToolCallEvents\" was removed in CopilotKit 2.0. Import the AG-UI event types, such as ToolCallStartEvent, from @ag-ui/client. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */\nexport type ToolCallEvents = RemovedType<\n \"ToolCallEvents\",\n \"Import the AG-UI event types, such as ToolCallStartEvent, from @ag-ui/client.\",\n \"/migrate/agents-2.0#langgraph-agents\"\n>;\n\n/** @deprecated \"UnifyAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const UnifyAdapter = /*#__PURE__*/ removedApi({\n name: \"UnifyAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"UnifyAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type UnifyAdapter = typeof UnifyAdapter;\n\n/** @deprecated \"UnifyAdapterParams\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type UnifyAdapterParams = RemovedType<\n \"UnifyAdapterParams\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"UnknownErrorResponse\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const UnknownErrorResponse = /*#__PURE__*/ removedApi({\n name: \"UnknownErrorResponse\",\n use: \"CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event.\",\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"UnknownErrorResponse\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type UnknownErrorResponse = typeof UnknownErrorResponse;\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"removed-exports.mjs","names":[],"sources":["../src/removed-exports.ts"],"sourcesContent":["// GENERATED FILE — DO NOT EDIT BY HAND.\n// Regenerate with: pnpm exec tsx scripts/deprecations/removed-exports.mts generate\n//\n// Stand-ins for the CopilotKit 1.x exports that 2.0 removed from @copilotkit/runtime.\n// Calling, constructing, or rendering one throws a CopilotKitRemovedApiError,\n// and importing one does not. TypeScript fails on the same code with the same\n// message. The replacements are in packages/shared/src/removed-exports-table.ts.\n\nimport { removedApi } from \"@copilotkit/shared\";\nimport type { RemovedType } from \"@copilotkit/shared\";\n\n/** @deprecated \"AnthropicAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const AnthropicAdapter = /*#__PURE__*/ removedApi({\n name: \"AnthropicAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"AnthropicAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type AnthropicAdapter = typeof AnthropicAdapter;\n\n/** @deprecated \"AnthropicAdapterParams\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type AnthropicAdapterParams = RemovedType<\n \"AnthropicAdapterParams\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"AnthropicPromptCachingConfig\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type AnthropicPromptCachingConfig = RemovedType<\n \"AnthropicPromptCachingConfig\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"BasicAgent\" was removed in CopilotKit 2.0. Use BuiltInAgent from @copilotkit/runtime/agent. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/removed-apis-2.0#runtime */\nexport const BasicAgent = /*#__PURE__*/ removedApi({\n name: \"BasicAgent\",\n use: \"Use BuiltInAgent from @copilotkit/runtime/agent.\",\n docs: \"/migrate/removed-apis-2.0#runtime\",\n});\n/** @deprecated \"BasicAgent\" was removed in CopilotKit 2.0. Use BuiltInAgent from @copilotkit/runtime/agent. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/removed-apis-2.0#runtime */\nexport type BasicAgent = typeof BasicAgent;\n\n/** @deprecated \"BasicAgentConfiguration\" was removed in CopilotKit 2.0. Use BuiltInAgentClassicConfig from @copilotkit/runtime/agent. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/removed-apis-2.0#runtime */\nexport type BasicAgentConfiguration = RemovedType<\n \"BasicAgentConfiguration\",\n \"Use BuiltInAgentClassicConfig from @copilotkit/runtime/agent.\",\n \"/migrate/removed-apis-2.0#runtime\"\n>;\n\n/** @deprecated \"BedrockAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const BedrockAdapter = /*#__PURE__*/ removedApi({\n name: \"BedrockAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"BedrockAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type BedrockAdapter = typeof BedrockAdapter;\n\n/** @deprecated \"BedrockAdapterParams\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type BedrockAdapterParams = RemovedType<\n \"BedrockAdapterParams\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"buildSchema\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const buildSchema = /*#__PURE__*/ removedApi({\n name: \"buildSchema\",\n use: \"CopilotKit 2.0 has no GraphQL endpoint. Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime.\",\n docs: \"/migrate/v2#update-the-runtime\",\n});\n\n/** @deprecated \"BuiltInAgentModel\" was removed in CopilotKit 2.0. Use AnyTextAdapter from @tanstack/ai: the model of a BuiltInAgent is a TanStack AI text adapter. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport type BuiltInAgentModel = RemovedType<\n \"BuiltInAgentModel\",\n \"Use AnyTextAdapter from @tanstack/ai: the model of a BuiltInAgent is a TanStack AI text adapter.\",\n \"/migrate/runtime-2.0#built-in-agent\"\n>;\n\n/** @deprecated \"classifyModelSpec\" was removed in CopilotKit 2.0. Pass an adapter as model, for example anthropicText(\"claude-sonnet-4-6\"). To switch models from the frontend, set the resolveModel option of the BuiltInAgent. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec */\nexport const classifyModelSpec = /*#__PURE__*/ removedApi({\n name: \"classifyModelSpec\",\n use: 'Pass an adapter as model, for example anthropicText(\"claude-sonnet-4-6\"). To switch models from the frontend, set the resolveModel option of the BuiltInAgent.',\n docs: \"/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec\",\n});\n\n/** @deprecated \"CommonConfig\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type CommonConfig = RemovedType<\n \"CommonConfig\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"convertJsonSchemaToZodSchema\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport const convertJsonSchemaToZodSchema = /*#__PURE__*/ removedApi({\n name: \"convertJsonSchemaToZodSchema\",\n use: \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n docs: \"/migrate/runtime-2.0#built-in-agent\",\n});\n\n/** @deprecated \"convertMCPToolsToActions\" was removed in CopilotKit 2.0. Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport const convertMCPToolsToActions = /*#__PURE__*/ removedApi({\n name: \"convertMCPToolsToActions\",\n use: \"Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }.\",\n docs: \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\",\n});\n\n/** @deprecated \"convertMessagesToVercelAISDKMessages\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport const convertMessagesToVercelAISDKMessages = /*#__PURE__*/ removedApi({\n name: \"convertMessagesToVercelAISDKMessages\",\n use: \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n docs: \"/migrate/runtime-2.0#built-in-agent\",\n});\n\n/** @deprecated \"convertServiceAdapterError\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const convertServiceAdapterError = /*#__PURE__*/ removedApi({\n name: \"convertServiceAdapterError\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n\n/** @deprecated \"convertToolDefinitionsToVercelAITools\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport const convertToolDefinitionsToVercelAITools = /*#__PURE__*/ removedApi({\n name: \"convertToolDefinitionsToVercelAITools\",\n use: \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n docs: \"/migrate/runtime-2.0#built-in-agent\",\n});\n\n/** @deprecated \"convertToolsToVercelAITools\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport const convertToolsToVercelAITools = /*#__PURE__*/ removedApi({\n name: \"convertToolsToVercelAITools\",\n use: \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n docs: \"/migrate/runtime-2.0#built-in-agent\",\n});\n\n/** @deprecated \"CopilotEndpointCorsConfig\" was removed in CopilotKit 2.0. Use CopilotKitCorsConfig from @copilotkit/runtime, the cors option of createCopilotKitRuntimeHandler. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#cors-and-lifecycle */\nexport type CopilotEndpointCorsConfig = RemovedType<\n \"CopilotEndpointCorsConfig\",\n \"Use CopilotKitCorsConfig from @copilotkit/runtime, the cors option of createCopilotKitRuntimeHandler.\",\n \"/migrate/runtime-2.0#cors-and-lifecycle\"\n>;\n\n/** @deprecated \"CopilotExpressEndpointParams\" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport type CopilotExpressEndpointParams = RemovedType<\n \"CopilotExpressEndpointParams\",\n \"Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.\",\n \"/migrate/runtime-2.0#node-and-express\"\n>;\n\n/** @deprecated \"CopilotExpressRouter\" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport type CopilotExpressRouter = RemovedType<\n \"CopilotExpressRouter\",\n \"Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.\",\n \"/migrate/runtime-2.0#node-and-express\"\n>;\n\n/** @deprecated \"CopilotHonoApp\" was removed in CopilotKit 2.0. Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */\nexport type CopilotHonoApp = RemovedType<\n \"CopilotHonoApp\",\n \"Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw.\",\n \"/migrate/runtime-2.0#fetch-and-nextjs\"\n>;\n\n/** @deprecated \"copilotKitEndpoint\" was removed in CopilotKit 2.0. CopilotKitRuntime has no remoteEndpoints. Serve each Python agent over AG-UI, and register it in agents. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#python-sdk-endpoint */\nexport const copilotKitEndpoint = /*#__PURE__*/ removedApi({\n name: \"copilotKitEndpoint\",\n use: \"CopilotKitRuntime has no remoteEndpoints. Serve each Python agent over AG-UI, and register it in agents.\",\n docs: \"/migrate/agents-2.0#python-sdk-endpoint\",\n});\n\n/** @deprecated \"CopilotKitRequestHandler\" was removed in CopilotKit 2.0. Use CopilotKitRuntimeFetchHandler from @copilotkit/runtime. It takes the Request directly. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/removed-apis-2.0#runtime */\nexport type CopilotKitRequestHandler = RemovedType<\n \"CopilotKitRequestHandler\",\n \"Use CopilotKitRuntimeFetchHandler from @copilotkit/runtime. It takes the Request directly.\",\n \"/migrate/removed-apis-2.0#runtime\"\n>;\n\n/** @deprecated \"CopilotRequestContextProperties\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. Read the request in the hooks option of createCopilotKitRuntimeHandler (CopilotKitRuntimeHooks from @copilotkit/runtime). Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type CopilotRequestContextProperties = RemovedType<\n \"CopilotRequestContextProperties\",\n \"CopilotKit 2.0 has no GraphQL endpoint. Read the request in the hooks option of createCopilotKitRuntimeHandler (CopilotKitRuntimeHooks from @copilotkit/runtime).\",\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"CopilotRuntime\" was removed in CopilotKit 2.0. Use CopilotKitRuntime from @copilotkit/runtime, and pass each agent in agents. A model runs in a BuiltInAgent from @copilotkit/runtime/agent, so serviceAdapter, remoteEndpoints, and actions are gone. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const CopilotRuntime = /*#__PURE__*/ removedApi({\n name: \"CopilotRuntime\",\n use: \"Use CopilotKitRuntime from @copilotkit/runtime, and pass each agent in agents. A model runs in a BuiltInAgent from @copilotkit/runtime/agent, so serviceAdapter, remoteEndpoints, and actions are gone.\",\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"CopilotRuntime\" was removed in CopilotKit 2.0. Use CopilotKitRuntime from @copilotkit/runtime, and pass each agent in agents. A model runs in a BuiltInAgent from @copilotkit/runtime/agent, so serviceAdapter, remoteEndpoints, and actions are gone. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type CopilotRuntime<_T1 = unknown> = typeof CopilotRuntime;\n\n/** @deprecated \"CopilotRuntimeChatCompletionRequest\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type CopilotRuntimeChatCompletionRequest = RemovedType<\n \"CopilotRuntimeChatCompletionRequest\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"CopilotRuntimeChatCompletionResponse\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type CopilotRuntimeChatCompletionResponse = RemovedType<\n \"CopilotRuntimeChatCompletionResponse\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"CopilotRuntimeConstructorParams_BASE\" was removed in CopilotKit 2.0. Use CopilotKitRuntimeOptions from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type CopilotRuntimeConstructorParams_BASE<_T1 = unknown> = RemovedType<\n \"CopilotRuntimeConstructorParams_BASE\",\n \"Use CopilotKitRuntimeOptions from @copilotkit/runtime.\",\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"CopilotRuntimeLogger\" was removed in CopilotKit 2.0. Use CopilotKitRuntimeLogger from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#renamed-runtime-exports */\nexport type CopilotRuntimeLogger = RemovedType<\n \"CopilotRuntimeLogger\",\n \"Use CopilotKitRuntimeLogger from @copilotkit/runtime.\",\n \"/migrate/runtime-2.0#renamed-runtime-exports\"\n>;\n\n/** @deprecated \"copilotRuntimeNestEndpoint\" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport const copilotRuntimeNestEndpoint = /*#__PURE__*/ removedApi({\n name: \"copilotRuntimeNestEndpoint\",\n use: \"Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.\",\n docs: \"/migrate/runtime-2.0#node-and-express\",\n});\n\n/** @deprecated \"copilotRuntimeNextJSAppRouterEndpoint\" was removed in CopilotKit 2.0. Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime, and export the handler as GET and POST from app/api/copilotkit/[[...slug]]/route.ts. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */\nexport const copilotRuntimeNextJSAppRouterEndpoint = /*#__PURE__*/ removedApi({\n name: \"copilotRuntimeNextJSAppRouterEndpoint\",\n use: \"Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime, and export the handler as GET and POST from app/api/copilotkit/[[...slug]]/route.ts.\",\n docs: \"/migrate/runtime-2.0#fetch-and-nextjs\",\n});\n\n/** @deprecated \"copilotRuntimeNextJSPagesRouterEndpoint\" was removed in CopilotKit 2.0. Serve the runtime with createCopilotKitNodeHandler from @copilotkit/runtime/node. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport const copilotRuntimeNextJSPagesRouterEndpoint = /*#__PURE__*/ removedApi(\n {\n name: \"copilotRuntimeNextJSPagesRouterEndpoint\",\n use: \"Serve the runtime with createCopilotKitNodeHandler from @copilotkit/runtime/node.\",\n docs: \"/migrate/runtime-2.0#node-and-express\",\n },\n);\n\n/** @deprecated \"copilotRuntimeNodeExpressEndpoint\" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport const copilotRuntimeNodeExpressEndpoint = /*#__PURE__*/ removedApi({\n name: \"copilotRuntimeNodeExpressEndpoint\",\n use: \"Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.\",\n docs: \"/migrate/runtime-2.0#node-and-express\",\n});\n\n/** @deprecated \"copilotRuntimeNodeHttpEndpoint\" was removed in CopilotKit 2.0. Serve the runtime with createCopilotKitNodeListener from @copilotkit/runtime/node. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport const copilotRuntimeNodeHttpEndpoint = /*#__PURE__*/ removedApi({\n name: \"copilotRuntimeNodeHttpEndpoint\",\n use: \"Serve the runtime with createCopilotKitNodeListener from @copilotkit/runtime/node.\",\n docs: \"/migrate/runtime-2.0#node-and-express\",\n});\n\n/** @deprecated \"CopilotServiceAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type CopilotServiceAdapter = RemovedType<\n \"CopilotServiceAdapter\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"createCopilotEndpoint\" was removed in CopilotKit 2.0. Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */\nexport const createCopilotEndpoint = /*#__PURE__*/ removedApi({\n name: \"createCopilotEndpoint\",\n use: \"Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw.\",\n docs: \"/migrate/runtime-2.0#fetch-and-nextjs\",\n});\n\n/** @deprecated \"createCopilotEndpointExpress\" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport const createCopilotEndpointExpress = /*#__PURE__*/ removedApi({\n name: \"createCopilotEndpointExpress\",\n use: \"Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.\",\n docs: \"/migrate/runtime-2.0#node-and-express\",\n});\n\n/** @deprecated \"createCopilotEndpointSingleRoute\" was removed in CopilotKit 2.0. Use createCopilotKitRuntimeHandler from @copilotkit/runtime with mode: \"single-route\". Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#single-route-endpoints */\nexport const createCopilotEndpointSingleRoute = /*#__PURE__*/ removedApi({\n name: \"createCopilotEndpointSingleRoute\",\n use: 'Use createCopilotKitRuntimeHandler from @copilotkit/runtime with mode: \"single-route\".',\n docs: \"/migrate/runtime-2.0#single-route-endpoints\",\n});\n\n/** @deprecated \"createCopilotEndpointSingleRouteExpress\" was removed in CopilotKit 2.0. Use createCopilotKitNodeListener from @copilotkit/runtime/node with mode: \"single-route\". Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#single-route-endpoints */\nexport const createCopilotEndpointSingleRouteExpress = /*#__PURE__*/ removedApi(\n {\n name: \"createCopilotEndpointSingleRouteExpress\",\n use: 'Use createCopilotKitNodeListener from @copilotkit/runtime/node with mode: \"single-route\".',\n docs: \"/migrate/runtime-2.0#single-route-endpoints\",\n },\n);\n\n/** @deprecated \"createCopilotExpressHandler\" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */\nexport const createCopilotExpressHandler = /*#__PURE__*/ removedApi({\n name: \"createCopilotExpressHandler\",\n use: \"Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.\",\n docs: \"/migrate/runtime-2.0#node-and-express\",\n});\n\n/** @deprecated \"createCopilotHonoHandler\" was removed in CopilotKit 2.0. Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */\nexport const createCopilotHonoHandler = /*#__PURE__*/ removedApi({\n name: \"createCopilotHonoHandler\",\n use: \"Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw.\",\n docs: \"/migrate/runtime-2.0#fetch-and-nextjs\",\n});\n\n/** @deprecated \"CreateCopilotRuntimeServerOptions\" was removed in CopilotKit 2.0. Use CopilotKitRuntimeHandlerOptions from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */\nexport type CreateCopilotRuntimeServerOptions = RemovedType<\n \"CreateCopilotRuntimeServerOptions\",\n \"Use CopilotKitRuntimeHandlerOptions from @copilotkit/runtime.\",\n \"/migrate/runtime-2.0#fetch-and-nextjs\"\n>;\n\n/** @deprecated \"createLogger\" was removed in CopilotKit 2.0. Pass a logger (CopilotKitRuntimeLogger) to CopilotKitRuntime from @copilotkit/runtime, or set debug: true for debug logs. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#debug-logs */\nexport const createLogger = /*#__PURE__*/ removedApi({\n name: \"createLogger\",\n use: \"Pass a logger (CopilotKitRuntimeLogger) to CopilotKitRuntime from @copilotkit/runtime, or set debug: true for debug logs.\",\n docs: \"/migrate/runtime-2.0#debug-logs\",\n});\n\n/** @deprecated \"createSafeUrlDownload\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport const createSafeUrlDownload = /*#__PURE__*/ removedApi({\n name: \"createSafeUrlDownload\",\n use: \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n docs: \"/migrate/runtime-2.0#built-in-agent\",\n});\n\n/** @deprecated \"CreateSafeUrlDownloadOptions\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport type CreateSafeUrlDownloadOptions = RemovedType<\n \"CreateSafeUrlDownloadOptions\",\n \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n \"/migrate/runtime-2.0#built-in-agent\"\n>;\n\n/** @deprecated \"CustomEventNames\" was removed in CopilotKit 2.0. Import CustomEventNames from @ag-ui/langgraph. Its members have new names and values. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#customeventnames */\nexport type CustomEventNames = RemovedType<\n \"CustomEventNames\",\n \"Import CustomEventNames from @ag-ui/langgraph. Its members have new names and values.\",\n \"/migrate/agents-2.0#customeventnames\"\n>;\n\n/** @deprecated \"EmptyAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const EmptyAdapter = /*#__PURE__*/ removedApi({\n name: \"EmptyAdapter\",\n use: \"CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime.\",\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"EmptyAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type EmptyAdapter = typeof EmptyAdapter;\n\n/** @deprecated \"ExperimentalEmptyAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const ExperimentalEmptyAdapter = /*#__PURE__*/ removedApi({\n name: \"ExperimentalEmptyAdapter\",\n use: \"CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime.\",\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"ExperimentalEmptyAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type ExperimentalEmptyAdapter = typeof ExperimentalEmptyAdapter;\n\n/** @deprecated \"ExperimentalOllamaAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const ExperimentalOllamaAdapter = /*#__PURE__*/ removedApi({\n name: \"ExperimentalOllamaAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"ExperimentalOllamaAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type ExperimentalOllamaAdapter = typeof ExperimentalOllamaAdapter;\n\n/** @deprecated \"extractParametersFromSchema\" was removed in CopilotKit 2.0. Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport const extractParametersFromSchema = /*#__PURE__*/ removedApi({\n name: \"extractParametersFromSchema\",\n use: \"Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }.\",\n docs: \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\",\n});\n\n/** @deprecated \"FilterThinkingTextBuffer\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const FilterThinkingTextBuffer = /*#__PURE__*/ removedApi({\n name: \"FilterThinkingTextBuffer\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"FilterThinkingTextBuffer\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type FilterThinkingTextBuffer = typeof FilterThinkingTextBuffer;\n\n/** @deprecated \"generateMcpToolInstructions\" was removed in CopilotKit 2.0. Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport const generateMcpToolInstructions = /*#__PURE__*/ removedApi({\n name: \"generateMcpToolInstructions\",\n use: \"Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }.\",\n docs: \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\",\n});\n\n/** @deprecated \"getCommonConfig\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const getCommonConfig = /*#__PURE__*/ removedApi({\n name: \"getCommonConfig\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n\n/** @deprecated \"getSdkClientOptions\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const getSdkClientOptions = /*#__PURE__*/ removedApi({\n name: \"getSdkClientOptions\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n\n/** @deprecated \"GoogleGenerativeAIAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const GoogleGenerativeAIAdapter = /*#__PURE__*/ removedApi({\n name: \"GoogleGenerativeAIAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"GoogleGenerativeAIAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type GoogleGenerativeAIAdapter = typeof GoogleGenerativeAIAdapter;\n\n/** @deprecated \"GraphQLContext\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. Read the request in the hooks option of createCopilotKitRuntimeHandler (CopilotKitRuntimeHooks from @copilotkit/runtime). Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type GraphQLContext = RemovedType<\n \"GraphQLContext\",\n \"CopilotKit 2.0 has no GraphQL endpoint. Read the request in the hooks option of createCopilotKitRuntimeHandler (CopilotKitRuntimeHooks from @copilotkit/runtime).\",\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"GraphQLRequestContext\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. Read the request in the hooks option of createCopilotKitRuntimeHandler (CopilotKitRuntimeHooks from @copilotkit/runtime). Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type GraphQLRequestContext = RemovedType<\n \"GraphQLRequestContext\",\n \"CopilotKit 2.0 has no GraphQL endpoint. Read the request in the hooks option of createCopilotKitRuntimeHandler (CopilotKitRuntimeHooks from @copilotkit/runtime).\",\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"GroqAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const GroqAdapter = /*#__PURE__*/ removedApi({\n name: \"GroqAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"GroqAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type GroqAdapter = typeof GroqAdapter;\n\n/** @deprecated \"GroqAdapterParams\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type GroqAdapterParams = RemovedType<\n \"GroqAdapterParams\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"GuardrailsValidationFailureResponse\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const GuardrailsValidationFailureResponse = /*#__PURE__*/ removedApi({\n name: \"GuardrailsValidationFailureResponse\",\n use: \"CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event.\",\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"GuardrailsValidationFailureResponse\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type GuardrailsValidationFailureResponse =\n typeof GuardrailsValidationFailureResponse;\n\n/** @deprecated \"isA2UIEnabled\" was removed in CopilotKit 2.0. The runtime a2ui option is now generativeUI: { a2uiVersion: \"0.9\" }. Read generativeUI on your runtime options. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/generative-ui-2.0#a2ui-v09-renderer */\nexport const isA2UIEnabled = /*#__PURE__*/ removedApi({\n name: \"isA2UIEnabled\",\n use: 'The runtime a2ui option is now generativeUI: { a2uiVersion: \"0.9\" }. Read generativeUI on your runtime options.',\n docs: \"/migrate/generative-ui-2.0#a2ui-v09-renderer\",\n});\n\n/** @deprecated \"LangChainAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const LangChainAdapter = /*#__PURE__*/ removedApi({\n name: \"LangChainAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"LangChainAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type LangChainAdapter = typeof LangChainAdapter;\n\n/** @deprecated \"LangGraphAgent\" was removed in CopilotKit 2.0. Import LangGraphAgent from @ag-ui/langgraph. The constructor options are the same. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */\nexport const LangGraphAgent = /*#__PURE__*/ removedApi({\n name: \"LangGraphAgent\",\n use: \"Import LangGraphAgent from @ag-ui/langgraph. The constructor options are the same.\",\n docs: \"/migrate/agents-2.0#langgraph-agents\",\n});\n/** @deprecated \"LangGraphAgent\" was removed in CopilotKit 2.0. Import LangGraphAgent from @ag-ui/langgraph. The constructor options are the same. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */\nexport type LangGraphAgent = typeof LangGraphAgent;\n\n/** @deprecated \"LangGraphHttpAgent\" was removed in CopilotKit 2.0. Import LangGraphHttpAgent from @ag-ui/langgraph. The constructor options are the same. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */\nexport const LangGraphHttpAgent = /*#__PURE__*/ removedApi({\n name: \"LangGraphHttpAgent\",\n use: \"Import LangGraphHttpAgent from @ag-ui/langgraph. The constructor options are the same.\",\n docs: \"/migrate/agents-2.0#langgraph-agents\",\n});\n/** @deprecated \"LangGraphHttpAgent\" was removed in CopilotKit 2.0. Import LangGraphHttpAgent from @ag-ui/langgraph. The constructor options are the same. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */\nexport type LangGraphHttpAgent = typeof LangGraphHttpAgent;\n\n/** @deprecated \"langGraphPlatformEndpoint\" was removed in CopilotKit 2.0. CopilotKitRuntime has no remoteEndpoints. Create a LangGraphAgent from @ag-ui/langgraph for each agent, and pass it in agents. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-platform */\nexport const langGraphPlatformEndpoint = /*#__PURE__*/ removedApi({\n name: \"langGraphPlatformEndpoint\",\n use: \"CopilotKitRuntime has no remoteEndpoints. Create a LangGraphAgent from @ag-ui/langgraph for each agent, and pass it in agents.\",\n docs: \"/migrate/agents-2.0#langgraph-platform\",\n});\n\n/** @deprecated \"LogLevel\" was removed in CopilotKit 2.0. Pass a logger (CopilotKitRuntimeLogger) to CopilotKitRuntime from @copilotkit/runtime, or set debug: true for debug logs. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#debug-logs */\nexport type LogLevel = RemovedType<\n \"LogLevel\",\n \"Pass a logger (CopilotKitRuntimeLogger) to CopilotKitRuntime from @copilotkit/runtime, or set debug: true for debug logs.\",\n \"/migrate/runtime-2.0#debug-logs\"\n>;\n\n/** @deprecated \"MCPClient\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPClient = RemovedType<\n \"MCPClient\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MCPClientConfig\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPClientConfig = RemovedType<\n \"MCPClientConfig\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MCPClientConfigHTTP\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPClientConfigHTTP = RemovedType<\n \"MCPClientConfigHTTP\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MCPClientConfigSSE\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPClientConfigSSE = RemovedType<\n \"MCPClientConfigSSE\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MCPClientProvider\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPClientProvider = RemovedType<\n \"MCPClientProvider\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MCPEndpointConfig\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPEndpointConfig = RemovedType<\n \"MCPEndpointConfig\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MCPTool\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPTool = RemovedType<\n \"MCPTool\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MCPTransport\" was removed in CopilotKit 2.0. Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */\nexport type MCPTransport = RemovedType<\n \"MCPTransport\",\n \"Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.\",\n \"/migrate/runtime-2.0#4-replace-mcpservers-with-mcp\"\n>;\n\n/** @deprecated \"MessageConversionOptions\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport type MessageConversionOptions = RemovedType<\n \"MessageConversionOptions\",\n \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n \"/migrate/runtime-2.0#built-in-agent\"\n>;\n\n/** @deprecated \"MessageStreamInterruptedResponse\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const MessageStreamInterruptedResponse = /*#__PURE__*/ removedApi({\n name: \"MessageStreamInterruptedResponse\",\n use: \"CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event.\",\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"MessageStreamInterruptedResponse\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type MessageStreamInterruptedResponse =\n typeof MessageStreamInterruptedResponse;\n\n/** @deprecated \"ModelSpecifier\" was removed in CopilotKit 2.0. Use AnyTextAdapter from @tanstack/ai: the model of a BuiltInAgent is a TanStack AI text adapter. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport type ModelSpecifier = RemovedType<\n \"ModelSpecifier\",\n \"Use AnyTextAdapter from @tanstack/ai: the model of a BuiltInAgent is a TanStack AI text adapter.\",\n \"/migrate/runtime-2.0#built-in-agent\"\n>;\n\n/** @deprecated \"OpenAIAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const OpenAIAdapter = /*#__PURE__*/ removedApi({\n name: \"OpenAIAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"OpenAIAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type OpenAIAdapter = typeof OpenAIAdapter;\n\n/** @deprecated \"OpenAIAdapterParams\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type OpenAIAdapterParams = RemovedType<\n \"OpenAIAdapterParams\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"OpenAIAssistantAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const OpenAIAssistantAdapter = /*#__PURE__*/ removedApi({\n name: \"OpenAIAssistantAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"OpenAIAssistantAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type OpenAIAssistantAdapter = typeof OpenAIAssistantAdapter;\n\n/** @deprecated \"OpenAIAssistantAdapterParams\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type OpenAIAssistantAdapterParams = RemovedType<\n \"OpenAIAssistantAdapterParams\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"PredictStateTool\" was removed in CopilotKit 2.0. Import PredictStateTool from @ag-ui/langgraph. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */\nexport type PredictStateTool = RemovedType<\n \"PredictStateTool\",\n \"Import PredictStateTool from @ag-ui/langgraph.\",\n \"/migrate/agents-2.0#langgraph-agents\"\n>;\n\n/** @deprecated \"RemoteChain\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const RemoteChain = /*#__PURE__*/ removedApi({\n name: \"RemoteChain\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"RemoteChain\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type RemoteChain = typeof RemoteChain;\n\n/** @deprecated \"RemoteChainParameters\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type RemoteChainParameters = RemovedType<\n \"RemoteChainParameters\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"resolveEndpointType\" was removed in CopilotKit 2.0. CopilotKitRuntime has no remoteEndpoints. Register each agent in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-platform */\nexport const resolveEndpointType = /*#__PURE__*/ removedApi({\n name: \"resolveEndpointType\",\n use: \"CopilotKitRuntime has no remoteEndpoints. Register each agent in agents on CopilotKitRuntime from @copilotkit/runtime.\",\n docs: \"/migrate/agents-2.0#langgraph-platform\",\n});\n\n/** @deprecated \"resolveModel\" was removed in CopilotKit 2.0. Pass an adapter as model, for example anthropicText(\"claude-sonnet-4-6\"). To switch models from the frontend, set the resolveModel option of the BuiltInAgent. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec */\nexport const resolveModel = /*#__PURE__*/ removedApi({\n name: \"resolveModel\",\n use: 'Pass an adapter as model, for example anthropicText(\"claude-sonnet-4-6\"). To switch models from the frontend, set the resolveModel option of the BuiltInAgent.',\n docs: \"/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec\",\n});\n\n/** @deprecated \"SafeUrlDownloadOptions\" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */\nexport type SafeUrlDownloadOptions = RemovedType<\n \"SafeUrlDownloadOptions\",\n \"2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.\",\n \"/migrate/runtime-2.0#built-in-agent\"\n>;\n\n/** @deprecated \"SdkClientLike\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type SdkClientLike = RemovedType<\n \"SdkClientLike\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"TelemetryAgentRunner\" was removed in CopilotKit 2.0. Delete the wrapper, and pass your runner as runner on CopilotKitRuntime. The runtime reports telemetry by itself. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/shared-2.0#telemetry-entry-point-removed */\nexport const TelemetryAgentRunner = /*#__PURE__*/ removedApi({\n name: \"TelemetryAgentRunner\",\n use: \"Delete the wrapper, and pass your runner as runner on CopilotKitRuntime. The runtime reports telemetry by itself.\",\n docs: \"/migrate/shared-2.0#telemetry-entry-point-removed\",\n});\n/** @deprecated \"TelemetryAgentRunner\" was removed in CopilotKit 2.0. Delete the wrapper, and pass your runner as runner on CopilotKitRuntime. The runtime reports telemetry by itself. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/shared-2.0#telemetry-entry-point-removed */\nexport type TelemetryAgentRunner = typeof TelemetryAgentRunner;\n\n/** @deprecated \"TelemetryAgentRunnerConfig\" was removed in CopilotKit 2.0. Delete the wrapper, and pass your runner as runner on CopilotKitRuntime. The runtime reports telemetry by itself. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/shared-2.0#telemetry-entry-point-removed */\nexport type TelemetryAgentRunnerConfig = RemovedType<\n \"TelemetryAgentRunnerConfig\",\n \"Delete the wrapper, and pass your runner as runner on CopilotKitRuntime. The runtime reports telemetry by itself.\",\n \"/migrate/shared-2.0#telemetry-entry-point-removed\"\n>;\n\n/** @deprecated \"TextMessageEvents\" was removed in CopilotKit 2.0. Import the AG-UI event types, such as TextMessageStartEvent, from @ag-ui/client. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */\nexport type TextMessageEvents = RemovedType<\n \"TextMessageEvents\",\n \"Import the AG-UI event types, such as TextMessageStartEvent, from @ag-ui/client.\",\n \"/migrate/agents-2.0#langgraph-agents\"\n>;\n\n/** @deprecated \"toFetchCorsConfig\" was removed in CopilotKit 2.0. Pass a CopilotKitCorsConfig as the cors option of createCopilotKitRuntimeHandler from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#cors-and-lifecycle */\nexport const toFetchCorsConfig = /*#__PURE__*/ removedApi({\n name: \"toFetchCorsConfig\",\n use: \"Pass a CopilotKitCorsConfig as the cors option of createCopilotKitRuntimeHandler from @copilotkit/runtime.\",\n docs: \"/migrate/runtime-2.0#cors-and-lifecycle\",\n});\n\n/** @deprecated \"ToolCallEvents\" was removed in CopilotKit 2.0. Import the AG-UI event types, such as ToolCallStartEvent, from @ag-ui/client. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */\nexport type ToolCallEvents = RemovedType<\n \"ToolCallEvents\",\n \"Import the AG-UI event types, such as ToolCallStartEvent, from @ag-ui/client.\",\n \"/migrate/agents-2.0#langgraph-agents\"\n>;\n\n/** @deprecated \"UnifyAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const UnifyAdapter = /*#__PURE__*/ removedApi({\n name: \"UnifyAdapter\",\n use: 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"UnifyAdapter\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type UnifyAdapter = typeof UnifyAdapter;\n\n/** @deprecated \"UnifyAdapterParams\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type UnifyAdapterParams = RemovedType<\n \"UnifyAdapterParams\",\n 'CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.',\n \"/migrate/v2#update-the-runtime\"\n>;\n\n/** @deprecated \"UnknownErrorResponse\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport const UnknownErrorResponse = /*#__PURE__*/ removedApi({\n name: \"UnknownErrorResponse\",\n use: \"CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event.\",\n docs: \"/migrate/v2#update-the-runtime\",\n});\n/** @deprecated \"UnknownErrorResponse\" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */\nexport type UnknownErrorResponse = typeof UnknownErrorResponse;\n"],"mappings":"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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/runtime/core/package-info.ts
|
|
3
3
|
const RUNTIME_PACKAGE_NAME = "@copilotkit/runtime";
|
|
4
|
-
const RUNTIME_PACKAGE_VERSION = "2.0.0-rc.
|
|
4
|
+
const RUNTIME_PACKAGE_VERSION = "2.0.0-rc.66";
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
exports.RUNTIME_PACKAGE_NAME = RUNTIME_PACKAGE_NAME;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/runtime/core/package-info.ts
|
|
2
2
|
const RUNTIME_PACKAGE_NAME = "@copilotkit/runtime";
|
|
3
|
-
const RUNTIME_PACKAGE_VERSION = "2.0.0-rc.
|
|
3
|
+
const RUNTIME_PACKAGE_VERSION = "2.0.0-rc.66";
|
|
4
4
|
|
|
5
5
|
//#endregion
|
|
6
6
|
export { RUNTIME_PACKAGE_NAME, RUNTIME_PACKAGE_VERSION };
|
|
@@ -148,6 +148,81 @@ function hasIntelligenceOptions(options) {
|
|
|
148
148
|
function isIntelligenceRuntime(runtime) {
|
|
149
149
|
return runtime.mode === _copilotkit_shared.RUNTIME_MODE_INTELLIGENCE && !!runtime.intelligence;
|
|
150
150
|
}
|
|
151
|
+
const RUNTIME_OPTIONS_SECTION = "/migrate/removed-apis-2.0#runtime-options";
|
|
152
|
+
const REMOTE_AGENTS = {
|
|
153
|
+
effect: "throw",
|
|
154
|
+
use: "Register each agent in agents: a LangGraphAgent from @ag-ui/langgraph for LangGraph Platform, or an AG-UI agent for a Python SDK endpoint.",
|
|
155
|
+
docs: RUNTIME_OPTIONS_SECTION
|
|
156
|
+
};
|
|
157
|
+
const MCP_SERVERS = {
|
|
158
|
+
effect: "throw",
|
|
159
|
+
use: "Create the MCP clients with createMCPClient from @tanstack/ai-mcp, and give them to a BuiltInAgent as mcp: { clients }.",
|
|
160
|
+
docs: RUNTIME_OPTIONS_SECTION
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* The options of the 1.x `CopilotRuntime` that CopilotKit 2.0 removed. An
|
|
164
|
+
* option throws when the 1.x code cannot work without it, and warns once in
|
|
165
|
+
* development when 2.0 only ignores it.
|
|
166
|
+
*/
|
|
167
|
+
const REMOVED_RUNTIME_OPTIONS = {
|
|
168
|
+
serviceAdapter: {
|
|
169
|
+
effect: "throw",
|
|
170
|
+
use: "Run the model in a BuiltInAgent from @copilotkit/runtime/agent, and pass it in agents, for example agents: { default: new BuiltInAgent({ model: openaiText(\"gpt-5\") }) }.",
|
|
171
|
+
docs: RUNTIME_OPTIONS_SECTION
|
|
172
|
+
},
|
|
173
|
+
delegateAgentProcessingToServiceAdapter: {
|
|
174
|
+
effect: "throw",
|
|
175
|
+
use: "Delete it. 2.0 has no service adapters: run the model in a BuiltInAgent in agents.",
|
|
176
|
+
docs: RUNTIME_OPTIONS_SECTION
|
|
177
|
+
},
|
|
178
|
+
remoteEndpoints: REMOTE_AGENTS,
|
|
179
|
+
remoteActions: REMOTE_AGENTS,
|
|
180
|
+
langserve: {
|
|
181
|
+
effect: "throw",
|
|
182
|
+
use: "Serve the chain as an AG-UI agent, and register it in agents.",
|
|
183
|
+
docs: RUNTIME_OPTIONS_SECTION
|
|
184
|
+
},
|
|
185
|
+
actions: {
|
|
186
|
+
effect: "throw",
|
|
187
|
+
use: "Give the tools to the agent: defineTool tools in the tools of a BuiltInAgent, or the tools of your agent framework.",
|
|
188
|
+
docs: RUNTIME_OPTIONS_SECTION
|
|
189
|
+
},
|
|
190
|
+
mcpServers: MCP_SERVERS,
|
|
191
|
+
createMCPClient: MCP_SERVERS,
|
|
192
|
+
middleware: {
|
|
193
|
+
effect: "throw",
|
|
194
|
+
use: "Use beforeRequestMiddleware and afterRequestMiddleware on CopilotKitRuntime, or the hooks option of createCopilotKitRuntimeHandler.",
|
|
195
|
+
docs: RUNTIME_OPTIONS_SECTION
|
|
196
|
+
},
|
|
197
|
+
observability_c: {
|
|
198
|
+
effect: "warn",
|
|
199
|
+
use: "Delete it. 2.0 has no observability hooks in the runtime options.",
|
|
200
|
+
docs: RUNTIME_OPTIONS_SECTION
|
|
201
|
+
},
|
|
202
|
+
onError: {
|
|
203
|
+
effect: "warn",
|
|
204
|
+
use: "To handle errors, pass hooks: { onError } to createCopilotKitRuntimeHandler.",
|
|
205
|
+
docs: RUNTIME_OPTIONS_SECTION
|
|
206
|
+
},
|
|
207
|
+
onStopGeneration: {
|
|
208
|
+
effect: "warn",
|
|
209
|
+
use: "Delete it. 2.0 does not call it.",
|
|
210
|
+
docs: RUNTIME_OPTIONS_SECTION
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Checks the options of `CopilotKitRuntime` for the 1.x shapes that 2.0
|
|
215
|
+
* removed: no options at all (1.x passed the model to the endpoint), and the
|
|
216
|
+
* options in REMOVED_RUNTIME_OPTIONS.
|
|
217
|
+
*/
|
|
218
|
+
function checkRuntimeOptions(options) {
|
|
219
|
+
if (typeof options !== "object" || options === null) throw new _copilotkit_shared.CopilotKitRemovedApiError({
|
|
220
|
+
what: "\"new CopilotRuntime()\" without options",
|
|
221
|
+
use: "Pass the agents to CopilotKitRuntime, for example new CopilotKitRuntime({ agents: { default: new BuiltInAgent({ model: openaiText(\"gpt-5\") }) } }). The service adapter of the 1.x endpoint is gone.",
|
|
222
|
+
docs: "/migrate/v2#update-the-runtime"
|
|
223
|
+
});
|
|
224
|
+
(0, _copilotkit_shared.checkRemovedOptions)("option of CopilotKitRuntime", options, REMOVED_RUNTIME_OPTIONS);
|
|
225
|
+
}
|
|
151
226
|
/**
|
|
152
227
|
* Compatibility shim that preserves the legacy `CopilotKitRuntime` entrypoint.
|
|
153
228
|
* New code should prefer `CopilotKitSseRuntime` or `CopilotKitIntelligenceRuntime`.
|
|
@@ -158,6 +233,7 @@ function isIntelligenceRuntime(runtime) {
|
|
|
158
233
|
*/
|
|
159
234
|
var CopilotRuntimeShim = class {
|
|
160
235
|
constructor(options) {
|
|
236
|
+
checkRuntimeOptions(options);
|
|
161
237
|
this.delegate = hasIntelligenceOptions(options) ? new CopilotKitIntelligenceRuntime(options) : new CopilotKitSseRuntime(options);
|
|
162
238
|
const reporter = require_runtime_error_reporter.getRuntimeErrorReporterFromOptions(options);
|
|
163
239
|
if (reporter) require_runtime_error_reporter.attachRuntimeErrorReporter(this, reporter);
|