@copilotkit/runtime 2.0.0-rc.62 → 2.0.0-rc.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +53 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +2 -1
- package/dist/removed-exports.cjs +370 -0
- package/dist/removed-exports.cjs.map +1 -0
- package/dist/removed-exports.d.cts +241 -0
- package/dist/removed-exports.d.cts.map +1 -0
- package/dist/removed-exports.d.mts +241 -0
- package/dist/removed-exports.d.mts.map +1 -0
- package/dist/removed-exports.mjs +319 -0
- package/dist/removed-exports.mjs.map +1 -0
- package/dist/runtime/core/package-info.cjs +1 -1
- package/dist/runtime/core/package-info.mjs +1 -1
- package/dist/v2/index.cjs +183 -0
- package/dist/v2/index.cjs.map +1 -0
- package/dist/v2/index.d.cts +424 -6
- package/dist/v2/index.d.cts.map +1 -0
- package/dist/v2/index.d.mts +424 -6
- package/dist/v2/index.d.mts.map +1 -0
- package/dist/v2/index.mjs +66 -0
- package/dist/v2/index.mjs.map +1 -0
- package/dist/v2/node.cjs +44 -0
- package/dist/v2/node.cjs.map +1 -0
- package/dist/v2/node.d.cts +42 -5
- package/dist/v2/node.d.cts.map +1 -0
- package/dist/v2/node.d.mts +42 -5
- package/dist/v2/node.d.mts.map +1 -0
- package/dist/v2/node.mjs +39 -0
- package/dist/v2/node.mjs.map +1 -0
- package/package.json +13 -13
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removed-exports.cjs","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":";;;;AAYA,MAAa,mBAAiC,mDAAW;CACvD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAmBF,MAAa,aAA2B,mDAAW;CACjD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAYF,MAAa,iBAA+B,mDAAW;CACrD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAYF,MAAa,cAA4B,mDAAW;CAClD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAUF,MAAa,oBAAkC,mDAAW;CACxD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAUF,MAAa,+BAA6C,mDAAW;CACnE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,2BAAyC,mDAAW;CAC/D,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,uCAAqD,mDAAW;CAC3E,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,6BAA2C,mDAAW;CACjE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,wCAAsD,mDAAW;CAC5E,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,8BAA4C,mDAAW;CAClE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AA+BF,MAAa,qBAAmC,mDAAW;CACzD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAiBF,MAAa,iBAA+B,mDAAW;CACrD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAiCF,MAAa,6BAA2C,mDAAW;CACjE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,wCAAsD,mDAAW;CAC5E,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,0CAAwD,mDACnE;CACE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CACF;;AAGD,MAAa,oCAAkD,mDAAW;CACxE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,iCAA+C,mDAAW;CACrE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAUF,MAAa,wBAAsC,mDAAW;CAC5D,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,+BAA6C,mDAAW;CACnE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,mCAAiD,mDAAW;CACvE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,0CAAwD,mDACnE;CACE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CACF;;AAGD,MAAa,8BAA4C,mDAAW;CAClE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,2BAAyC,mDAAW;CAC/D,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAUF,MAAa,eAA6B,mDAAW;CACnD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,wBAAsC,mDAAW;CAC5D,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAiBF,MAAa,eAA6B,mDAAW;CACnD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAKF,MAAa,2BAAyC,mDAAW;CAC/D,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAKF,MAAa,4BAA0C,mDAAW;CAChE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAKF,MAAa,8BAA4C,mDAAW;CAClE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,2BAAyC,mDAAW;CAC/D,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAKF,MAAa,8BAA4C,mDAAW;CAClE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,kBAAgC,mDAAW;CACtD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,sBAAoC,mDAAW;CAC1D,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,4BAA0C,mDAAW;CAChE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAmBF,MAAa,cAA4B,mDAAW;CAClD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAYF,MAAa,sCAAoD,mDAAW;CAC1E,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAMF,MAAa,gBAA8B,mDAAW;CACpD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,mBAAiC,mDAAW;CACvD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAKF,MAAa,iBAA+B,mDAAW;CACrD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAKF,MAAa,qBAAmC,mDAAW;CACzD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAKF,MAAa,4BAA0C,mDAAW;CAChE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAyEF,MAAa,mCAAiD,mDAAW;CACvE,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAaF,MAAa,gBAA8B,mDAAW;CACpD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAYF,MAAa,yBAAuC,mDAAW;CAC7D,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAmBF,MAAa,cAA4B,mDAAW;CAClD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAYF,MAAa,sBAAoC,mDAAW;CAC1D,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAGF,MAAa,eAA6B,mDAAW;CACnD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAiBF,MAAa,uBAAqC,mDAAW;CAC3D,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAmBF,MAAa,oBAAkC,mDAAW;CACxD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAUF,MAAa,eAA6B,mDAAW;CACnD,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC;;AAYF,MAAa,uBAAqC,mDAAW;CAC3D,MAAM;CACN,KAAK;CACL,MAAM;CACP,CAAC"}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import * as _copilotkit_shared0 from "@copilotkit/shared";
|
|
2
|
+
import { RemovedType } from "@copilotkit/shared";
|
|
3
|
+
|
|
4
|
+
//#region src/removed-exports.d.ts
|
|
5
|
+
/** @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 */
|
|
6
|
+
declare const AnthropicAdapter: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
7
|
+
/** @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 */
|
|
8
|
+
type AnthropicAdapter = typeof AnthropicAdapter;
|
|
9
|
+
/** @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 */
|
|
10
|
+
type AnthropicAdapterParams = RemovedType<"AnthropicAdapterParams", '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.', "/migrate/v2#update-the-runtime">;
|
|
11
|
+
/** @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 */
|
|
12
|
+
type AnthropicPromptCachingConfig = RemovedType<"AnthropicPromptCachingConfig", '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.', "/migrate/v2#update-the-runtime">;
|
|
13
|
+
/** @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 */
|
|
14
|
+
declare const BasicAgent: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
15
|
+
/** @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 */
|
|
16
|
+
type BasicAgent = typeof BasicAgent;
|
|
17
|
+
/** @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 */
|
|
18
|
+
type BasicAgentConfiguration = RemovedType<"BasicAgentConfiguration", "Use BuiltInAgentClassicConfig from @copilotkit/runtime/agent.", "/migrate/removed-apis-2.0#runtime">;
|
|
19
|
+
/** @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 */
|
|
20
|
+
declare const BedrockAdapter: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
21
|
+
/** @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 */
|
|
22
|
+
type BedrockAdapter = typeof BedrockAdapter;
|
|
23
|
+
/** @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 */
|
|
24
|
+
type BedrockAdapterParams = RemovedType<"BedrockAdapterParams", '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.', "/migrate/v2#update-the-runtime">;
|
|
25
|
+
/** @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 */
|
|
26
|
+
declare const buildSchema: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
27
|
+
/** @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 */
|
|
28
|
+
type BuiltInAgentModel = RemovedType<"BuiltInAgentModel", "Use AnyTextAdapter from @tanstack/ai: the model of a BuiltInAgent is a TanStack AI text adapter.", "/migrate/runtime-2.0#built-in-agent">;
|
|
29
|
+
/** @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 */
|
|
30
|
+
declare const classifyModelSpec: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
31
|
+
/** @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 */
|
|
32
|
+
type CommonConfig = RemovedType<"CommonConfig", '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.', "/migrate/v2#update-the-runtime">;
|
|
33
|
+
/** @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 */
|
|
34
|
+
declare const convertJsonSchemaToZodSchema: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
35
|
+
/** @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 */
|
|
36
|
+
declare const convertMCPToolsToActions: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
37
|
+
/** @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 */
|
|
38
|
+
declare const convertMessagesToVercelAISDKMessages: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
39
|
+
/** @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 */
|
|
40
|
+
declare const convertServiceAdapterError: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
41
|
+
/** @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 */
|
|
42
|
+
declare const convertToolDefinitionsToVercelAITools: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
43
|
+
/** @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 */
|
|
44
|
+
declare const convertToolsToVercelAITools: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
45
|
+
/** @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 */
|
|
46
|
+
type CopilotEndpointCorsConfig = RemovedType<"CopilotEndpointCorsConfig", "Use CopilotKitCorsConfig from @copilotkit/runtime, the cors option of createCopilotKitRuntimeHandler.", "/migrate/runtime-2.0#cors-and-lifecycle">;
|
|
47
|
+
/** @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 */
|
|
48
|
+
type CopilotExpressEndpointParams = RemovedType<"CopilotExpressEndpointParams", "Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.", "/migrate/runtime-2.0#node-and-express">;
|
|
49
|
+
/** @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 */
|
|
50
|
+
type CopilotExpressRouter = RemovedType<"CopilotExpressRouter", "Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.", "/migrate/runtime-2.0#node-and-express">;
|
|
51
|
+
/** @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 */
|
|
52
|
+
type CopilotHonoApp = RemovedType<"CopilotHonoApp", "Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw.", "/migrate/runtime-2.0#fetch-and-nextjs">;
|
|
53
|
+
/** @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 */
|
|
54
|
+
declare const copilotKitEndpoint: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
55
|
+
/** @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 */
|
|
56
|
+
type CopilotKitRequestHandler = RemovedType<"CopilotKitRequestHandler", "Use CopilotKitRuntimeFetchHandler from @copilotkit/runtime. It takes the Request directly.", "/migrate/removed-apis-2.0#runtime">;
|
|
57
|
+
/** @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 */
|
|
58
|
+
type CopilotRequestContextProperties = RemovedType<"CopilotRequestContextProperties", "CopilotKit 2.0 has no GraphQL endpoint. Read the request in the hooks option of createCopilotKitRuntimeHandler (CopilotKitRuntimeHooks from @copilotkit/runtime).", "/migrate/v2#update-the-runtime">;
|
|
59
|
+
/** @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 */
|
|
60
|
+
declare const CopilotRuntime: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
61
|
+
/** @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 */
|
|
62
|
+
type CopilotRuntime<_T1 = unknown> = typeof CopilotRuntime;
|
|
63
|
+
/** @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 */
|
|
64
|
+
type CopilotRuntimeChatCompletionRequest = RemovedType<"CopilotRuntimeChatCompletionRequest", '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.', "/migrate/v2#update-the-runtime">;
|
|
65
|
+
/** @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 */
|
|
66
|
+
type CopilotRuntimeChatCompletionResponse = RemovedType<"CopilotRuntimeChatCompletionResponse", '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.', "/migrate/v2#update-the-runtime">;
|
|
67
|
+
/** @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 */
|
|
68
|
+
type CopilotRuntimeConstructorParams_BASE<_T1 = unknown> = RemovedType<"CopilotRuntimeConstructorParams_BASE", "Use CopilotKitRuntimeOptions from @copilotkit/runtime.", "/migrate/v2#update-the-runtime">;
|
|
69
|
+
/** @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 */
|
|
70
|
+
type CopilotRuntimeLogger = RemovedType<"CopilotRuntimeLogger", "Use CopilotKitRuntimeLogger from @copilotkit/runtime.", "/migrate/runtime-2.0#renamed-runtime-exports">;
|
|
71
|
+
/** @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 */
|
|
72
|
+
declare const copilotRuntimeNestEndpoint: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
73
|
+
/** @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 */
|
|
74
|
+
declare const copilotRuntimeNextJSAppRouterEndpoint: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
75
|
+
/** @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 */
|
|
76
|
+
declare const copilotRuntimeNextJSPagesRouterEndpoint: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
77
|
+
/** @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 */
|
|
78
|
+
declare const copilotRuntimeNodeExpressEndpoint: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
79
|
+
/** @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 */
|
|
80
|
+
declare const copilotRuntimeNodeHttpEndpoint: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
81
|
+
/** @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 */
|
|
82
|
+
type CopilotServiceAdapter = RemovedType<"CopilotServiceAdapter", '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.', "/migrate/v2#update-the-runtime">;
|
|
83
|
+
/** @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 */
|
|
84
|
+
declare const createCopilotEndpoint: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
85
|
+
/** @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 */
|
|
86
|
+
declare const createCopilotEndpointExpress: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
87
|
+
/** @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 */
|
|
88
|
+
declare const createCopilotEndpointSingleRoute: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
89
|
+
/** @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 */
|
|
90
|
+
declare const createCopilotEndpointSingleRouteExpress: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
91
|
+
/** @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 */
|
|
92
|
+
declare const createCopilotExpressHandler: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
93
|
+
/** @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 */
|
|
94
|
+
declare const createCopilotHonoHandler: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
95
|
+
/** @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 */
|
|
96
|
+
type CreateCopilotRuntimeServerOptions = RemovedType<"CreateCopilotRuntimeServerOptions", "Use CopilotKitRuntimeHandlerOptions from @copilotkit/runtime.", "/migrate/runtime-2.0#fetch-and-nextjs">;
|
|
97
|
+
/** @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 */
|
|
98
|
+
declare const createLogger: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
99
|
+
/** @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 */
|
|
100
|
+
declare const createSafeUrlDownload: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
101
|
+
/** @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 */
|
|
102
|
+
type CreateSafeUrlDownloadOptions = RemovedType<"CreateSafeUrlDownloadOptions", "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.", "/migrate/runtime-2.0#built-in-agent">;
|
|
103
|
+
/** @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 */
|
|
104
|
+
type CustomEventNames = RemovedType<"CustomEventNames", "Import CustomEventNames from @ag-ui/langgraph. Its members have new names and values.", "/migrate/agents-2.0#customeventnames">;
|
|
105
|
+
/** @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 */
|
|
106
|
+
declare const EmptyAdapter: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
107
|
+
/** @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 */
|
|
108
|
+
type EmptyAdapter = typeof EmptyAdapter;
|
|
109
|
+
/** @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 */
|
|
110
|
+
declare const ExperimentalEmptyAdapter: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
111
|
+
/** @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 */
|
|
112
|
+
type ExperimentalEmptyAdapter = typeof ExperimentalEmptyAdapter;
|
|
113
|
+
/** @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 */
|
|
114
|
+
declare const ExperimentalOllamaAdapter: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
115
|
+
/** @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 */
|
|
116
|
+
type ExperimentalOllamaAdapter = typeof ExperimentalOllamaAdapter;
|
|
117
|
+
/** @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 */
|
|
118
|
+
declare const extractParametersFromSchema: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
119
|
+
/** @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 */
|
|
120
|
+
declare const FilterThinkingTextBuffer: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
121
|
+
/** @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 */
|
|
122
|
+
type FilterThinkingTextBuffer = typeof FilterThinkingTextBuffer;
|
|
123
|
+
/** @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 */
|
|
124
|
+
declare const generateMcpToolInstructions: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
125
|
+
/** @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 */
|
|
126
|
+
declare const getCommonConfig: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
127
|
+
/** @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 */
|
|
128
|
+
declare const getSdkClientOptions: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
129
|
+
/** @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 */
|
|
130
|
+
declare const GoogleGenerativeAIAdapter: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
131
|
+
/** @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 */
|
|
132
|
+
type GoogleGenerativeAIAdapter = typeof GoogleGenerativeAIAdapter;
|
|
133
|
+
/** @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 */
|
|
134
|
+
type GraphQLContext = RemovedType<"GraphQLContext", "CopilotKit 2.0 has no GraphQL endpoint. Read the request in the hooks option of createCopilotKitRuntimeHandler (CopilotKitRuntimeHooks from @copilotkit/runtime).", "/migrate/v2#update-the-runtime">;
|
|
135
|
+
/** @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 */
|
|
136
|
+
type GraphQLRequestContext = RemovedType<"GraphQLRequestContext", "CopilotKit 2.0 has no GraphQL endpoint. Read the request in the hooks option of createCopilotKitRuntimeHandler (CopilotKitRuntimeHooks from @copilotkit/runtime).", "/migrate/v2#update-the-runtime">;
|
|
137
|
+
/** @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 */
|
|
138
|
+
declare const GroqAdapter: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
139
|
+
/** @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 */
|
|
140
|
+
type GroqAdapter = typeof GroqAdapter;
|
|
141
|
+
/** @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 */
|
|
142
|
+
type GroqAdapterParams = RemovedType<"GroqAdapterParams", '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.', "/migrate/v2#update-the-runtime">;
|
|
143
|
+
/** @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 */
|
|
144
|
+
declare const GuardrailsValidationFailureResponse: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
145
|
+
/** @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 */
|
|
146
|
+
type GuardrailsValidationFailureResponse = typeof GuardrailsValidationFailureResponse;
|
|
147
|
+
/** @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 */
|
|
148
|
+
declare const isA2UIEnabled: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
149
|
+
/** @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 */
|
|
150
|
+
declare const LangChainAdapter: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
151
|
+
/** @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 */
|
|
152
|
+
type LangChainAdapter = typeof LangChainAdapter;
|
|
153
|
+
/** @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 */
|
|
154
|
+
declare const LangGraphAgent: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
155
|
+
/** @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 */
|
|
156
|
+
type LangGraphAgent = typeof LangGraphAgent;
|
|
157
|
+
/** @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 */
|
|
158
|
+
declare const LangGraphHttpAgent: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
159
|
+
/** @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 */
|
|
160
|
+
type LangGraphHttpAgent = typeof LangGraphHttpAgent;
|
|
161
|
+
/** @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 */
|
|
162
|
+
declare const langGraphPlatformEndpoint: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
163
|
+
/** @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 */
|
|
164
|
+
type LogLevel = RemovedType<"LogLevel", "Pass a logger (CopilotKitRuntimeLogger) to CopilotKitRuntime from @copilotkit/runtime, or set debug: true for debug logs.", "/migrate/runtime-2.0#debug-logs">;
|
|
165
|
+
/** @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 */
|
|
166
|
+
type MCPClient = RemovedType<"MCPClient", "Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.", "/migrate/runtime-2.0#4-replace-mcpservers-with-mcp">;
|
|
167
|
+
/** @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 */
|
|
168
|
+
type MCPClientConfig = RemovedType<"MCPClientConfig", "Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.", "/migrate/runtime-2.0#4-replace-mcpservers-with-mcp">;
|
|
169
|
+
/** @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 */
|
|
170
|
+
type MCPClientConfigHTTP = RemovedType<"MCPClientConfigHTTP", "Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.", "/migrate/runtime-2.0#4-replace-mcpservers-with-mcp">;
|
|
171
|
+
/** @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 */
|
|
172
|
+
type MCPClientConfigSSE = RemovedType<"MCPClientConfigSSE", "Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.", "/migrate/runtime-2.0#4-replace-mcpservers-with-mcp">;
|
|
173
|
+
/** @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 */
|
|
174
|
+
type MCPClientProvider = RemovedType<"MCPClientProvider", "Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.", "/migrate/runtime-2.0#4-replace-mcpservers-with-mcp">;
|
|
175
|
+
/** @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 */
|
|
176
|
+
type MCPEndpointConfig = RemovedType<"MCPEndpointConfig", "Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.", "/migrate/runtime-2.0#4-replace-mcpservers-with-mcp">;
|
|
177
|
+
/** @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 */
|
|
178
|
+
type MCPTool = RemovedType<"MCPTool", "Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.", "/migrate/runtime-2.0#4-replace-mcpservers-with-mcp">;
|
|
179
|
+
/** @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 */
|
|
180
|
+
type MCPTransport = RemovedType<"MCPTransport", "Import the MCP client types from @tanstack/ai-mcp, and pass each client to a BuiltInAgent as mcp: { clients: [client] }.", "/migrate/runtime-2.0#4-replace-mcpservers-with-mcp">;
|
|
181
|
+
/** @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 */
|
|
182
|
+
type MessageConversionOptions = RemovedType<"MessageConversionOptions", "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.", "/migrate/runtime-2.0#built-in-agent">;
|
|
183
|
+
/** @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 */
|
|
184
|
+
declare const MessageStreamInterruptedResponse: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
185
|
+
/** @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 */
|
|
186
|
+
type MessageStreamInterruptedResponse = typeof MessageStreamInterruptedResponse;
|
|
187
|
+
/** @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 */
|
|
188
|
+
type ModelSpecifier = RemovedType<"ModelSpecifier", "Use AnyTextAdapter from @tanstack/ai: the model of a BuiltInAgent is a TanStack AI text adapter.", "/migrate/runtime-2.0#built-in-agent">;
|
|
189
|
+
/** @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 */
|
|
190
|
+
declare const OpenAIAdapter: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
191
|
+
/** @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 */
|
|
192
|
+
type OpenAIAdapter = typeof OpenAIAdapter;
|
|
193
|
+
/** @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 */
|
|
194
|
+
type OpenAIAdapterParams = RemovedType<"OpenAIAdapterParams", '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.', "/migrate/v2#update-the-runtime">;
|
|
195
|
+
/** @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 */
|
|
196
|
+
declare const OpenAIAssistantAdapter: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
197
|
+
/** @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 */
|
|
198
|
+
type OpenAIAssistantAdapter = typeof OpenAIAssistantAdapter;
|
|
199
|
+
/** @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 */
|
|
200
|
+
type OpenAIAssistantAdapterParams = RemovedType<"OpenAIAssistantAdapterParams", '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.', "/migrate/v2#update-the-runtime">;
|
|
201
|
+
/** @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 */
|
|
202
|
+
type PredictStateTool = RemovedType<"PredictStateTool", "Import PredictStateTool from @ag-ui/langgraph.", "/migrate/agents-2.0#langgraph-agents">;
|
|
203
|
+
/** @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 */
|
|
204
|
+
declare const RemoteChain: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
205
|
+
/** @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 */
|
|
206
|
+
type RemoteChain = typeof RemoteChain;
|
|
207
|
+
/** @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 */
|
|
208
|
+
type RemoteChainParameters = RemovedType<"RemoteChainParameters", '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.', "/migrate/v2#update-the-runtime">;
|
|
209
|
+
/** @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 */
|
|
210
|
+
declare const resolveEndpointType: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
211
|
+
/** @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 */
|
|
212
|
+
declare const resolveModel: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
213
|
+
/** @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 */
|
|
214
|
+
type SafeUrlDownloadOptions = RemovedType<"SafeUrlDownloadOptions", "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.", "/migrate/runtime-2.0#built-in-agent">;
|
|
215
|
+
/** @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 */
|
|
216
|
+
type SdkClientLike = RemovedType<"SdkClientLike", '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.', "/migrate/v2#update-the-runtime">;
|
|
217
|
+
/** @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 */
|
|
218
|
+
declare const TelemetryAgentRunner: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
219
|
+
/** @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 */
|
|
220
|
+
type TelemetryAgentRunner = typeof TelemetryAgentRunner;
|
|
221
|
+
/** @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 */
|
|
222
|
+
type TelemetryAgentRunnerConfig = RemovedType<"TelemetryAgentRunnerConfig", "Delete the wrapper, and pass your runner as runner on CopilotKitRuntime. The runtime reports telemetry by itself.", "/migrate/shared-2.0#telemetry-entry-point-removed">;
|
|
223
|
+
/** @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 */
|
|
224
|
+
type TextMessageEvents = RemovedType<"TextMessageEvents", "Import the AG-UI event types, such as TextMessageStartEvent, from @ag-ui/client.", "/migrate/agents-2.0#langgraph-agents">;
|
|
225
|
+
/** @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 */
|
|
226
|
+
declare const toFetchCorsConfig: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
227
|
+
/** @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 */
|
|
228
|
+
type ToolCallEvents = RemovedType<"ToolCallEvents", "Import the AG-UI event types, such as ToolCallStartEvent, from @ag-ui/client.", "/migrate/agents-2.0#langgraph-agents">;
|
|
229
|
+
/** @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 */
|
|
230
|
+
declare const UnifyAdapter: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
231
|
+
/** @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 */
|
|
232
|
+
type UnifyAdapter = typeof UnifyAdapter;
|
|
233
|
+
/** @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 */
|
|
234
|
+
type UnifyAdapterParams = RemovedType<"UnifyAdapterParams", '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.', "/migrate/v2#update-the-runtime">;
|
|
235
|
+
/** @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 */
|
|
236
|
+
declare const UnknownErrorResponse: _copilotkit_shared0.RemovedApi<"\"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">;
|
|
237
|
+
/** @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 */
|
|
238
|
+
type UnknownErrorResponse = typeof UnknownErrorResponse;
|
|
239
|
+
//#endregion
|
|
240
|
+
export { AnthropicAdapter, AnthropicAdapterParams, AnthropicPromptCachingConfig, BasicAgent, BasicAgentConfiguration, BedrockAdapter, BedrockAdapterParams, BuiltInAgentModel, CommonConfig, CopilotEndpointCorsConfig, CopilotExpressEndpointParams, CopilotExpressRouter, CopilotHonoApp, CopilotKitRequestHandler, CopilotRequestContextProperties, CopilotRuntime, CopilotRuntimeChatCompletionRequest, CopilotRuntimeChatCompletionResponse, CopilotRuntimeConstructorParams_BASE, CopilotRuntimeLogger, CopilotServiceAdapter, CreateCopilotRuntimeServerOptions, CreateSafeUrlDownloadOptions, CustomEventNames, EmptyAdapter, ExperimentalEmptyAdapter, ExperimentalOllamaAdapter, FilterThinkingTextBuffer, GoogleGenerativeAIAdapter, GraphQLContext, GraphQLRequestContext, GroqAdapter, GroqAdapterParams, GuardrailsValidationFailureResponse, LangChainAdapter, LangGraphAgent, LangGraphHttpAgent, LogLevel, MCPClient, MCPClientConfig, MCPClientConfigHTTP, MCPClientConfigSSE, MCPClientProvider, MCPEndpointConfig, MCPTool, MCPTransport, MessageConversionOptions, MessageStreamInterruptedResponse, ModelSpecifier, OpenAIAdapter, OpenAIAdapterParams, OpenAIAssistantAdapter, OpenAIAssistantAdapterParams, PredictStateTool, RemoteChain, RemoteChainParameters, SafeUrlDownloadOptions, SdkClientLike, TelemetryAgentRunner, TelemetryAgentRunnerConfig, TextMessageEvents, ToolCallEvents, UnifyAdapter, UnifyAdapterParams, UnknownErrorResponse, buildSchema, classifyModelSpec, convertJsonSchemaToZodSchema, convertMCPToolsToActions, convertMessagesToVercelAISDKMessages, convertServiceAdapterError, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, copilotKitEndpoint, copilotRuntimeNestEndpoint, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint, copilotRuntimeNodeExpressEndpoint, copilotRuntimeNodeHttpEndpoint, createCopilotEndpoint, createCopilotEndpointExpress, createCopilotEndpointSingleRoute, createCopilotEndpointSingleRouteExpress, createCopilotExpressHandler, createCopilotHonoHandler, createLogger, createSafeUrlDownload, extractParametersFromSchema, generateMcpToolInstructions, getCommonConfig, getSdkClientOptions, isA2UIEnabled, langGraphPlatformEndpoint, resolveEndpointType, resolveModel, toFetchCorsConfig };
|
|
241
|
+
//# sourceMappingURL=removed-exports.d.cts.map
|