@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 +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 +52 -0
- package/dist/v2/index.cjs.map +1 -1
- package/dist/v2/index.d.cts +189 -0
- package/dist/v2/index.d.cts.map +1 -1
- package/dist/v2/index.d.mts +189 -0
- package/dist/v2/index.d.mts.map +1 -1
- package/dist/v2/index.mjs +2 -1
- package/dist/v2/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/v2/index.cjs
CHANGED
|
@@ -13,6 +13,7 @@ const require_recorded_events = require('../runtime/event-transforms/recorded-ev
|
|
|
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
|
const require_aisdk = require('../agent/converters/aisdk.cjs');
|
|
17
18
|
const require_tanstack = require('../agent/converters/tanstack.cjs');
|
|
18
19
|
const require_agent = require('../agent.cjs');
|
|
@@ -70,7 +71,10 @@ Object.defineProperty(exports, 'A2UIMiddleware', {
|
|
|
70
71
|
});
|
|
71
72
|
exports.A2UIV09BridgeMiddleware = require_a2ui_v09_middleware.A2UIV09BridgeMiddleware;
|
|
72
73
|
exports.AgentRunner = require_agent_runner.AgentRunner;
|
|
74
|
+
exports.AnthropicAdapter = require_removed_exports.AnthropicAdapter;
|
|
73
75
|
exports.ArgsParser = require_open_generative_ui_middleware.ArgsParser;
|
|
76
|
+
exports.BasicAgent = require_removed_exports.BasicAgent;
|
|
77
|
+
exports.BedrockAdapter = require_removed_exports.BedrockAdapter;
|
|
74
78
|
exports.BuiltInAgent = require_agent.BuiltInAgent;
|
|
75
79
|
exports.CopilotIntelligenceRuntime = CopilotIntelligenceRuntime;
|
|
76
80
|
exports.CopilotKitIntelligence = require_client.CopilotKitIntelligence;
|
|
@@ -79,46 +83,94 @@ exports.CopilotKitRuntime = require_runtime.CopilotKitRuntime;
|
|
|
79
83
|
exports.CopilotKitSseRuntime = require_runtime.CopilotKitSseRuntime;
|
|
80
84
|
exports.CopilotRuntime = CopilotRuntime;
|
|
81
85
|
exports.CopilotSseRuntime = CopilotSseRuntime;
|
|
86
|
+
exports.EmptyAdapter = require_removed_exports.EmptyAdapter;
|
|
87
|
+
exports.ExperimentalEmptyAdapter = require_removed_exports.ExperimentalEmptyAdapter;
|
|
88
|
+
exports.ExperimentalOllamaAdapter = require_removed_exports.ExperimentalOllamaAdapter;
|
|
89
|
+
exports.FilterThinkingTextBuffer = require_removed_exports.FilterThinkingTextBuffer;
|
|
82
90
|
exports.GenerativeUIMiddleware = require_generative_ui_middleware.GenerativeUIMiddleware;
|
|
91
|
+
exports.GoogleGenerativeAIAdapter = require_removed_exports.GoogleGenerativeAIAdapter;
|
|
92
|
+
exports.GroqAdapter = require_removed_exports.GroqAdapter;
|
|
93
|
+
exports.GuardrailsValidationFailureResponse = require_removed_exports.GuardrailsValidationFailureResponse;
|
|
83
94
|
exports.InMemoryAgentRunner = require_in_memory.InMemoryAgentRunner;
|
|
84
95
|
exports.IntelligenceAgentRunner = require_intelligence.IntelligenceAgentRunner;
|
|
85
96
|
exports.InterruptSignal = require_agent.InterruptSignal;
|
|
97
|
+
exports.LangChainAdapter = require_removed_exports.LangChainAdapter;
|
|
98
|
+
exports.LangGraphAgent = require_removed_exports.LangGraphAgent;
|
|
99
|
+
exports.LangGraphHttpAgent = require_removed_exports.LangGraphHttpAgent;
|
|
86
100
|
exports.LearnedSkillsError = require_learned_skills.LearnedSkillsError;
|
|
101
|
+
exports.MessageStreamInterruptedResponse = require_removed_exports.MessageStreamInterruptedResponse;
|
|
102
|
+
exports.OpenAIAdapter = require_removed_exports.OpenAIAdapter;
|
|
103
|
+
exports.OpenAIAssistantAdapter = require_removed_exports.OpenAIAssistantAdapter;
|
|
87
104
|
exports.OpenGenerativeUIMiddleware = require_open_generative_ui_middleware.OpenGenerativeUIMiddleware;
|
|
88
105
|
exports.PlatformRequestError = require_client.PlatformRequestError;
|
|
106
|
+
exports.RemoteChain = require_removed_exports.RemoteChain;
|
|
89
107
|
exports.RunnerEventQueueFullError = require_intelligence.RunnerEventQueueFullError;
|
|
90
108
|
exports.STOP_RECORD_DEADLINE_MS = require_intelligence.STOP_RECORD_DEADLINE_MS;
|
|
91
109
|
exports.THREAD_ACCESS_DENIED_ERROR_CODE = require_agent_runner.THREAD_ACCESS_DENIED_ERROR_CODE;
|
|
110
|
+
exports.TelemetryAgentRunner = require_removed_exports.TelemetryAgentRunner;
|
|
92
111
|
exports.ThreadAccessDeniedError = require_agent_runner.ThreadAccessDeniedError;
|
|
93
112
|
exports.ThreadAlreadyRunningError = require_agent_runner.ThreadAlreadyRunningError;
|
|
94
113
|
exports.ThreadRunError = require_thread_run.ThreadRunError;
|
|
95
114
|
exports.TranscriptionService = require_transcription_service.TranscriptionService;
|
|
115
|
+
exports.UnifyAdapter = require_removed_exports.UnifyAdapter;
|
|
116
|
+
exports.UnknownErrorResponse = require_removed_exports.UnknownErrorResponse;
|
|
96
117
|
exports.VERSION = require_runtime.VERSION;
|
|
118
|
+
exports.buildSchema = require_removed_exports.buildSchema;
|
|
119
|
+
exports.classifyModelSpec = require_removed_exports.classifyModelSpec;
|
|
97
120
|
exports.convertAISDKStream = require_aisdk.convertAISDKStream;
|
|
98
121
|
exports.convertInputToTanStackAI = require_tanstack.convertInputToTanStackAI;
|
|
122
|
+
exports.convertJsonSchemaToZodSchema = require_removed_exports.convertJsonSchemaToZodSchema;
|
|
123
|
+
exports.convertMCPToolsToActions = require_removed_exports.convertMCPToolsToActions;
|
|
124
|
+
exports.convertMessagesToVercelAISDKMessages = require_removed_exports.convertMessagesToVercelAISDKMessages;
|
|
125
|
+
exports.convertServiceAdapterError = require_removed_exports.convertServiceAdapterError;
|
|
99
126
|
exports.convertTanStackStream = require_tanstack.convertTanStackStream;
|
|
127
|
+
exports.convertToolDefinitionsToVercelAITools = require_removed_exports.convertToolDefinitionsToVercelAITools;
|
|
128
|
+
exports.convertToolsToVercelAITools = require_removed_exports.convertToolsToVercelAITools;
|
|
129
|
+
exports.copilotKitEndpoint = require_removed_exports.copilotKitEndpoint;
|
|
130
|
+
exports.copilotRuntimeNestEndpoint = require_removed_exports.copilotRuntimeNestEndpoint;
|
|
131
|
+
exports.copilotRuntimeNextJSAppRouterEndpoint = require_removed_exports.copilotRuntimeNextJSAppRouterEndpoint;
|
|
132
|
+
exports.copilotRuntimeNextJSPagesRouterEndpoint = require_removed_exports.copilotRuntimeNextJSPagesRouterEndpoint;
|
|
133
|
+
exports.copilotRuntimeNodeExpressEndpoint = require_removed_exports.copilotRuntimeNodeExpressEndpoint;
|
|
134
|
+
exports.copilotRuntimeNodeHttpEndpoint = require_removed_exports.copilotRuntimeNodeHttpEndpoint;
|
|
135
|
+
exports.createCopilotEndpoint = require_removed_exports.createCopilotEndpoint;
|
|
136
|
+
exports.createCopilotEndpointExpress = require_removed_exports.createCopilotEndpointExpress;
|
|
137
|
+
exports.createCopilotEndpointSingleRoute = require_removed_exports.createCopilotEndpointSingleRoute;
|
|
138
|
+
exports.createCopilotEndpointSingleRouteExpress = require_removed_exports.createCopilotEndpointSingleRouteExpress;
|
|
139
|
+
exports.createCopilotExpressHandler = require_removed_exports.createCopilotExpressHandler;
|
|
140
|
+
exports.createCopilotHonoHandler = require_removed_exports.createCopilotHonoHandler;
|
|
100
141
|
exports.createCopilotKitRuntimeHandler = require_fetch_handler.createCopilotKitRuntimeHandler;
|
|
101
142
|
exports.createCopilotRuntimeHandler = createCopilotRuntimeHandler;
|
|
143
|
+
exports.createLogger = require_removed_exports.createLogger;
|
|
102
144
|
Object.defineProperty(exports, 'createRunEventFinalizer', {
|
|
103
145
|
enumerable: true,
|
|
104
146
|
get: function () {
|
|
105
147
|
return _copilotkit_shared.createRunEventFinalizer;
|
|
106
148
|
}
|
|
107
149
|
});
|
|
150
|
+
exports.createSafeUrlDownload = require_removed_exports.createSafeUrlDownload;
|
|
108
151
|
exports.createSurfaceWriter = require_surface_writer.createSurfaceWriter;
|
|
109
152
|
exports.defineTool = require_agent.defineTool;
|
|
110
153
|
exports.enforcesThreadOwnership = require_agent_runner.enforcesThreadOwnership;
|
|
154
|
+
exports.extractParametersFromSchema = require_removed_exports.extractParametersFromSchema;
|
|
111
155
|
Object.defineProperty(exports, 'finalizeRunEvents', {
|
|
112
156
|
enumerable: true,
|
|
113
157
|
get: function () {
|
|
114
158
|
return _copilotkit_shared.finalizeRunEvents;
|
|
115
159
|
}
|
|
116
160
|
});
|
|
161
|
+
exports.generateMcpToolInstructions = require_removed_exports.generateMcpToolInstructions;
|
|
162
|
+
exports.getCommonConfig = require_removed_exports.getCommonConfig;
|
|
163
|
+
exports.getSdkClientOptions = require_removed_exports.getSdkClientOptions;
|
|
164
|
+
exports.isA2UIEnabled = require_removed_exports.isA2UIEnabled;
|
|
117
165
|
exports.isIntelligenceRuntime = require_runtime.isIntelligenceRuntime;
|
|
118
166
|
exports.isThreadAccessDeniedError = require_agent_runner.isThreadAccessDeniedError;
|
|
167
|
+
exports.langGraphPlatformEndpoint = require_removed_exports.langGraphPlatformEndpoint;
|
|
119
168
|
exports.resolveAgents = require_runtime.resolveAgents;
|
|
169
|
+
exports.resolveEndpointType = require_removed_exports.resolveEndpointType;
|
|
170
|
+
exports.resolveModel = require_removed_exports.resolveModel;
|
|
120
171
|
exports.runAgentInThread = require_thread_run.runAgentInThread;
|
|
121
172
|
exports.supportsLocalThreadEndpoints = require_agent_runner.supportsLocalThreadEndpoints;
|
|
173
|
+
exports.toFetchCorsConfig = require_removed_exports.toFetchCorsConfig;
|
|
122
174
|
exports.transformRecordedEvents = require_recorded_events.transformRecordedEvents;
|
|
123
175
|
exports.ɵBoundedThreadStore = require_in_memory.ɵBoundedThreadStore;
|
|
124
176
|
exports.ɵGLOBAL_STORE = require_in_memory.ɵGLOBAL_STORE;
|
package/dist/v2/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["CopilotKitRuntime","CopilotKitSseRuntime","CopilotKitIntelligenceRuntime","createCopilotKitRuntimeHandler"],"sources":["../../src/v2/index.ts"],"sourcesContent":["/**\n * `@copilotkit/runtime/v2`, the import path of the 2.0 runtime in CopilotKit\n * 1.x. In 2.0 it is a deprecated alias of the package root, so 1.x code that\n * imports from it keeps working. It exports:\n *\n * - every export of `@copilotkit/runtime`;\n * - the Built-in Agent exports that 1.x exported here. 2.0 exports them from\n * `@copilotkit/runtime/agent`;\n * - the 1.x names of the runtime exports that 2.0 renamed with \"Kit\". Each\n * old name is the same value or type as its new name.\n *\n * The root exports only the new names. `npx codemod @copilotkit/v2-migration`\n * moves the imports to the root and renames them. The build marks each name\n * of this entry deprecated in its declarations\n * (scripts/deprecations/v2-subpath-aliases.mts).\n */\nimport {\n CopilotKitIntelligenceRuntime,\n CopilotKitRuntime,\n CopilotKitSseRuntime,\n createCopilotKitRuntimeHandler,\n} from \"../index\";\nimport type {\n CopilotKitCorsConfig,\n CopilotKitIntelligenceRuntimeLike,\n CopilotKitIntelligenceRuntimeOptions,\n CopilotKitRuntimeConstructor,\n CopilotKitRuntimeFetchHandler,\n CopilotKitRuntimeFetchHandlerWithChannels,\n CopilotKitRuntimeHandlerOptions,\n CopilotKitRuntimeHooks,\n CopilotKitRuntimeLearningConfig,\n CopilotKitRuntimeLearningContext,\n CopilotKitRuntimeLike,\n CopilotKitRuntimeLogger,\n CopilotKitRuntimeMemoryConfig,\n CopilotKitRuntimeOptions,\n CopilotKitRuntimeUser,\n CopilotKitSseRuntimeLike,\n CopilotKitSseRuntimeOptions,\n} from \"../index\";\n\nexport * from \"../index\";\n\n// 1.x exported the Built-in Agent from `/v2`. The AI SDK helpers of\n// `@copilotkit/runtime/agent/ai-sdk` stay out: they load the optional `ai`\n// peer, and every `/v2` import would then need it.\nexport {\n BuiltInAgent,\n InterruptSignal,\n convertAISDKStream,\n convertInputToTanStackAI,\n convertTanStackStream,\n defineTool,\n} from \"../agent\";\nexport type {\n BuiltInAgentAISDKFactoryConfig,\n BuiltInAgentClassicConfig,\n BuiltInAgentConfiguration,\n BuiltInAgentCustomFactoryConfig,\n BuiltInAgentFactoryConfig,\n BuiltInAgentFactoryContext,\n BuiltInAgentLearnedSkills,\n BuiltInAgentLearnedSkillsOptions,\n BuiltInAgentTanStackFactoryConfig,\n OverridableProperty,\n TanStackChatMessage,\n TanStackInputResult,\n ToolDefinition,\n} from \"../agent\";\n\n/* ------------------------------------------------------------------------------------------------\n * The 1.x names\n *\n * 2.0 renamed these exports with \"Kit\" after \"Copilot\". Each old name is an\n * alias of its new name: the same value, and the same type.\n * --------------------------------------------------------------------------------------------- */\n\n/**\n * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const CopilotRuntime = CopilotKitRuntime;\n/**\n * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntime = CopilotKitRuntime;\n\n/**\n * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const CopilotSseRuntime = CopilotKitSseRuntime;\n/**\n * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotSseRuntime = CopilotKitSseRuntime;\n\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;\n\n/**\n * @deprecated Use `createCopilotKitRuntimeHandler` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const createCopilotRuntimeHandler = createCopilotKitRuntimeHandler;\n\n/**\n * @deprecated Use `CopilotKitRuntimeConstructor` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeConstructor = CopilotKitRuntimeConstructor;\n/**\n * @deprecated Use `CopilotKitRuntimeOptions` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeOptions = CopilotKitRuntimeOptions;\n/**\n * @deprecated Use `CopilotKitRuntimeLike` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLike = CopilotKitRuntimeLike;\n/**\n * @deprecated Use `CopilotKitSseRuntimeOptions` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotSseRuntimeOptions = CopilotKitSseRuntimeOptions;\n/**\n * @deprecated Use `CopilotKitSseRuntimeLike` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotSseRuntimeLike = CopilotKitSseRuntimeLike;\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntimeOptions` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotIntelligenceRuntimeOptions =\n CopilotKitIntelligenceRuntimeOptions;\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntimeLike` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotIntelligenceRuntimeLike = CopilotKitIntelligenceRuntimeLike;\n/**\n * @deprecated Use `CopilotKitRuntimeMemoryConfig` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeMemoryConfig = CopilotKitRuntimeMemoryConfig;\n/**\n * @deprecated Use `CopilotKitRuntimeUser` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeUser = CopilotKitRuntimeUser;\n/**\n * @deprecated Use `CopilotKitRuntimeLearningConfig` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLearningConfig = CopilotKitRuntimeLearningConfig;\n/**\n * @deprecated Use `CopilotKitRuntimeLearningContext` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLearningContext = CopilotKitRuntimeLearningContext;\n/**\n * @deprecated Use `CopilotKitRuntimeLogger` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLogger = CopilotKitRuntimeLogger;\n/**\n * @deprecated Use `CopilotKitRuntimeHandlerOptions` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeHandlerOptions = CopilotKitRuntimeHandlerOptions;\n/**\n * @deprecated Use `CopilotKitRuntimeFetchHandler` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeFetchHandler = CopilotKitRuntimeFetchHandler;\n/**\n * @deprecated Use `CopilotKitRuntimeFetchHandlerWithChannels` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeFetchHandlerWithChannels =\n CopilotKitRuntimeFetchHandlerWithChannels;\n/**\n * @deprecated Use `CopilotKitRuntimeHooks` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeHooks = CopilotKitRuntimeHooks;\n/**\n * @deprecated Use `CopilotKitCorsConfig` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotCorsConfig = CopilotKitCorsConfig;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["CopilotKitRuntime","CopilotKitSseRuntime","CopilotKitIntelligenceRuntime","createCopilotKitRuntimeHandler"],"sources":["../../src/v2/index.ts"],"sourcesContent":["/**\n * `@copilotkit/runtime/v2`, the import path of the 2.0 runtime in CopilotKit\n * 1.x. In 2.0 it is a deprecated alias of the package root, so 1.x code that\n * imports from it keeps working. It exports:\n *\n * - every export of `@copilotkit/runtime`;\n * - the Built-in Agent exports that 1.x exported here. 2.0 exports them from\n * `@copilotkit/runtime/agent`;\n * - the 1.x names of the runtime exports that 2.0 renamed with \"Kit\". Each\n * old name is the same value or type as its new name.\n *\n * The root exports only the new names. `npx codemod @copilotkit/v2-migration`\n * moves the imports to the root and renames them. The build marks each name\n * of this entry deprecated in its declarations\n * (scripts/deprecations/v2-subpath-aliases.mts).\n */\nimport {\n CopilotKitIntelligenceRuntime,\n CopilotKitRuntime,\n CopilotKitSseRuntime,\n createCopilotKitRuntimeHandler,\n} from \"../index\";\nimport type {\n CopilotKitCorsConfig,\n CopilotKitIntelligenceRuntimeLike,\n CopilotKitIntelligenceRuntimeOptions,\n CopilotKitRuntimeConstructor,\n CopilotKitRuntimeFetchHandler,\n CopilotKitRuntimeFetchHandlerWithChannels,\n CopilotKitRuntimeHandlerOptions,\n CopilotKitRuntimeHooks,\n CopilotKitRuntimeLearningConfig,\n CopilotKitRuntimeLearningContext,\n CopilotKitRuntimeLike,\n CopilotKitRuntimeLogger,\n CopilotKitRuntimeMemoryConfig,\n CopilotKitRuntimeOptions,\n CopilotKitRuntimeUser,\n CopilotKitSseRuntimeLike,\n CopilotKitSseRuntimeOptions,\n} from \"../index\";\n\nexport * from \"../index\";\n\n// 1.x exported the Built-in Agent from `/v2`. The AI SDK helpers of\n// `@copilotkit/runtime/agent/ai-sdk` stay out: they load the optional `ai`\n// peer, and every `/v2` import would then need it.\nexport {\n BuiltInAgent,\n InterruptSignal,\n convertAISDKStream,\n convertInputToTanStackAI,\n convertTanStackStream,\n defineTool,\n} from \"../agent\";\nexport type {\n BuiltInAgentAISDKFactoryConfig,\n BuiltInAgentClassicConfig,\n BuiltInAgentConfiguration,\n BuiltInAgentCustomFactoryConfig,\n BuiltInAgentFactoryConfig,\n BuiltInAgentFactoryContext,\n BuiltInAgentLearnedSkills,\n BuiltInAgentLearnedSkillsOptions,\n BuiltInAgentTanStackFactoryConfig,\n OverridableProperty,\n TanStackChatMessage,\n TanStackInputResult,\n ToolDefinition,\n} from \"../agent\";\n\n/* ------------------------------------------------------------------------------------------------\n * The 1.x names\n *\n * 2.0 renamed these exports with \"Kit\" after \"Copilot\". Each old name is an\n * alias of its new name: the same value, and the same type.\n * --------------------------------------------------------------------------------------------- */\n\n/**\n * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const CopilotRuntime = CopilotKitRuntime;\n/**\n * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntime = CopilotKitRuntime;\n\n/**\n * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const CopilotSseRuntime = CopilotKitSseRuntime;\n/**\n * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotSseRuntime = CopilotKitSseRuntime;\n\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;\n\n/**\n * @deprecated Use `createCopilotKitRuntimeHandler` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const createCopilotRuntimeHandler = createCopilotKitRuntimeHandler;\n\n/**\n * @deprecated Use `CopilotKitRuntimeConstructor` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeConstructor = CopilotKitRuntimeConstructor;\n/**\n * @deprecated Use `CopilotKitRuntimeOptions` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeOptions = CopilotKitRuntimeOptions;\n/**\n * @deprecated Use `CopilotKitRuntimeLike` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLike = CopilotKitRuntimeLike;\n/**\n * @deprecated Use `CopilotKitSseRuntimeOptions` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotSseRuntimeOptions = CopilotKitSseRuntimeOptions;\n/**\n * @deprecated Use `CopilotKitSseRuntimeLike` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotSseRuntimeLike = CopilotKitSseRuntimeLike;\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntimeOptions` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotIntelligenceRuntimeOptions =\n CopilotKitIntelligenceRuntimeOptions;\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntimeLike` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotIntelligenceRuntimeLike = CopilotKitIntelligenceRuntimeLike;\n/**\n * @deprecated Use `CopilotKitRuntimeMemoryConfig` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeMemoryConfig = CopilotKitRuntimeMemoryConfig;\n/**\n * @deprecated Use `CopilotKitRuntimeUser` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeUser = CopilotKitRuntimeUser;\n/**\n * @deprecated Use `CopilotKitRuntimeLearningConfig` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLearningConfig = CopilotKitRuntimeLearningConfig;\n/**\n * @deprecated Use `CopilotKitRuntimeLearningContext` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLearningContext = CopilotKitRuntimeLearningContext;\n/**\n * @deprecated Use `CopilotKitRuntimeLogger` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLogger = CopilotKitRuntimeLogger;\n/**\n * @deprecated Use `CopilotKitRuntimeHandlerOptions` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeHandlerOptions = CopilotKitRuntimeHandlerOptions;\n/**\n * @deprecated Use `CopilotKitRuntimeFetchHandler` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeFetchHandler = CopilotKitRuntimeFetchHandler;\n/**\n * @deprecated Use `CopilotKitRuntimeFetchHandlerWithChannels` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeFetchHandlerWithChannels =\n CopilotKitRuntimeFetchHandlerWithChannels;\n/**\n * @deprecated Use `CopilotKitRuntimeHooks` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeHooks = CopilotKitRuntimeHooks;\n/**\n * @deprecated Use `CopilotKitCorsConfig` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotCorsConfig = CopilotKitCorsConfig;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFA,MAAa,iBAAiBA;;;;;;AAa9B,MAAa,oBAAoBC;;;;;;AAajC,MAAa,6BAA6BC;;;;;;AAa1C,MAAa,8BAA8BC"}
|
package/dist/v2/index.d.cts
CHANGED
|
@@ -25,6 +25,7 @@ import { ChannelStatus, ChannelsControl } from "../runtime/core/channel-manager.
|
|
|
25
25
|
import { CopilotKitRuntimeHooks, ErrorHookContext, HandlerHookContext, HookContext, ResponseHookContext, RouteInfo } from "../runtime/core/hooks.cjs";
|
|
26
26
|
import { CopilotKitCorsConfig } from "../runtime/core/fetch-cors.cjs";
|
|
27
27
|
import { CopilotKitRuntimeFetchHandler, CopilotKitRuntimeFetchHandlerWithChannels, CopilotKitRuntimeHandlerOptions, createCopilotKitRuntimeHandler } from "../runtime/core/fetch-handler.cjs";
|
|
28
|
+
import { AnthropicAdapter, AnthropicAdapterParams, AnthropicPromptCachingConfig, BasicAgent, BasicAgentConfiguration, BedrockAdapter, BedrockAdapterParams, BuiltInAgentModel, CommonConfig, CopilotEndpointCorsConfig, CopilotExpressEndpointParams, CopilotExpressRouter, CopilotHonoApp, CopilotKitRequestHandler, CopilotRequestContextProperties, CopilotRuntimeChatCompletionRequest, CopilotRuntimeChatCompletionResponse, CopilotRuntimeConstructorParams_BASE, 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";
|
|
28
29
|
import "../index.cjs";
|
|
29
30
|
|
|
30
31
|
//#region src/v2/index.d.ts
|
|
@@ -199,7 +200,21 @@ export {
|
|
|
199
200
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
200
201
|
AgentsFactory,
|
|
201
202
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
203
|
+
AnthropicAdapter,
|
|
204
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
205
|
+
AnthropicAdapterParams,
|
|
206
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
207
|
+
AnthropicPromptCachingConfig,
|
|
208
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
202
209
|
ArgsParser,
|
|
210
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
211
|
+
BasicAgent,
|
|
212
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
213
|
+
BasicAgentConfiguration,
|
|
214
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
215
|
+
BedrockAdapter,
|
|
216
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
217
|
+
BedrockAdapterParams,
|
|
203
218
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
204
219
|
BuiltInAgent,
|
|
205
220
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
@@ -218,13 +233,25 @@ export {
|
|
|
218
233
|
type BuiltInAgentLearnedSkills,
|
|
219
234
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
220
235
|
type BuiltInAgentLearnedSkillsOptions,
|
|
236
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
237
|
+
BuiltInAgentModel,
|
|
221
238
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
222
239
|
type BuiltInAgentTanStackFactoryConfig,
|
|
223
240
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
224
241
|
ChannelStatus,
|
|
225
242
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
226
243
|
ChannelsControl,
|
|
244
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
245
|
+
CommonConfig,
|
|
227
246
|
CopilotCorsConfig,
|
|
247
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
248
|
+
CopilotEndpointCorsConfig,
|
|
249
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
250
|
+
CopilotExpressEndpointParams,
|
|
251
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
252
|
+
CopilotExpressRouter,
|
|
253
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
254
|
+
CopilotHonoApp,
|
|
228
255
|
CopilotIntelligenceRuntime,
|
|
229
256
|
CopilotIntelligenceRuntimeLike,
|
|
230
257
|
CopilotIntelligenceRuntimeOptions,
|
|
@@ -241,6 +268,8 @@ export {
|
|
|
241
268
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
242
269
|
CopilotKitIntelligenceRuntimeOptions,
|
|
243
270
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
271
|
+
CopilotKitRequestHandler,
|
|
272
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
244
273
|
CopilotKitRuntime,
|
|
245
274
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
246
275
|
CopilotKitRuntimeConstructor,
|
|
@@ -272,8 +301,16 @@ export {
|
|
|
272
301
|
CopilotKitSseRuntimeLike,
|
|
273
302
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
274
303
|
CopilotKitSseRuntimeOptions,
|
|
304
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
305
|
+
CopilotRequestContextProperties,
|
|
275
306
|
CopilotRuntime,
|
|
307
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
308
|
+
CopilotRuntimeChatCompletionRequest,
|
|
309
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
310
|
+
CopilotRuntimeChatCompletionResponse,
|
|
276
311
|
CopilotRuntimeConstructor,
|
|
312
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
313
|
+
CopilotRuntimeConstructorParams_BASE,
|
|
277
314
|
CopilotRuntimeFetchHandler,
|
|
278
315
|
CopilotRuntimeFetchHandlerWithChannels,
|
|
279
316
|
CopilotRuntimeHandlerOptions,
|
|
@@ -285,14 +322,30 @@ export {
|
|
|
285
322
|
CopilotRuntimeMemoryConfig,
|
|
286
323
|
CopilotRuntimeOptions,
|
|
287
324
|
CopilotRuntimeUser,
|
|
325
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
326
|
+
CopilotServiceAdapter,
|
|
288
327
|
CopilotSseRuntime,
|
|
289
328
|
CopilotSseRuntimeLike,
|
|
290
329
|
CopilotSseRuntimeOptions,
|
|
291
330
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
331
|
+
CreateCopilotRuntimeServerOptions,
|
|
332
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
333
|
+
CreateSafeUrlDownloadOptions,
|
|
334
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
292
335
|
CreateThreadRequest,
|
|
293
336
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
337
|
+
CustomEventNames,
|
|
338
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
339
|
+
EmptyAdapter,
|
|
340
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
294
341
|
ErrorHookContext,
|
|
295
342
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
343
|
+
ExperimentalEmptyAdapter,
|
|
344
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
345
|
+
ExperimentalOllamaAdapter,
|
|
346
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
347
|
+
FilterThinkingTextBuffer,
|
|
348
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
296
349
|
FinalizeRunOptions,
|
|
297
350
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
298
351
|
GenerateSandboxedUIParams,
|
|
@@ -311,6 +364,18 @@ export {
|
|
|
311
364
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
312
365
|
GetTrajectoryLearningContainerIds,
|
|
313
366
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
367
|
+
GoogleGenerativeAIAdapter,
|
|
368
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
369
|
+
GraphQLContext,
|
|
370
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
371
|
+
GraphQLRequestContext,
|
|
372
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
373
|
+
GroqAdapter,
|
|
374
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
375
|
+
GroqAdapterParams,
|
|
376
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
377
|
+
GuardrailsValidationFailureResponse,
|
|
378
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
314
379
|
HandlerHookContext,
|
|
315
380
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
316
381
|
HookContext,
|
|
@@ -331,6 +396,12 @@ export {
|
|
|
331
396
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
332
397
|
InterruptSignal,
|
|
333
398
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
399
|
+
LangChainAdapter,
|
|
400
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
401
|
+
LangGraphAgent,
|
|
402
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
403
|
+
LangGraphHttpAgent,
|
|
404
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
334
405
|
LearnedSkillsBatchResult,
|
|
335
406
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
336
407
|
LearnedSkillsError,
|
|
@@ -349,6 +420,24 @@ export {
|
|
|
349
420
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
350
421
|
LocalThreadEndpointScope,
|
|
351
422
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
423
|
+
LogLevel,
|
|
424
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
425
|
+
MCPClient,
|
|
426
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
427
|
+
MCPClientConfig,
|
|
428
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
429
|
+
MCPClientConfigHTTP,
|
|
430
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
431
|
+
MCPClientConfigSSE,
|
|
432
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
433
|
+
MCPClientProvider,
|
|
434
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
435
|
+
MCPEndpointConfig,
|
|
436
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
437
|
+
MCPTool,
|
|
438
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
439
|
+
MCPTransport,
|
|
440
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
352
441
|
McpAppsConfig,
|
|
353
442
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
354
443
|
McpAppsServerConfig,
|
|
@@ -359,8 +448,22 @@ export {
|
|
|
359
448
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
360
449
|
MemoryGrant,
|
|
361
450
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
451
|
+
MessageConversionOptions,
|
|
452
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
453
|
+
MessageStreamInterruptedResponse,
|
|
454
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
455
|
+
ModelSpecifier,
|
|
456
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
362
457
|
OnParamEvent,
|
|
363
458
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
459
|
+
OpenAIAdapter,
|
|
460
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
461
|
+
OpenAIAdapterParams,
|
|
462
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
463
|
+
OpenAIAssistantAdapter,
|
|
464
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
465
|
+
OpenAIAssistantAdapterParams,
|
|
466
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
364
467
|
OpenGenerativeUIConfig,
|
|
365
468
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
366
469
|
OpenGenerativeUIMiddleware,
|
|
@@ -371,8 +474,14 @@ export {
|
|
|
371
474
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
372
475
|
PlatformRequestError,
|
|
373
476
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
477
|
+
PredictStateTool,
|
|
478
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
374
479
|
RecordedEventTransformOptions,
|
|
375
480
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
481
|
+
RemoteChain,
|
|
482
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
483
|
+
RemoteChainParameters,
|
|
484
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
376
485
|
ResponseHookContext,
|
|
377
486
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
378
487
|
RouteInfo,
|
|
@@ -395,6 +504,10 @@ export {
|
|
|
395
504
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
396
505
|
STOP_RECORD_DEADLINE_MS,
|
|
397
506
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
507
|
+
SafeUrlDownloadOptions,
|
|
508
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
509
|
+
SdkClientLike,
|
|
510
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
398
511
|
SubscribeToThreadsRequest,
|
|
399
512
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
400
513
|
SubscribeToThreadsResponse,
|
|
@@ -405,6 +518,12 @@ export {
|
|
|
405
518
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
406
519
|
type TanStackInputResult,
|
|
407
520
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
521
|
+
TelemetryAgentRunner,
|
|
522
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
523
|
+
TelemetryAgentRunnerConfig,
|
|
524
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
525
|
+
TextMessageEvents,
|
|
526
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
408
527
|
ThreadAccessDeniedError,
|
|
409
528
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
410
529
|
ThreadAccessMode,
|
|
@@ -422,6 +541,8 @@ export {
|
|
|
422
541
|
ThreadSummary,
|
|
423
542
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
424
543
|
ThreadsConfig,
|
|
544
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
545
|
+
ToolCallEvents,
|
|
425
546
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
426
547
|
type ToolDefinition,
|
|
427
548
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
@@ -431,21 +552,71 @@ export {
|
|
|
431
552
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
432
553
|
TranscriptionService,
|
|
433
554
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
555
|
+
UnifyAdapter,
|
|
556
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
557
|
+
UnifyAdapterParams,
|
|
558
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
559
|
+
UnknownErrorResponse,
|
|
560
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
434
561
|
UpdateThreadRequest,
|
|
435
562
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
436
563
|
VERSION,
|
|
564
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
565
|
+
buildSchema,
|
|
566
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
567
|
+
classifyModelSpec,
|
|
437
568
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
438
569
|
convertAISDKStream,
|
|
439
570
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
440
571
|
convertInputToTanStackAI,
|
|
572
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
573
|
+
convertJsonSchemaToZodSchema,
|
|
574
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
575
|
+
convertMCPToolsToActions,
|
|
576
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
577
|
+
convertMessagesToVercelAISDKMessages,
|
|
578
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
579
|
+
convertServiceAdapterError,
|
|
441
580
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
442
581
|
convertTanStackStream,
|
|
443
582
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
583
|
+
convertToolDefinitionsToVercelAITools,
|
|
584
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
585
|
+
convertToolsToVercelAITools,
|
|
586
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
587
|
+
copilotKitEndpoint,
|
|
588
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
589
|
+
copilotRuntimeNestEndpoint,
|
|
590
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
591
|
+
copilotRuntimeNextJSAppRouterEndpoint,
|
|
592
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
593
|
+
copilotRuntimeNextJSPagesRouterEndpoint,
|
|
594
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
595
|
+
copilotRuntimeNodeExpressEndpoint,
|
|
596
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
597
|
+
copilotRuntimeNodeHttpEndpoint,
|
|
598
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
599
|
+
createCopilotEndpoint,
|
|
600
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
601
|
+
createCopilotEndpointExpress,
|
|
602
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
603
|
+
createCopilotEndpointSingleRoute,
|
|
604
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
605
|
+
createCopilotEndpointSingleRouteExpress,
|
|
606
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
607
|
+
createCopilotExpressHandler,
|
|
608
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
609
|
+
createCopilotHonoHandler,
|
|
610
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
444
611
|
createCopilotKitRuntimeHandler,
|
|
445
612
|
createCopilotRuntimeHandler,
|
|
446
613
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
614
|
+
createLogger,
|
|
615
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
447
616
|
createRunEventFinalizer,
|
|
448
617
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
618
|
+
createSafeUrlDownload,
|
|
619
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
449
620
|
createSurfaceWriter,
|
|
450
621
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
451
622
|
defineTool,
|
|
@@ -454,18 +625,36 @@ export {
|
|
|
454
625
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
455
626
|
experimental_d_exports as experimental,
|
|
456
627
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
628
|
+
extractParametersFromSchema,
|
|
629
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
457
630
|
finalizeRunEvents,
|
|
458
631
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
632
|
+
generateMcpToolInstructions,
|
|
633
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
634
|
+
getCommonConfig,
|
|
635
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
636
|
+
getSdkClientOptions,
|
|
637
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
638
|
+
isA2UIEnabled,
|
|
639
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
459
640
|
isIntelligenceRuntime,
|
|
460
641
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
461
642
|
isThreadAccessDeniedError,
|
|
462
643
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
644
|
+
langGraphPlatformEndpoint,
|
|
645
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
463
646
|
resolveAgents,
|
|
464
647
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
648
|
+
resolveEndpointType,
|
|
649
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
650
|
+
resolveModel,
|
|
651
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
465
652
|
runAgentInThread,
|
|
466
653
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
467
654
|
supportsLocalThreadEndpoints,
|
|
468
655
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
656
|
+
toFetchCorsConfig,
|
|
657
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
469
658
|
transformRecordedEvents,
|
|
470
659
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
471
660
|
ɵBoundedThreadStore,
|
package/dist/v2/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/v2/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/v2/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmFa,cAAA,EAAc,4BAAA;;;;;AAA3B;KAMY,cAAA,GAAiB,iBAAA;;;;AAA7B;;cAOa,iBAAA,SAAiB,oBAAA;;;AAA9B;;;KAMY,iBAAA,GAAoB,oBAAA;;AAAhC;;;;cAOa,0BAAA,SAA0B,6BAAA;AAAvC;;;;;AAAA,KAMY,0BAAA,GAA6B,6BAAA;;;;;AAOzC;cAAa,2BAAA,SAA2B,8BAAA;;;;AAOxC;;KAAY,yBAAA,GAA4B,4BAAA;;;AAMxC;;;KAAY,qBAAA,GAAwB,wBAAA;;AAMpC;;;;KAAY,kBAAA,GAAqB,qBAAA;AAMjC;;;;;AAAA,KAAY,wBAAA,GAA2B,2BAAA;;;;;AAYvC;KANY,qBAAA,GAAwB,wBAAA;;;;AAapC;;KAPY,iCAAA,GACV,oCAAA;;;AAYF;;;KANY,8BAAA,GAAiC,iCAAA;;AAY7C;;;;KANY,0BAAA,GAA6B,6BAAA;AAYzC;;;;;AAAA,KANY,kBAAA,GAAqB,qBAAA;;;;;AAkBjC;KAZY,4BAAA,GAA+B,+BAAA;;;;AAkB3C;;KAZY,6BAAA,GAAgC,gCAAA;;;AAkB5C;;;KAZY,oBAAA,GAAuB,uBAAA;;AAkBnC;;;;KAZY,4BAAA,GAA+B,+BAAA;AAmB3C;;;;;AAAA,KAbY,0BAAA,GAA6B,6BAAA;;;;;;KAM7B,sCAAA,GACV,yCAAA;;;;;;KAMU,mBAAA,GAAsB,sBAAA;;;;;;KAMtB,iBAAA,GAAoB,oBAAA"}
|