@copilotkit/runtime 1.9.2-next.10 → 1.9.2-next.11
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/CHANGELOG.md +7 -0
- package/dist/{chunk-TOBFVWZU.mjs → chunk-B2BL6HPT.mjs} +2 -2
- package/dist/{chunk-6RUTA76W.mjs → chunk-CBVVBPVJ.mjs} +2 -2
- package/dist/{chunk-PMIAGZGS.mjs → chunk-NI7RVCMB.mjs} +10 -38
- package/dist/chunk-NI7RVCMB.mjs.map +1 -0
- package/dist/{chunk-5OK4GLKL.mjs → chunk-VVXCPFVN.mjs} +2 -2
- package/dist/{chunk-VBXBFZEL.mjs → chunk-ZIEDTGZF.mjs} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +9 -37
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +5 -5
- package/dist/lib/integrations/index.d.ts +2 -2
- package/dist/lib/integrations/index.js +1 -1
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.d.ts +1 -1
- package/dist/lib/integrations/nest/index.js +1 -1
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +2 -2
- package/dist/lib/integrations/node-express/index.d.ts +1 -1
- package/dist/lib/integrations/node-express/index.js +1 -1
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +2 -2
- package/dist/lib/integrations/node-http/index.d.ts +1 -1
- package/dist/lib/integrations/node-http/index.js +1 -1
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/dist/{shared-bd953ebf.d.ts → shared-4164c674.d.ts} +1 -1
- package/package.json +2 -2
- package/src/lib/runtime/copilot-runtime.ts +8 -37
- package/dist/chunk-PMIAGZGS.mjs.map +0 -1
- /package/dist/{chunk-TOBFVWZU.mjs.map → chunk-B2BL6HPT.mjs.map} +0 -0
- /package/dist/{chunk-6RUTA76W.mjs.map → chunk-CBVVBPVJ.mjs.map} +0 -0
- /package/dist/{chunk-5OK4GLKL.mjs.map → chunk-VVXCPFVN.mjs.map} +0 -0
- /package/dist/{chunk-VBXBFZEL.mjs.map → chunk-ZIEDTGZF.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LangGraphEventTypes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NI7RVCMB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-FHD4JECV.mjs";
|
|
@@ -155,4 +155,4 @@ export {
|
|
|
155
155
|
CustomEventNames,
|
|
156
156
|
LangGraphAgent
|
|
157
157
|
};
|
|
158
|
-
//# sourceMappingURL=chunk-
|
|
158
|
+
//# sourceMappingURL=chunk-VVXCPFVN.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NI7RVCMB.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-FHD4JECV.mjs";
|
|
@@ -22,4 +22,4 @@ __name(copilotRuntimeNodeExpressEndpoint, "copilotRuntimeNodeExpressEndpoint");
|
|
|
22
22
|
export {
|
|
23
23
|
copilotRuntimeNodeExpressEndpoint
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-ZIEDTGZF.mjs.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { G as GoogleGenerativeAIAdapter, f as GroqAdapter, e as GroqAdapterParams, L as LangChainAdapter, a as OpenAIAdapter, O as OpenAIAdapterParams, c as OpenAIAssistantAdapter, b as OpenAIAssistantAdapterParams, d as UnifyAdapter, U as UnifyAdapterParams } from './groq-adapter-172a2ca4.js';
|
|
2
|
-
export { e as CommonConfig, C as CopilotRequestContextProperties, k as CopilotRuntime, j as CopilotRuntimeConstructorParams, f as CopilotRuntimeLogger, i as CopilotRuntimeRequest, b as CreateCopilotRuntimeServerOptions, G as GraphQLContext, L as LogLevel, o as MCPClient, p as MCPEndpointConfig, M as MCPTool, a as addCustomHeaderPlugin, d as buildSchema, s as convertMCPToolsToActions, m as copilotKitEndpoint, c as createContext, h as createLogger, q as extractParametersFromSchema, l as flattenToolCallsNoDuplicates, t as generateMcpToolInstructions, g as getCommonConfig, n as langGraphPlatformEndpoint, r as resolveEndpointType } from './shared-
|
|
2
|
+
export { e as CommonConfig, C as CopilotRequestContextProperties, k as CopilotRuntime, j as CopilotRuntimeConstructorParams, f as CopilotRuntimeLogger, i as CopilotRuntimeRequest, b as CreateCopilotRuntimeServerOptions, G as GraphQLContext, L as LogLevel, o as MCPClient, p as MCPEndpointConfig, M as MCPTool, a as addCustomHeaderPlugin, d as buildSchema, s as convertMCPToolsToActions, m as copilotKitEndpoint, c as createContext, h as createLogger, q as extractParametersFromSchema, l as flattenToolCallsNoDuplicates, t as generateMcpToolInstructions, g as getCommonConfig, n as langGraphPlatformEndpoint, r as resolveEndpointType } from './shared-4164c674.js';
|
|
3
3
|
export { CopilotRuntimeServerInstance, config, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint } from './lib/integrations/index.js';
|
|
4
4
|
export { copilotRuntimeNodeHttpEndpoint } from './lib/integrations/node-http/index.js';
|
|
5
5
|
export { copilotRuntimeNodeExpressEndpoint } from './lib/integrations/node-express/index.js';
|
package/dist/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.9.2-next.
|
|
47
|
+
version: "1.9.2-next.11",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -5057,10 +5057,8 @@ please use an LLM adapter instead.`
|
|
|
5057
5057
|
}
|
|
5058
5058
|
}
|
|
5059
5059
|
async getAllAgents(graphqlContext) {
|
|
5060
|
-
const
|
|
5061
|
-
|
|
5062
|
-
this.discoverAgentsFromAgui()
|
|
5063
|
-
]);
|
|
5060
|
+
const agentsWithEndpoints = await this.discoverAgentsFromEndpoints(graphqlContext);
|
|
5061
|
+
const aguiAgents = this.discoverAgentsFromAgui();
|
|
5064
5062
|
this.availableAgents = [
|
|
5065
5063
|
...agentsWithEndpoints,
|
|
5066
5064
|
...aguiAgents
|
|
@@ -5160,38 +5158,12 @@ please use an LLM adapter instead.`
|
|
|
5160
5158
|
}, Promise.resolve([]));
|
|
5161
5159
|
return agents;
|
|
5162
5160
|
}
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
data = await client.assistants.search();
|
|
5170
|
-
if (data && "detail" in data && data.detail.toLowerCase() === "not found") {
|
|
5171
|
-
throw new import_shared18.CopilotKitAgentDiscoveryError({
|
|
5172
|
-
availableAgents: this.availableAgents
|
|
5173
|
-
});
|
|
5174
|
-
}
|
|
5175
|
-
} catch (e) {
|
|
5176
|
-
throw new import_shared18.CopilotKitMisuseError({
|
|
5177
|
-
message: `
|
|
5178
|
-
Failed to find or contact agent ${agent.graphId}.
|
|
5179
|
-
Make sure the LangGraph API is running and the agent is defined in langgraph.json
|
|
5180
|
-
|
|
5181
|
-
See more: https://docs.copilotkit.ai/troubleshooting/common-issues`
|
|
5182
|
-
});
|
|
5183
|
-
}
|
|
5184
|
-
const endpointAgents = data.map((entry) => ({
|
|
5185
|
-
name: entry.graph_id,
|
|
5186
|
-
id: entry.assistant_id,
|
|
5187
|
-
description: ""
|
|
5188
|
-
}));
|
|
5189
|
-
return [
|
|
5190
|
-
...agents2,
|
|
5191
|
-
...endpointAgents
|
|
5192
|
-
];
|
|
5193
|
-
}, Promise.resolve([]));
|
|
5194
|
-
return agents;
|
|
5161
|
+
discoverAgentsFromAgui() {
|
|
5162
|
+
return Object.values(this.agents ?? []).map((agent) => ({
|
|
5163
|
+
name: agent.agentName,
|
|
5164
|
+
id: agent.agentId,
|
|
5165
|
+
description: ""
|
|
5166
|
+
}));
|
|
5195
5167
|
}
|
|
5196
5168
|
async loadAgentState(graphqlContext, threadId, agentName) {
|
|
5197
5169
|
const agents = await this.getAllAgents(graphqlContext);
|