@copilotkit/runtime 2.0.0-rc.63 → 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 CHANGED
@@ -13,6 +13,7 @@ const require_recorded_events = require('./runtime/event-transforms/recorded-eve
13
13
  const require_transcription_service = require('./runtime/transcription-service/transcription-service.cjs');
14
14
  const require_thread_run = require('./runtime/core/thread-run.cjs');
15
15
  const require_fetch_handler = require('./runtime/core/fetch-handler.cjs');
16
+ const require_removed_exports = require('./removed-exports.cjs');
16
17
  let _ag_ui_a2ui_middleware = require("@ag-ui/a2ui-middleware");
17
18
  let _copilotkit_shared = require("@copilotkit/shared");
18
19
 
@@ -24,45 +25,97 @@ Object.defineProperty(exports, 'A2UIMiddleware', {
24
25
  });
25
26
  exports.A2UIV09BridgeMiddleware = require_a2ui_v09_middleware.A2UIV09BridgeMiddleware;
26
27
  exports.AgentRunner = require_agent_runner.AgentRunner;
28
+ exports.AnthropicAdapter = require_removed_exports.AnthropicAdapter;
27
29
  exports.ArgsParser = require_open_generative_ui_middleware.ArgsParser;
30
+ exports.BasicAgent = require_removed_exports.BasicAgent;
31
+ exports.BedrockAdapter = require_removed_exports.BedrockAdapter;
28
32
  exports.CopilotKitIntelligence = require_client.CopilotKitIntelligence;
29
33
  exports.CopilotKitIntelligenceRuntime = require_runtime.CopilotKitIntelligenceRuntime;
30
34
  exports.CopilotKitRuntime = require_runtime.CopilotKitRuntime;
31
35
  exports.CopilotKitSseRuntime = require_runtime.CopilotKitSseRuntime;
36
+ exports.CopilotRuntime = require_removed_exports.CopilotRuntime;
37
+ exports.EmptyAdapter = require_removed_exports.EmptyAdapter;
38
+ exports.ExperimentalEmptyAdapter = require_removed_exports.ExperimentalEmptyAdapter;
39
+ exports.ExperimentalOllamaAdapter = require_removed_exports.ExperimentalOllamaAdapter;
40
+ exports.FilterThinkingTextBuffer = require_removed_exports.FilterThinkingTextBuffer;
32
41
  exports.GenerativeUIMiddleware = require_generative_ui_middleware.GenerativeUIMiddleware;
42
+ exports.GoogleGenerativeAIAdapter = require_removed_exports.GoogleGenerativeAIAdapter;
43
+ exports.GroqAdapter = require_removed_exports.GroqAdapter;
44
+ exports.GuardrailsValidationFailureResponse = require_removed_exports.GuardrailsValidationFailureResponse;
33
45
  exports.InMemoryAgentRunner = require_in_memory.InMemoryAgentRunner;
34
46
  exports.IntelligenceAgentRunner = require_intelligence.IntelligenceAgentRunner;
47
+ exports.LangChainAdapter = require_removed_exports.LangChainAdapter;
48
+ exports.LangGraphAgent = require_removed_exports.LangGraphAgent;
49
+ exports.LangGraphHttpAgent = require_removed_exports.LangGraphHttpAgent;
35
50
  exports.LearnedSkillsError = require_learned_skills.LearnedSkillsError;
51
+ exports.MessageStreamInterruptedResponse = require_removed_exports.MessageStreamInterruptedResponse;
52
+ exports.OpenAIAdapter = require_removed_exports.OpenAIAdapter;
53
+ exports.OpenAIAssistantAdapter = require_removed_exports.OpenAIAssistantAdapter;
36
54
  exports.OpenGenerativeUIMiddleware = require_open_generative_ui_middleware.OpenGenerativeUIMiddleware;
37
55
  exports.PlatformRequestError = require_client.PlatformRequestError;
56
+ exports.RemoteChain = require_removed_exports.RemoteChain;
38
57
  exports.RunnerEventQueueFullError = require_intelligence.RunnerEventQueueFullError;
39
58
  exports.STOP_RECORD_DEADLINE_MS = require_intelligence.STOP_RECORD_DEADLINE_MS;
40
59
  exports.THREAD_ACCESS_DENIED_ERROR_CODE = require_agent_runner.THREAD_ACCESS_DENIED_ERROR_CODE;
60
+ exports.TelemetryAgentRunner = require_removed_exports.TelemetryAgentRunner;
41
61
  exports.ThreadAccessDeniedError = require_agent_runner.ThreadAccessDeniedError;
42
62
  exports.ThreadAlreadyRunningError = require_agent_runner.ThreadAlreadyRunningError;
43
63
  exports.ThreadRunError = require_thread_run.ThreadRunError;
44
64
  exports.TranscriptionService = require_transcription_service.TranscriptionService;
65
+ exports.UnifyAdapter = require_removed_exports.UnifyAdapter;
66
+ exports.UnknownErrorResponse = require_removed_exports.UnknownErrorResponse;
45
67
  exports.VERSION = require_runtime.VERSION;
68
+ exports.buildSchema = require_removed_exports.buildSchema;
69
+ exports.classifyModelSpec = require_removed_exports.classifyModelSpec;
70
+ exports.convertJsonSchemaToZodSchema = require_removed_exports.convertJsonSchemaToZodSchema;
71
+ exports.convertMCPToolsToActions = require_removed_exports.convertMCPToolsToActions;
72
+ exports.convertMessagesToVercelAISDKMessages = require_removed_exports.convertMessagesToVercelAISDKMessages;
73
+ exports.convertServiceAdapterError = require_removed_exports.convertServiceAdapterError;
74
+ exports.convertToolDefinitionsToVercelAITools = require_removed_exports.convertToolDefinitionsToVercelAITools;
75
+ exports.convertToolsToVercelAITools = require_removed_exports.convertToolsToVercelAITools;
76
+ exports.copilotKitEndpoint = require_removed_exports.copilotKitEndpoint;
77
+ exports.copilotRuntimeNestEndpoint = require_removed_exports.copilotRuntimeNestEndpoint;
78
+ exports.copilotRuntimeNextJSAppRouterEndpoint = require_removed_exports.copilotRuntimeNextJSAppRouterEndpoint;
79
+ exports.copilotRuntimeNextJSPagesRouterEndpoint = require_removed_exports.copilotRuntimeNextJSPagesRouterEndpoint;
80
+ exports.copilotRuntimeNodeExpressEndpoint = require_removed_exports.copilotRuntimeNodeExpressEndpoint;
81
+ exports.copilotRuntimeNodeHttpEndpoint = require_removed_exports.copilotRuntimeNodeHttpEndpoint;
82
+ exports.createCopilotEndpoint = require_removed_exports.createCopilotEndpoint;
83
+ exports.createCopilotEndpointExpress = require_removed_exports.createCopilotEndpointExpress;
84
+ exports.createCopilotEndpointSingleRoute = require_removed_exports.createCopilotEndpointSingleRoute;
85
+ exports.createCopilotEndpointSingleRouteExpress = require_removed_exports.createCopilotEndpointSingleRouteExpress;
86
+ exports.createCopilotExpressHandler = require_removed_exports.createCopilotExpressHandler;
87
+ exports.createCopilotHonoHandler = require_removed_exports.createCopilotHonoHandler;
46
88
  exports.createCopilotKitRuntimeHandler = require_fetch_handler.createCopilotKitRuntimeHandler;
89
+ exports.createLogger = require_removed_exports.createLogger;
47
90
  Object.defineProperty(exports, 'createRunEventFinalizer', {
48
91
  enumerable: true,
49
92
  get: function () {
50
93
  return _copilotkit_shared.createRunEventFinalizer;
51
94
  }
52
95
  });
96
+ exports.createSafeUrlDownload = require_removed_exports.createSafeUrlDownload;
53
97
  exports.createSurfaceWriter = require_surface_writer.createSurfaceWriter;
54
98
  exports.enforcesThreadOwnership = require_agent_runner.enforcesThreadOwnership;
99
+ exports.extractParametersFromSchema = require_removed_exports.extractParametersFromSchema;
55
100
  Object.defineProperty(exports, 'finalizeRunEvents', {
56
101
  enumerable: true,
57
102
  get: function () {
58
103
  return _copilotkit_shared.finalizeRunEvents;
59
104
  }
60
105
  });
106
+ exports.generateMcpToolInstructions = require_removed_exports.generateMcpToolInstructions;
107
+ exports.getCommonConfig = require_removed_exports.getCommonConfig;
108
+ exports.getSdkClientOptions = require_removed_exports.getSdkClientOptions;
109
+ exports.isA2UIEnabled = require_removed_exports.isA2UIEnabled;
61
110
  exports.isIntelligenceRuntime = require_runtime.isIntelligenceRuntime;
62
111
  exports.isThreadAccessDeniedError = require_agent_runner.isThreadAccessDeniedError;
112
+ exports.langGraphPlatformEndpoint = require_removed_exports.langGraphPlatformEndpoint;
63
113
  exports.resolveAgents = require_runtime.resolveAgents;
114
+ exports.resolveEndpointType = require_removed_exports.resolveEndpointType;
115
+ exports.resolveModel = require_removed_exports.resolveModel;
64
116
  exports.runAgentInThread = require_thread_run.runAgentInThread;
65
117
  exports.supportsLocalThreadEndpoints = require_agent_runner.supportsLocalThreadEndpoints;
118
+ exports.toFetchCorsConfig = require_removed_exports.toFetchCorsConfig;
66
119
  exports.transformRecordedEvents = require_recorded_events.transformRecordedEvents;
67
120
  exports.ɵBoundedThreadStore = require_in_memory.ɵBoundedThreadStore;
68
121
  exports.ɵGLOBAL_STORE = require_in_memory.ɵGLOBAL_STORE;
package/dist/index.d.cts CHANGED
@@ -22,4 +22,5 @@ import { CopilotKitRuntimeHooks, ErrorHookContext, HandlerHookContext, HookConte
22
22
  import { CopilotKitCorsConfig } from "./runtime/core/fetch-cors.cjs";
23
23
  import { CopilotKitRuntimeFetchHandler, CopilotKitRuntimeFetchHandlerWithChannels, CopilotKitRuntimeHandlerOptions, createCopilotKitRuntimeHandler } from "./runtime/core/fetch-handler.cjs";
24
24
  import "./runtime/index.cjs";
25
- export { A2UIMiddleware, A2UIMiddlewareConfig, A2UIV09BridgeMiddleware, A2UIVersion, AgentFactoryContext, AgentRunner, AgentRunnerConnectRequest, AgentRunnerIsRunningRequest, AgentRunnerRunRequest, AgentRunnerStopRequest, AgentsConfig, AgentsFactory, ArgsParser, ChannelStatus, ChannelsControl, CopilotKitCorsConfig, CopilotKitIntelligence, CopilotKitIntelligenceConfig, CopilotKitIntelligenceRuntime, CopilotKitIntelligenceRuntimeLike, CopilotKitIntelligenceRuntimeOptions, CopilotKitRuntime, CopilotKitRuntimeConstructor, CopilotKitRuntimeFetchHandler, CopilotKitRuntimeFetchHandlerWithChannels, CopilotKitRuntimeHandlerOptions, CopilotKitRuntimeHooks, CopilotKitRuntimeLearningConfig, CopilotKitRuntimeLearningContext, CopilotKitRuntimeLike, CopilotKitRuntimeLogger, CopilotKitRuntimeMemoryConfig, CopilotKitRuntimeOptions, CopilotKitRuntimeUser, CopilotKitSseRuntime, CopilotKitSseRuntimeLike, CopilotKitSseRuntimeOptions, CreateThreadRequest, ErrorHookContext, FinalizeRunOptions, GenerateSandboxedUIParams, GenerativeUIMiddleware, GenerativeUIOptions, GenerativeUISurfaceWriter, GetLearnedSkillsSnapshotRequest, GetLearnedSkillsSnapshotsRequest, GetLearningContainerId, GetTrajectoryLearningContainerIds, HandlerHookContext, HookContext, IdentifyUserCallback, InMemoryAgentRunner, InMemoryAgentRunnerOptions, InMemoryLimits, InMemoryThread, IntelligenceAgentRunner, IntelligenceAgentRunnerOptions, LearnedSkillsBatchResult, LearnedSkillsError, LearnedSkillsErrorCode, LearnedSkillsSnapshotResult, LearningContainerSelectorInput, ListThreadsResponse, LocalThreadEndpointRecord, LocalThreadEndpointRunner, LocalThreadEndpointScope, McpAppsConfig, McpAppsServerConfig, MemoryAccess, MemoryConsumer, MemoryGrant, OnParamEvent, OpenGenerativeUIConfig, OpenGenerativeUIMiddleware, OpenGenerativeUIOptions, PlatformRequestError, RecordedEventTransformOptions, ResponseHookContext, RouteInfo, RunAgentInThreadOptions, RunAgentInThreadResult, RunAgentInThreadRuntime, RunEventFinalizer, RunnerEventDeliveryStats, RunnerEventQueueFullError, RunnerStartupBoundary, RuntimeWithDeclaredChannels, STOP_RECORD_DEADLINE_MS, SubscribeToThreadsRequest, SubscribeToThreadsResponse, THREAD_ACCESS_DENIED_ERROR_CODE, ThreadAccessDeniedError, ThreadAccessMode, ThreadAlreadyRunningError, ThreadNameGenerationConfig, ThreadOwnershipRunner, ThreadRunError, ThreadRunErrorReason, ThreadSummary, ThreadsConfig, TrajectoryLearningContainerSelectorInput, TranscribeFileOptions, TranscriptionService, UpdateThreadRequest, VERSION, createCopilotKitRuntimeHandler, createRunEventFinalizer, createSurfaceWriter, enforcesThreadOwnership, experimental_d_exports as experimental, finalizeRunEvents, isIntelligenceRuntime, isThreadAccessDeniedError, resolveAgents, runAgentInThread, supportsLocalThreadEndpoints, transformRecordedEvents, ɵBoundedThreadStore, ɵGLOBAL_STORE, ɵINMEMORY_DEFAULTS, ɵOWNER_RETENTION_DEFAULTS, ɵOwnerRetention, ɵSERVER_THREAD_OWNER, ɵestimateBytes, ɵnormalizeLimits, ɵresolveThreadOwner };
25
+ import { 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 } from "./removed-exports.cjs";
26
+ export { A2UIMiddleware, A2UIMiddlewareConfig, A2UIV09BridgeMiddleware, A2UIVersion, AgentFactoryContext, AgentRunner, AgentRunnerConnectRequest, AgentRunnerIsRunningRequest, AgentRunnerRunRequest, AgentRunnerStopRequest, AgentsConfig, AgentsFactory, AnthropicAdapter, AnthropicAdapterParams, AnthropicPromptCachingConfig, ArgsParser, BasicAgent, BasicAgentConfiguration, BedrockAdapter, BedrockAdapterParams, BuiltInAgentModel, ChannelStatus, ChannelsControl, CommonConfig, CopilotEndpointCorsConfig, CopilotExpressEndpointParams, CopilotExpressRouter, CopilotHonoApp, CopilotKitCorsConfig, CopilotKitIntelligence, CopilotKitIntelligenceConfig, CopilotKitIntelligenceRuntime, CopilotKitIntelligenceRuntimeLike, CopilotKitIntelligenceRuntimeOptions, CopilotKitRequestHandler, CopilotKitRuntime, CopilotKitRuntimeConstructor, CopilotKitRuntimeFetchHandler, CopilotKitRuntimeFetchHandlerWithChannels, CopilotKitRuntimeHandlerOptions, CopilotKitRuntimeHooks, CopilotKitRuntimeLearningConfig, CopilotKitRuntimeLearningContext, CopilotKitRuntimeLike, CopilotKitRuntimeLogger, CopilotKitRuntimeMemoryConfig, CopilotKitRuntimeOptions, CopilotKitRuntimeUser, CopilotKitSseRuntime, CopilotKitSseRuntimeLike, CopilotKitSseRuntimeOptions, CopilotRequestContextProperties, CopilotRuntime, CopilotRuntimeChatCompletionRequest, CopilotRuntimeChatCompletionResponse, CopilotRuntimeConstructorParams_BASE, CopilotRuntimeLogger, CopilotServiceAdapter, CreateCopilotRuntimeServerOptions, CreateSafeUrlDownloadOptions, CreateThreadRequest, CustomEventNames, EmptyAdapter, ErrorHookContext, ExperimentalEmptyAdapter, ExperimentalOllamaAdapter, FilterThinkingTextBuffer, FinalizeRunOptions, GenerateSandboxedUIParams, GenerativeUIMiddleware, GenerativeUIOptions, GenerativeUISurfaceWriter, GetLearnedSkillsSnapshotRequest, GetLearnedSkillsSnapshotsRequest, GetLearningContainerId, GetTrajectoryLearningContainerIds, GoogleGenerativeAIAdapter, GraphQLContext, GraphQLRequestContext, GroqAdapter, GroqAdapterParams, GuardrailsValidationFailureResponse, HandlerHookContext, HookContext, IdentifyUserCallback, InMemoryAgentRunner, InMemoryAgentRunnerOptions, InMemoryLimits, InMemoryThread, IntelligenceAgentRunner, IntelligenceAgentRunnerOptions, LangChainAdapter, LangGraphAgent, LangGraphHttpAgent, LearnedSkillsBatchResult, LearnedSkillsError, LearnedSkillsErrorCode, LearnedSkillsSnapshotResult, LearningContainerSelectorInput, ListThreadsResponse, LocalThreadEndpointRecord, LocalThreadEndpointRunner, LocalThreadEndpointScope, LogLevel, MCPClient, MCPClientConfig, MCPClientConfigHTTP, MCPClientConfigSSE, MCPClientProvider, MCPEndpointConfig, MCPTool, MCPTransport, McpAppsConfig, McpAppsServerConfig, MemoryAccess, MemoryConsumer, MemoryGrant, MessageConversionOptions, MessageStreamInterruptedResponse, ModelSpecifier, OnParamEvent, OpenAIAdapter, OpenAIAdapterParams, OpenAIAssistantAdapter, OpenAIAssistantAdapterParams, OpenGenerativeUIConfig, OpenGenerativeUIMiddleware, OpenGenerativeUIOptions, PlatformRequestError, PredictStateTool, RecordedEventTransformOptions, RemoteChain, RemoteChainParameters, ResponseHookContext, RouteInfo, RunAgentInThreadOptions, RunAgentInThreadResult, RunAgentInThreadRuntime, RunEventFinalizer, RunnerEventDeliveryStats, RunnerEventQueueFullError, RunnerStartupBoundary, RuntimeWithDeclaredChannels, STOP_RECORD_DEADLINE_MS, SafeUrlDownloadOptions, SdkClientLike, SubscribeToThreadsRequest, SubscribeToThreadsResponse, THREAD_ACCESS_DENIED_ERROR_CODE, TelemetryAgentRunner, TelemetryAgentRunnerConfig, TextMessageEvents, ThreadAccessDeniedError, ThreadAccessMode, ThreadAlreadyRunningError, ThreadNameGenerationConfig, ThreadOwnershipRunner, ThreadRunError, ThreadRunErrorReason, ThreadSummary, ThreadsConfig, ToolCallEvents, TrajectoryLearningContainerSelectorInput, TranscribeFileOptions, TranscriptionService, UnifyAdapter, UnifyAdapterParams, UnknownErrorResponse, UpdateThreadRequest, VERSION, buildSchema, classifyModelSpec, convertJsonSchemaToZodSchema, convertMCPToolsToActions, convertMessagesToVercelAISDKMessages, convertServiceAdapterError, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, copilotKitEndpoint, copilotRuntimeNestEndpoint, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint, copilotRuntimeNodeExpressEndpoint, copilotRuntimeNodeHttpEndpoint, createCopilotEndpoint, createCopilotEndpointExpress, createCopilotEndpointSingleRoute, createCopilotEndpointSingleRouteExpress, createCopilotExpressHandler, createCopilotHonoHandler, createCopilotKitRuntimeHandler, createLogger, createRunEventFinalizer, createSafeUrlDownload, createSurfaceWriter, enforcesThreadOwnership, experimental_d_exports as experimental, extractParametersFromSchema, finalizeRunEvents, generateMcpToolInstructions, getCommonConfig, getSdkClientOptions, isA2UIEnabled, isIntelligenceRuntime, isThreadAccessDeniedError, langGraphPlatformEndpoint, resolveAgents, resolveEndpointType, resolveModel, runAgentInThread, supportsLocalThreadEndpoints, toFetchCorsConfig, transformRecordedEvents, ɵBoundedThreadStore, ɵGLOBAL_STORE, ɵINMEMORY_DEFAULTS, ɵOWNER_RETENTION_DEFAULTS, ɵOwnerRetention, ɵSERVER_THREAD_OWNER, ɵestimateBytes, ɵnormalizeLimits, ɵresolveThreadOwner };
package/dist/index.d.mts CHANGED
@@ -22,4 +22,5 @@ import { CopilotKitRuntimeHooks, ErrorHookContext, HandlerHookContext, HookConte
22
22
  import { CopilotKitCorsConfig } from "./runtime/core/fetch-cors.mjs";
23
23
  import { CopilotKitRuntimeFetchHandler, CopilotKitRuntimeFetchHandlerWithChannels, CopilotKitRuntimeHandlerOptions, createCopilotKitRuntimeHandler } from "./runtime/core/fetch-handler.mjs";
24
24
  import "./runtime/index.mjs";
25
- export { A2UIMiddleware, A2UIMiddlewareConfig, A2UIV09BridgeMiddleware, A2UIVersion, AgentFactoryContext, AgentRunner, AgentRunnerConnectRequest, AgentRunnerIsRunningRequest, AgentRunnerRunRequest, AgentRunnerStopRequest, AgentsConfig, AgentsFactory, ArgsParser, ChannelStatus, ChannelsControl, CopilotKitCorsConfig, CopilotKitIntelligence, CopilotKitIntelligenceConfig, CopilotKitIntelligenceRuntime, CopilotKitIntelligenceRuntimeLike, CopilotKitIntelligenceRuntimeOptions, CopilotKitRuntime, CopilotKitRuntimeConstructor, CopilotKitRuntimeFetchHandler, CopilotKitRuntimeFetchHandlerWithChannels, CopilotKitRuntimeHandlerOptions, CopilotKitRuntimeHooks, CopilotKitRuntimeLearningConfig, CopilotKitRuntimeLearningContext, CopilotKitRuntimeLike, CopilotKitRuntimeLogger, CopilotKitRuntimeMemoryConfig, CopilotKitRuntimeOptions, CopilotKitRuntimeUser, CopilotKitSseRuntime, CopilotKitSseRuntimeLike, CopilotKitSseRuntimeOptions, CreateThreadRequest, ErrorHookContext, FinalizeRunOptions, GenerateSandboxedUIParams, GenerativeUIMiddleware, GenerativeUIOptions, GenerativeUISurfaceWriter, GetLearnedSkillsSnapshotRequest, GetLearnedSkillsSnapshotsRequest, GetLearningContainerId, GetTrajectoryLearningContainerIds, HandlerHookContext, HookContext, IdentifyUserCallback, InMemoryAgentRunner, InMemoryAgentRunnerOptions, InMemoryLimits, InMemoryThread, IntelligenceAgentRunner, IntelligenceAgentRunnerOptions, LearnedSkillsBatchResult, LearnedSkillsError, LearnedSkillsErrorCode, LearnedSkillsSnapshotResult, LearningContainerSelectorInput, ListThreadsResponse, LocalThreadEndpointRecord, LocalThreadEndpointRunner, LocalThreadEndpointScope, McpAppsConfig, McpAppsServerConfig, MemoryAccess, MemoryConsumer, MemoryGrant, OnParamEvent, OpenGenerativeUIConfig, OpenGenerativeUIMiddleware, OpenGenerativeUIOptions, PlatformRequestError, RecordedEventTransformOptions, ResponseHookContext, RouteInfo, RunAgentInThreadOptions, RunAgentInThreadResult, RunAgentInThreadRuntime, RunEventFinalizer, RunnerEventDeliveryStats, RunnerEventQueueFullError, RunnerStartupBoundary, RuntimeWithDeclaredChannels, STOP_RECORD_DEADLINE_MS, SubscribeToThreadsRequest, SubscribeToThreadsResponse, THREAD_ACCESS_DENIED_ERROR_CODE, ThreadAccessDeniedError, ThreadAccessMode, ThreadAlreadyRunningError, ThreadNameGenerationConfig, ThreadOwnershipRunner, ThreadRunError, ThreadRunErrorReason, ThreadSummary, ThreadsConfig, TrajectoryLearningContainerSelectorInput, TranscribeFileOptions, TranscriptionService, UpdateThreadRequest, VERSION, createCopilotKitRuntimeHandler, createRunEventFinalizer, createSurfaceWriter, enforcesThreadOwnership, experimental_d_exports as experimental, finalizeRunEvents, isIntelligenceRuntime, isThreadAccessDeniedError, resolveAgents, runAgentInThread, supportsLocalThreadEndpoints, transformRecordedEvents, ɵBoundedThreadStore, ɵGLOBAL_STORE, ɵINMEMORY_DEFAULTS, ɵOWNER_RETENTION_DEFAULTS, ɵOwnerRetention, ɵSERVER_THREAD_OWNER, ɵestimateBytes, ɵnormalizeLimits, ɵresolveThreadOwner };
25
+ import { 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 } from "./removed-exports.mjs";
26
+ export { A2UIMiddleware, A2UIMiddlewareConfig, A2UIV09BridgeMiddleware, A2UIVersion, AgentFactoryContext, AgentRunner, AgentRunnerConnectRequest, AgentRunnerIsRunningRequest, AgentRunnerRunRequest, AgentRunnerStopRequest, AgentsConfig, AgentsFactory, AnthropicAdapter, AnthropicAdapterParams, AnthropicPromptCachingConfig, ArgsParser, BasicAgent, BasicAgentConfiguration, BedrockAdapter, BedrockAdapterParams, BuiltInAgentModel, ChannelStatus, ChannelsControl, CommonConfig, CopilotEndpointCorsConfig, CopilotExpressEndpointParams, CopilotExpressRouter, CopilotHonoApp, CopilotKitCorsConfig, CopilotKitIntelligence, CopilotKitIntelligenceConfig, CopilotKitIntelligenceRuntime, CopilotKitIntelligenceRuntimeLike, CopilotKitIntelligenceRuntimeOptions, CopilotKitRequestHandler, CopilotKitRuntime, CopilotKitRuntimeConstructor, CopilotKitRuntimeFetchHandler, CopilotKitRuntimeFetchHandlerWithChannels, CopilotKitRuntimeHandlerOptions, CopilotKitRuntimeHooks, CopilotKitRuntimeLearningConfig, CopilotKitRuntimeLearningContext, CopilotKitRuntimeLike, CopilotKitRuntimeLogger, CopilotKitRuntimeMemoryConfig, CopilotKitRuntimeOptions, CopilotKitRuntimeUser, CopilotKitSseRuntime, CopilotKitSseRuntimeLike, CopilotKitSseRuntimeOptions, CopilotRequestContextProperties, CopilotRuntime, CopilotRuntimeChatCompletionRequest, CopilotRuntimeChatCompletionResponse, CopilotRuntimeConstructorParams_BASE, CopilotRuntimeLogger, CopilotServiceAdapter, CreateCopilotRuntimeServerOptions, CreateSafeUrlDownloadOptions, CreateThreadRequest, CustomEventNames, EmptyAdapter, ErrorHookContext, ExperimentalEmptyAdapter, ExperimentalOllamaAdapter, FilterThinkingTextBuffer, FinalizeRunOptions, GenerateSandboxedUIParams, GenerativeUIMiddleware, GenerativeUIOptions, GenerativeUISurfaceWriter, GetLearnedSkillsSnapshotRequest, GetLearnedSkillsSnapshotsRequest, GetLearningContainerId, GetTrajectoryLearningContainerIds, GoogleGenerativeAIAdapter, GraphQLContext, GraphQLRequestContext, GroqAdapter, GroqAdapterParams, GuardrailsValidationFailureResponse, HandlerHookContext, HookContext, IdentifyUserCallback, InMemoryAgentRunner, InMemoryAgentRunnerOptions, InMemoryLimits, InMemoryThread, IntelligenceAgentRunner, IntelligenceAgentRunnerOptions, LangChainAdapter, LangGraphAgent, LangGraphHttpAgent, LearnedSkillsBatchResult, LearnedSkillsError, LearnedSkillsErrorCode, LearnedSkillsSnapshotResult, LearningContainerSelectorInput, ListThreadsResponse, LocalThreadEndpointRecord, LocalThreadEndpointRunner, LocalThreadEndpointScope, LogLevel, MCPClient, MCPClientConfig, MCPClientConfigHTTP, MCPClientConfigSSE, MCPClientProvider, MCPEndpointConfig, MCPTool, MCPTransport, McpAppsConfig, McpAppsServerConfig, MemoryAccess, MemoryConsumer, MemoryGrant, MessageConversionOptions, MessageStreamInterruptedResponse, ModelSpecifier, OnParamEvent, OpenAIAdapter, OpenAIAdapterParams, OpenAIAssistantAdapter, OpenAIAssistantAdapterParams, OpenGenerativeUIConfig, OpenGenerativeUIMiddleware, OpenGenerativeUIOptions, PlatformRequestError, PredictStateTool, RecordedEventTransformOptions, RemoteChain, RemoteChainParameters, ResponseHookContext, RouteInfo, RunAgentInThreadOptions, RunAgentInThreadResult, RunAgentInThreadRuntime, RunEventFinalizer, RunnerEventDeliveryStats, RunnerEventQueueFullError, RunnerStartupBoundary, RuntimeWithDeclaredChannels, STOP_RECORD_DEADLINE_MS, SafeUrlDownloadOptions, SdkClientLike, SubscribeToThreadsRequest, SubscribeToThreadsResponse, THREAD_ACCESS_DENIED_ERROR_CODE, TelemetryAgentRunner, TelemetryAgentRunnerConfig, TextMessageEvents, ThreadAccessDeniedError, ThreadAccessMode, ThreadAlreadyRunningError, ThreadNameGenerationConfig, ThreadOwnershipRunner, ThreadRunError, ThreadRunErrorReason, ThreadSummary, ThreadsConfig, ToolCallEvents, TrajectoryLearningContainerSelectorInput, TranscribeFileOptions, TranscriptionService, UnifyAdapter, UnifyAdapterParams, UnknownErrorResponse, UpdateThreadRequest, VERSION, buildSchema, classifyModelSpec, convertJsonSchemaToZodSchema, convertMCPToolsToActions, convertMessagesToVercelAISDKMessages, convertServiceAdapterError, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, copilotKitEndpoint, copilotRuntimeNestEndpoint, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint, copilotRuntimeNodeExpressEndpoint, copilotRuntimeNodeHttpEndpoint, createCopilotEndpoint, createCopilotEndpointExpress, createCopilotEndpointSingleRoute, createCopilotEndpointSingleRouteExpress, createCopilotExpressHandler, createCopilotHonoHandler, createCopilotKitRuntimeHandler, createLogger, createRunEventFinalizer, createSafeUrlDownload, createSurfaceWriter, enforcesThreadOwnership, experimental_d_exports as experimental, extractParametersFromSchema, finalizeRunEvents, generateMcpToolInstructions, getCommonConfig, getSdkClientOptions, isA2UIEnabled, isIntelligenceRuntime, isThreadAccessDeniedError, langGraphPlatformEndpoint, resolveAgents, resolveEndpointType, resolveModel, runAgentInThread, supportsLocalThreadEndpoints, toFetchCorsConfig, transformRecordedEvents, ɵBoundedThreadStore, ɵGLOBAL_STORE, ɵINMEMORY_DEFAULTS, ɵOWNER_RETENTION_DEFAULTS, ɵOwnerRetention, ɵSERVER_THREAD_OWNER, ɵestimateBytes, ɵnormalizeLimits, ɵresolveThreadOwner };
package/dist/index.mjs CHANGED
@@ -14,5 +14,6 @@ import { createRunEventFinalizer, finalizeRunEvents } from "./runtime/runner/ind
14
14
  import { TranscriptionService } from "./runtime/transcription-service/transcription-service.mjs";
15
15
  import { ThreadRunError, runAgentInThread } from "./runtime/core/thread-run.mjs";
16
16
  import { createCopilotKitRuntimeHandler } from "./runtime/core/fetch-handler.mjs";
17
+ import { AnthropicAdapter, BasicAgent, BedrockAdapter, CopilotRuntime, EmptyAdapter, ExperimentalEmptyAdapter, ExperimentalOllamaAdapter, FilterThinkingTextBuffer, GoogleGenerativeAIAdapter, GroqAdapter, GuardrailsValidationFailureResponse, LangChainAdapter, LangGraphAgent, LangGraphHttpAgent, MessageStreamInterruptedResponse, OpenAIAdapter, OpenAIAssistantAdapter, RemoteChain, TelemetryAgentRunner, UnifyAdapter, 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 } from "./removed-exports.mjs";
17
18
 
18
- export { A2UIMiddleware, A2UIV09BridgeMiddleware, AgentRunner, ArgsParser, CopilotKitIntelligence, CopilotKitIntelligenceRuntime, CopilotKitRuntime, CopilotKitSseRuntime, GenerativeUIMiddleware, InMemoryAgentRunner, IntelligenceAgentRunner, LearnedSkillsError, OpenGenerativeUIMiddleware, PlatformRequestError, RunnerEventQueueFullError, STOP_RECORD_DEADLINE_MS, THREAD_ACCESS_DENIED_ERROR_CODE, ThreadAccessDeniedError, ThreadAlreadyRunningError, ThreadRunError, TranscriptionService, VERSION, createCopilotKitRuntimeHandler, createRunEventFinalizer, createSurfaceWriter, enforcesThreadOwnership, finalizeRunEvents, isIntelligenceRuntime, isThreadAccessDeniedError, resolveAgents, runAgentInThread, supportsLocalThreadEndpoints, transformRecordedEvents, ɵBoundedThreadStore, ɵGLOBAL_STORE, ɵINMEMORY_DEFAULTS, ɵOWNER_RETENTION_DEFAULTS, ɵSERVER_THREAD_OWNER, ɵestimateBytes, ɵnormalizeLimits, ɵresolveThreadOwner };
19
+ export { A2UIMiddleware, A2UIV09BridgeMiddleware, AgentRunner, AnthropicAdapter, ArgsParser, BasicAgent, BedrockAdapter, CopilotKitIntelligence, CopilotKitIntelligenceRuntime, CopilotKitRuntime, CopilotKitSseRuntime, CopilotRuntime, EmptyAdapter, ExperimentalEmptyAdapter, ExperimentalOllamaAdapter, FilterThinkingTextBuffer, GenerativeUIMiddleware, GoogleGenerativeAIAdapter, GroqAdapter, GuardrailsValidationFailureResponse, InMemoryAgentRunner, IntelligenceAgentRunner, LangChainAdapter, LangGraphAgent, LangGraphHttpAgent, LearnedSkillsError, MessageStreamInterruptedResponse, OpenAIAdapter, OpenAIAssistantAdapter, OpenGenerativeUIMiddleware, PlatformRequestError, RemoteChain, RunnerEventQueueFullError, STOP_RECORD_DEADLINE_MS, THREAD_ACCESS_DENIED_ERROR_CODE, TelemetryAgentRunner, ThreadAccessDeniedError, ThreadAlreadyRunningError, ThreadRunError, TranscriptionService, UnifyAdapter, UnknownErrorResponse, VERSION, buildSchema, classifyModelSpec, convertJsonSchemaToZodSchema, convertMCPToolsToActions, convertMessagesToVercelAISDKMessages, convertServiceAdapterError, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, copilotKitEndpoint, copilotRuntimeNestEndpoint, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint, copilotRuntimeNodeExpressEndpoint, copilotRuntimeNodeHttpEndpoint, createCopilotEndpoint, createCopilotEndpointExpress, createCopilotEndpointSingleRoute, createCopilotEndpointSingleRouteExpress, createCopilotExpressHandler, createCopilotHonoHandler, createCopilotKitRuntimeHandler, createLogger, createRunEventFinalizer, createSafeUrlDownload, createSurfaceWriter, enforcesThreadOwnership, extractParametersFromSchema, finalizeRunEvents, generateMcpToolInstructions, getCommonConfig, getSdkClientOptions, isA2UIEnabled, isIntelligenceRuntime, isThreadAccessDeniedError, langGraphPlatformEndpoint, resolveAgents, resolveEndpointType, resolveModel, runAgentInThread, supportsLocalThreadEndpoints, toFetchCorsConfig, transformRecordedEvents, ɵBoundedThreadStore, ɵGLOBAL_STORE, ɵINMEMORY_DEFAULTS, ɵOWNER_RETENTION_DEFAULTS, ɵSERVER_THREAD_OWNER, ɵestimateBytes, ɵnormalizeLimits, ɵresolveThreadOwner };
@@ -0,0 +1,370 @@
1
+ let _copilotkit_shared = require("@copilotkit/shared");
2
+
3
+ //#region src/removed-exports.ts
4
+ /** @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 */
5
+ const AnthropicAdapter = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
6
+ name: "AnthropicAdapter",
7
+ 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.",
8
+ docs: "/migrate/v2#update-the-runtime"
9
+ });
10
+ /** @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 */
11
+ const BasicAgent = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
12
+ name: "BasicAgent",
13
+ use: "Use BuiltInAgent from @copilotkit/runtime/agent.",
14
+ docs: "/migrate/removed-apis-2.0#runtime"
15
+ });
16
+ /** @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 */
17
+ const BedrockAdapter = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
18
+ name: "BedrockAdapter",
19
+ 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.",
20
+ docs: "/migrate/v2#update-the-runtime"
21
+ });
22
+ /** @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 */
23
+ const buildSchema = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
24
+ name: "buildSchema",
25
+ use: "CopilotKit 2.0 has no GraphQL endpoint. Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime.",
26
+ docs: "/migrate/v2#update-the-runtime"
27
+ });
28
+ /** @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 */
29
+ const classifyModelSpec = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
30
+ name: "classifyModelSpec",
31
+ 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.",
32
+ docs: "/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec"
33
+ });
34
+ /** @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 */
35
+ const convertJsonSchemaToZodSchema = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
36
+ name: "convertJsonSchemaToZodSchema",
37
+ 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.",
38
+ docs: "/migrate/runtime-2.0#built-in-agent"
39
+ });
40
+ /** @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 */
41
+ const convertMCPToolsToActions = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
42
+ name: "convertMCPToolsToActions",
43
+ use: "Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }.",
44
+ docs: "/migrate/runtime-2.0#4-replace-mcpservers-with-mcp"
45
+ });
46
+ /** @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 */
47
+ const convertMessagesToVercelAISDKMessages = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
48
+ name: "convertMessagesToVercelAISDKMessages",
49
+ 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.",
50
+ docs: "/migrate/runtime-2.0#built-in-agent"
51
+ });
52
+ /** @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 */
53
+ const convertServiceAdapterError = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
54
+ name: "convertServiceAdapterError",
55
+ 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.",
56
+ docs: "/migrate/v2#update-the-runtime"
57
+ });
58
+ /** @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 */
59
+ const convertToolDefinitionsToVercelAITools = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
60
+ name: "convertToolDefinitionsToVercelAITools",
61
+ 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.",
62
+ docs: "/migrate/runtime-2.0#built-in-agent"
63
+ });
64
+ /** @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 */
65
+ const convertToolsToVercelAITools = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
66
+ name: "convertToolsToVercelAITools",
67
+ 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.",
68
+ docs: "/migrate/runtime-2.0#built-in-agent"
69
+ });
70
+ /** @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 */
71
+ const copilotKitEndpoint = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
72
+ name: "copilotKitEndpoint",
73
+ use: "CopilotKitRuntime has no remoteEndpoints. Serve each Python agent over AG-UI, and register it in agents.",
74
+ docs: "/migrate/agents-2.0#python-sdk-endpoint"
75
+ });
76
+ /** @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 */
77
+ const CopilotRuntime = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
78
+ name: "CopilotRuntime",
79
+ 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.",
80
+ docs: "/migrate/v2#update-the-runtime"
81
+ });
82
+ /** @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 */
83
+ const copilotRuntimeNestEndpoint = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
84
+ name: "copilotRuntimeNestEndpoint",
85
+ use: "Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.",
86
+ docs: "/migrate/runtime-2.0#node-and-express"
87
+ });
88
+ /** @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 */
89
+ const copilotRuntimeNextJSAppRouterEndpoint = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
90
+ name: "copilotRuntimeNextJSAppRouterEndpoint",
91
+ use: "Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime, and export the handler as GET and POST from app/api/copilotkit/[[...slug]]/route.ts.",
92
+ docs: "/migrate/runtime-2.0#fetch-and-nextjs"
93
+ });
94
+ /** @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 */
95
+ const copilotRuntimeNextJSPagesRouterEndpoint = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
96
+ name: "copilotRuntimeNextJSPagesRouterEndpoint",
97
+ use: "Serve the runtime with createCopilotKitNodeHandler from @copilotkit/runtime/node.",
98
+ docs: "/migrate/runtime-2.0#node-and-express"
99
+ });
100
+ /** @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 */
101
+ const copilotRuntimeNodeExpressEndpoint = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
102
+ name: "copilotRuntimeNodeExpressEndpoint",
103
+ use: "Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.",
104
+ docs: "/migrate/runtime-2.0#node-and-express"
105
+ });
106
+ /** @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 */
107
+ const copilotRuntimeNodeHttpEndpoint = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
108
+ name: "copilotRuntimeNodeHttpEndpoint",
109
+ use: "Serve the runtime with createCopilotKitNodeListener from @copilotkit/runtime/node.",
110
+ docs: "/migrate/runtime-2.0#node-and-express"
111
+ });
112
+ /** @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 */
113
+ const createCopilotEndpoint = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
114
+ name: "createCopilotEndpoint",
115
+ use: "Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw.",
116
+ docs: "/migrate/runtime-2.0#fetch-and-nextjs"
117
+ });
118
+ /** @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 */
119
+ const createCopilotEndpointExpress = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
120
+ name: "createCopilotEndpointExpress",
121
+ use: "Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.",
122
+ docs: "/migrate/runtime-2.0#node-and-express"
123
+ });
124
+ /** @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 */
125
+ const createCopilotEndpointSingleRoute = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
126
+ name: "createCopilotEndpointSingleRoute",
127
+ use: "Use createCopilotKitRuntimeHandler from @copilotkit/runtime with mode: \"single-route\".",
128
+ docs: "/migrate/runtime-2.0#single-route-endpoints"
129
+ });
130
+ /** @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 */
131
+ const createCopilotEndpointSingleRouteExpress = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
132
+ name: "createCopilotEndpointSingleRouteExpress",
133
+ use: "Use createCopilotKitNodeListener from @copilotkit/runtime/node with mode: \"single-route\".",
134
+ docs: "/migrate/runtime-2.0#single-route-endpoints"
135
+ });
136
+ /** @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 */
137
+ const createCopilotExpressHandler = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
138
+ name: "createCopilotExpressHandler",
139
+ use: "Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.",
140
+ docs: "/migrate/runtime-2.0#node-and-express"
141
+ });
142
+ /** @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 */
143
+ const createCopilotHonoHandler = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
144
+ name: "createCopilotHonoHandler",
145
+ use: "Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw.",
146
+ docs: "/migrate/runtime-2.0#fetch-and-nextjs"
147
+ });
148
+ /** @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 */
149
+ const createLogger = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
150
+ name: "createLogger",
151
+ use: "Pass a logger (CopilotKitRuntimeLogger) to CopilotKitRuntime from @copilotkit/runtime, or set debug: true for debug logs.",
152
+ docs: "/migrate/runtime-2.0#debug-logs"
153
+ });
154
+ /** @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 */
155
+ const createSafeUrlDownload = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
156
+ name: "createSafeUrlDownload",
157
+ 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.",
158
+ docs: "/migrate/runtime-2.0#built-in-agent"
159
+ });
160
+ /** @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 */
161
+ const EmptyAdapter = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
162
+ name: "EmptyAdapter",
163
+ use: "CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime.",
164
+ docs: "/migrate/v2#update-the-runtime"
165
+ });
166
+ /** @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 */
167
+ const ExperimentalEmptyAdapter = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
168
+ name: "ExperimentalEmptyAdapter",
169
+ use: "CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime.",
170
+ docs: "/migrate/v2#update-the-runtime"
171
+ });
172
+ /** @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 */
173
+ const ExperimentalOllamaAdapter = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
174
+ name: "ExperimentalOllamaAdapter",
175
+ 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.",
176
+ docs: "/migrate/v2#update-the-runtime"
177
+ });
178
+ /** @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 */
179
+ const extractParametersFromSchema = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
180
+ name: "extractParametersFromSchema",
181
+ use: "Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }.",
182
+ docs: "/migrate/runtime-2.0#4-replace-mcpservers-with-mcp"
183
+ });
184
+ /** @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 */
185
+ const FilterThinkingTextBuffer = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
186
+ name: "FilterThinkingTextBuffer",
187
+ 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.",
188
+ docs: "/migrate/v2#update-the-runtime"
189
+ });
190
+ /** @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 */
191
+ const generateMcpToolInstructions = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
192
+ name: "generateMcpToolInstructions",
193
+ use: "Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }.",
194
+ docs: "/migrate/runtime-2.0#4-replace-mcpservers-with-mcp"
195
+ });
196
+ /** @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 */
197
+ const getCommonConfig = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
198
+ name: "getCommonConfig",
199
+ 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.",
200
+ docs: "/migrate/v2#update-the-runtime"
201
+ });
202
+ /** @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 */
203
+ const getSdkClientOptions = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
204
+ name: "getSdkClientOptions",
205
+ 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.",
206
+ docs: "/migrate/v2#update-the-runtime"
207
+ });
208
+ /** @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 */
209
+ const GoogleGenerativeAIAdapter = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
210
+ name: "GoogleGenerativeAIAdapter",
211
+ 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.",
212
+ docs: "/migrate/v2#update-the-runtime"
213
+ });
214
+ /** @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 */
215
+ const GroqAdapter = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
216
+ name: "GroqAdapter",
217
+ 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.",
218
+ docs: "/migrate/v2#update-the-runtime"
219
+ });
220
+ /** @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 */
221
+ const GuardrailsValidationFailureResponse = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
222
+ name: "GuardrailsValidationFailureResponse",
223
+ use: "CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event.",
224
+ docs: "/migrate/v2#update-the-runtime"
225
+ });
226
+ /** @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 */
227
+ const isA2UIEnabled = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
228
+ name: "isA2UIEnabled",
229
+ use: "The runtime a2ui option is now generativeUI: { a2uiVersion: \"0.9\" }. Read generativeUI on your runtime options.",
230
+ docs: "/migrate/generative-ui-2.0#a2ui-v09-renderer"
231
+ });
232
+ /** @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 */
233
+ const LangChainAdapter = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
234
+ name: "LangChainAdapter",
235
+ 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.",
236
+ docs: "/migrate/v2#update-the-runtime"
237
+ });
238
+ /** @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 */
239
+ const LangGraphAgent = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
240
+ name: "LangGraphAgent",
241
+ use: "Import LangGraphAgent from @ag-ui/langgraph. The constructor options are the same.",
242
+ docs: "/migrate/agents-2.0#langgraph-agents"
243
+ });
244
+ /** @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 */
245
+ const LangGraphHttpAgent = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
246
+ name: "LangGraphHttpAgent",
247
+ use: "Import LangGraphHttpAgent from @ag-ui/langgraph. The constructor options are the same.",
248
+ docs: "/migrate/agents-2.0#langgraph-agents"
249
+ });
250
+ /** @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 */
251
+ const langGraphPlatformEndpoint = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
252
+ name: "langGraphPlatformEndpoint",
253
+ use: "CopilotKitRuntime has no remoteEndpoints. Create a LangGraphAgent from @ag-ui/langgraph for each agent, and pass it in agents.",
254
+ docs: "/migrate/agents-2.0#langgraph-platform"
255
+ });
256
+ /** @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 */
257
+ const MessageStreamInterruptedResponse = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
258
+ name: "MessageStreamInterruptedResponse",
259
+ use: "CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event.",
260
+ docs: "/migrate/v2#update-the-runtime"
261
+ });
262
+ /** @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 */
263
+ const OpenAIAdapter = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
264
+ name: "OpenAIAdapter",
265
+ 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.",
266
+ docs: "/migrate/v2#update-the-runtime"
267
+ });
268
+ /** @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 */
269
+ const OpenAIAssistantAdapter = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
270
+ name: "OpenAIAssistantAdapter",
271
+ 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.",
272
+ docs: "/migrate/v2#update-the-runtime"
273
+ });
274
+ /** @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 */
275
+ const RemoteChain = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
276
+ name: "RemoteChain",
277
+ 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.",
278
+ docs: "/migrate/v2#update-the-runtime"
279
+ });
280
+ /** @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 */
281
+ const resolveEndpointType = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
282
+ name: "resolveEndpointType",
283
+ use: "CopilotKitRuntime has no remoteEndpoints. Register each agent in agents on CopilotKitRuntime from @copilotkit/runtime.",
284
+ docs: "/migrate/agents-2.0#langgraph-platform"
285
+ });
286
+ /** @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 */
287
+ const resolveModel = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
288
+ name: "resolveModel",
289
+ 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.",
290
+ docs: "/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec"
291
+ });
292
+ /** @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 */
293
+ const TelemetryAgentRunner = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
294
+ name: "TelemetryAgentRunner",
295
+ use: "Delete the wrapper, and pass your runner as runner on CopilotKitRuntime. The runtime reports telemetry by itself.",
296
+ docs: "/migrate/shared-2.0#telemetry-entry-point-removed"
297
+ });
298
+ /** @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 */
299
+ const toFetchCorsConfig = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
300
+ name: "toFetchCorsConfig",
301
+ use: "Pass a CopilotKitCorsConfig as the cors option of createCopilotKitRuntimeHandler from @copilotkit/runtime.",
302
+ docs: "/migrate/runtime-2.0#cors-and-lifecycle"
303
+ });
304
+ /** @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 */
305
+ const UnifyAdapter = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
306
+ name: "UnifyAdapter",
307
+ 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.",
308
+ docs: "/migrate/v2#update-the-runtime"
309
+ });
310
+ /** @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 */
311
+ const UnknownErrorResponse = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
312
+ name: "UnknownErrorResponse",
313
+ use: "CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event.",
314
+ docs: "/migrate/v2#update-the-runtime"
315
+ });
316
+
317
+ //#endregion
318
+ exports.AnthropicAdapter = AnthropicAdapter;
319
+ exports.BasicAgent = BasicAgent;
320
+ exports.BedrockAdapter = BedrockAdapter;
321
+ exports.CopilotRuntime = CopilotRuntime;
322
+ exports.EmptyAdapter = EmptyAdapter;
323
+ exports.ExperimentalEmptyAdapter = ExperimentalEmptyAdapter;
324
+ exports.ExperimentalOllamaAdapter = ExperimentalOllamaAdapter;
325
+ exports.FilterThinkingTextBuffer = FilterThinkingTextBuffer;
326
+ exports.GoogleGenerativeAIAdapter = GoogleGenerativeAIAdapter;
327
+ exports.GroqAdapter = GroqAdapter;
328
+ exports.GuardrailsValidationFailureResponse = GuardrailsValidationFailureResponse;
329
+ exports.LangChainAdapter = LangChainAdapter;
330
+ exports.LangGraphAgent = LangGraphAgent;
331
+ exports.LangGraphHttpAgent = LangGraphHttpAgent;
332
+ exports.MessageStreamInterruptedResponse = MessageStreamInterruptedResponse;
333
+ exports.OpenAIAdapter = OpenAIAdapter;
334
+ exports.OpenAIAssistantAdapter = OpenAIAssistantAdapter;
335
+ exports.RemoteChain = RemoteChain;
336
+ exports.TelemetryAgentRunner = TelemetryAgentRunner;
337
+ exports.UnifyAdapter = UnifyAdapter;
338
+ exports.UnknownErrorResponse = UnknownErrorResponse;
339
+ exports.buildSchema = buildSchema;
340
+ exports.classifyModelSpec = classifyModelSpec;
341
+ exports.convertJsonSchemaToZodSchema = convertJsonSchemaToZodSchema;
342
+ exports.convertMCPToolsToActions = convertMCPToolsToActions;
343
+ exports.convertMessagesToVercelAISDKMessages = convertMessagesToVercelAISDKMessages;
344
+ exports.convertServiceAdapterError = convertServiceAdapterError;
345
+ exports.convertToolDefinitionsToVercelAITools = convertToolDefinitionsToVercelAITools;
346
+ exports.convertToolsToVercelAITools = convertToolsToVercelAITools;
347
+ exports.copilotKitEndpoint = copilotKitEndpoint;
348
+ exports.copilotRuntimeNestEndpoint = copilotRuntimeNestEndpoint;
349
+ exports.copilotRuntimeNextJSAppRouterEndpoint = copilotRuntimeNextJSAppRouterEndpoint;
350
+ exports.copilotRuntimeNextJSPagesRouterEndpoint = copilotRuntimeNextJSPagesRouterEndpoint;
351
+ exports.copilotRuntimeNodeExpressEndpoint = copilotRuntimeNodeExpressEndpoint;
352
+ exports.copilotRuntimeNodeHttpEndpoint = copilotRuntimeNodeHttpEndpoint;
353
+ exports.createCopilotEndpoint = createCopilotEndpoint;
354
+ exports.createCopilotEndpointExpress = createCopilotEndpointExpress;
355
+ exports.createCopilotEndpointSingleRoute = createCopilotEndpointSingleRoute;
356
+ exports.createCopilotEndpointSingleRouteExpress = createCopilotEndpointSingleRouteExpress;
357
+ exports.createCopilotExpressHandler = createCopilotExpressHandler;
358
+ exports.createCopilotHonoHandler = createCopilotHonoHandler;
359
+ exports.createLogger = createLogger;
360
+ exports.createSafeUrlDownload = createSafeUrlDownload;
361
+ exports.extractParametersFromSchema = extractParametersFromSchema;
362
+ exports.generateMcpToolInstructions = generateMcpToolInstructions;
363
+ exports.getCommonConfig = getCommonConfig;
364
+ exports.getSdkClientOptions = getSdkClientOptions;
365
+ exports.isA2UIEnabled = isA2UIEnabled;
366
+ exports.langGraphPlatformEndpoint = langGraphPlatformEndpoint;
367
+ exports.resolveEndpointType = resolveEndpointType;
368
+ exports.resolveModel = resolveModel;
369
+ exports.toFetchCorsConfig = toFetchCorsConfig;
370
+ //# sourceMappingURL=removed-exports.cjs.map