@copilotkit/runtime 1.6.0-next.8 → 1.6.0-next.9
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-CC5KHDCV.mjs → chunk-4HQ5OZXN.mjs} +2 -2
- package/dist/{chunk-LR7HA4X5.mjs → chunk-5ZBUMQE2.mjs} +2 -2
- package/dist/{chunk-DI2VJM3I.mjs → chunk-7BCFHZLY.mjs} +2 -2
- package/dist/{chunk-C7VKUXWC.mjs → chunk-L7OTGCAG.mjs} +12 -8
- package/dist/chunk-L7OTGCAG.mjs.map +1 -0
- package/dist/index.js +11 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/index.js +11 -7
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- 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.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.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.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/package.json +2 -2
- package/src/agents/langgraph/event-source.ts +13 -4
- package/src/lib/runtime/copilot-runtime.ts +1 -1
- package/dist/chunk-C7VKUXWC.mjs.map +0 -1
- /package/dist/{chunk-CC5KHDCV.mjs.map → chunk-4HQ5OZXN.mjs.map} +0 -0
- /package/dist/{chunk-LR7HA4X5.mjs.map → chunk-5ZBUMQE2.mjs.map} +0 -0
- /package/dist/{chunk-DI2VJM3I.mjs.map → chunk-7BCFHZLY.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L7OTGCAG.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-4HQ5OZXN.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L7OTGCAG.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-FHD4JECV.mjs";
|
|
@@ -22,4 +22,4 @@ __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
|
|
|
22
22
|
export {
|
|
23
23
|
copilotRuntimeNestEndpoint
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-5ZBUMQE2.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getCommonConfig,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L7OTGCAG.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-FHD4JECV.mjs";
|
|
@@ -77,4 +77,4 @@ export {
|
|
|
77
77
|
config,
|
|
78
78
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-7BCFHZLY.mjs.map
|
|
@@ -39,7 +39,7 @@ var require_package = __commonJS({
|
|
|
39
39
|
publishConfig: {
|
|
40
40
|
access: "public"
|
|
41
41
|
},
|
|
42
|
-
version: "1.6.0-next.
|
|
42
|
+
version: "1.6.0-next.9",
|
|
43
43
|
sideEffects: false,
|
|
44
44
|
main: "./dist/index.js",
|
|
45
45
|
module: "./dist/index.mjs",
|
|
@@ -1499,10 +1499,15 @@ var RemoteLangGraphEventSource = class {
|
|
|
1499
1499
|
acc.lastMessageId = this.getCurrentMessageId(event) ?? acc.lastMessageId;
|
|
1500
1500
|
const toolCallChunks = this.getCurrentToolCallChunks(event) ?? [];
|
|
1501
1501
|
const responseMetadata = this.getResponseMetadata(event);
|
|
1502
|
+
const toolCallCheck = toolCallChunks && toolCallChunks.length > 0;
|
|
1503
|
+
let isToolCallEnd = (responseMetadata == null ? void 0 : responseMetadata.finish_reason) === "tool_calls";
|
|
1502
1504
|
acc.isToolCallStart = toolCallChunks.some((chunk) => chunk.name && chunk.id);
|
|
1503
1505
|
acc.isMessageStart = prevMessageId !== acc.lastMessageId && !acc.isToolCallStart;
|
|
1504
|
-
acc.isToolCall
|
|
1505
|
-
|
|
1506
|
+
if (acc.isToolCall && !toolCallCheck) {
|
|
1507
|
+
isToolCallEnd = true;
|
|
1508
|
+
}
|
|
1509
|
+
acc.isToolCall = toolCallCheck;
|
|
1510
|
+
acc.isToolCallEnd = isToolCallEnd;
|
|
1506
1511
|
acc.isMessageEnd = (responseMetadata == null ? void 0 : responseMetadata.finish_reason) === "stop";
|
|
1507
1512
|
({ name: acc.lastToolCallName, id: acc.lastToolCallId } = toolCallChunks.find((chunk) => chunk.name && chunk.id) ?? {
|
|
1508
1513
|
name: acc.lastToolCallName,
|
|
@@ -1550,13 +1555,12 @@ var RemoteLangGraphEventSource = class {
|
|
|
1550
1555
|
});
|
|
1551
1556
|
}
|
|
1552
1557
|
const responseMetadata = this.getResponseMetadata(acc.event);
|
|
1553
|
-
if (
|
|
1558
|
+
if (acc.isToolCallEnd && this.shouldEmitToolCall(shouldEmitToolCalls, acc.lastToolCallName)) {
|
|
1554
1559
|
events.push({
|
|
1555
1560
|
type: RuntimeEventTypes.ActionExecutionEnd,
|
|
1556
1561
|
actionExecutionId: acc.lastToolCallId
|
|
1557
1562
|
});
|
|
1558
|
-
}
|
|
1559
|
-
if ((responseMetadata == null ? void 0 : responseMetadata.finish_reason) === "stop" && shouldEmitMessages) {
|
|
1563
|
+
} else if ((responseMetadata == null ? void 0 : responseMetadata.finish_reason) === "stop" && shouldEmitMessages) {
|
|
1560
1564
|
events.push({
|
|
1561
1565
|
type: RuntimeEventTypes.TextMessageEnd,
|
|
1562
1566
|
messageId: acc.lastMessageId
|
|
@@ -3001,7 +3005,7 @@ please use an LLM adapter instead.`
|
|
|
3001
3005
|
threadId,
|
|
3002
3006
|
runId: void 0,
|
|
3003
3007
|
eventSource,
|
|
3004
|
-
serverSideActions
|
|
3008
|
+
serverSideActions,
|
|
3005
3009
|
actionInputsWithoutAgents: allAvailableActions
|
|
3006
3010
|
};
|
|
3007
3011
|
} catch (error) {
|
|
@@ -4292,4 +4296,4 @@ export {
|
|
|
4292
4296
|
getCommonConfig,
|
|
4293
4297
|
copilotRuntimeNodeHttpEndpoint
|
|
4294
4298
|
};
|
|
4295
|
-
//# sourceMappingURL=chunk-
|
|
4299
|
+
//# sourceMappingURL=chunk-L7OTGCAG.mjs.map
|