@copilotkit/runtime 1.10.3-next.0 → 1.10.3-next.1
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 +6 -0
- package/dist/{chunk-TE2L7P2N.mjs → chunk-EDVWDNXU.mjs} +2 -2
- package/dist/{chunk-N46OXOPO.mjs → chunk-EICZRJW6.mjs} +3 -3
- package/dist/chunk-EICZRJW6.mjs.map +1 -0
- package/dist/{chunk-22UQ7WA6.mjs → chunk-EZ66PQS2.mjs} +2 -2
- package/dist/{chunk-OQ2QYHO4.mjs → chunk-JTCVBRKN.mjs} +2 -2
- package/dist/{chunk-ST2B545I.mjs → chunk-XDPKMLW4.mjs} +5 -3
- package/dist/chunk-XDPKMLW4.mjs.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/lib/index.d.ts +2 -3
- package/dist/lib/index.js +5 -3
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +6 -6
- package/dist/lib/integrations/index.js +2 -2
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +5 -5
- package/dist/lib/integrations/nest/index.js +2 -2
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +3 -3
- package/dist/lib/integrations/node-express/index.js +2 -2
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +3 -3
- package/dist/lib/integrations/node-http/index.js +2 -2
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +2 -2
- package/package.json +3 -3
- package/src/lib/runtime/langgraph/langgraph-agent.ts +5 -2
- package/dist/chunk-N46OXOPO.mjs.map +0 -1
- package/dist/chunk-ST2B545I.mjs.map +0 -1
- /package/dist/{chunk-TE2L7P2N.mjs.map → chunk-EDVWDNXU.mjs.map} +0 -0
- /package/dist/{chunk-22UQ7WA6.mjs.map → chunk-EZ66PQS2.mjs.map} +0 -0
- /package/dist/{chunk-OQ2QYHO4.mjs.map → chunk-JTCVBRKN.mjs.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-EICZRJW6.mjs";
|
|
4
4
|
import "../../../chunk-SHBDMA63.mjs";
|
|
5
5
|
import "../../../chunk-F7IANE7Z.mjs";
|
|
6
6
|
import "../../../chunk-XWBDEXDA.mjs";
|
|
7
|
-
import "../../../chunk-AMUJQ6IR.mjs";
|
|
8
7
|
import "../../../chunk-2OZAGFV3.mjs";
|
|
8
|
+
import "../../../chunk-AMUJQ6IR.mjs";
|
|
9
9
|
import "../../../chunk-FHD4JECV.mjs";
|
|
10
10
|
export {
|
|
11
11
|
copilotRuntimeNodeHttpEndpoint
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.10.3-next.
|
|
12
|
+
"version": "1.10.3-next.1",
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"main": "./dist/index.js",
|
|
15
15
|
"module": "./dist/index.mjs",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@ag-ui/client": "^0.0.36",
|
|
41
41
|
"@ag-ui/core": "^0.0.36",
|
|
42
42
|
"@ag-ui/encoder": "^0.0.36",
|
|
43
|
-
"@ag-ui/langgraph": "^0.0.
|
|
43
|
+
"@ag-ui/langgraph": "^0.0.10",
|
|
44
44
|
"@ag-ui/proto": "^0.0.36",
|
|
45
45
|
"@anthropic-ai/sdk": "^0.57.0",
|
|
46
46
|
"@graphql-yoga/plugin-defer-stream": "^3.3.1",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"rxjs": "7.8.1",
|
|
68
68
|
"type-graphql": "2.0.0-rc.1",
|
|
69
69
|
"zod": "^3.23.3",
|
|
70
|
-
"@copilotkit/shared": "1.10.3-next.
|
|
70
|
+
"@copilotkit/shared": "1.10.3-next.1"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"@ag-ui/client": ">=0.0.34",
|
|
@@ -18,15 +18,16 @@ import {
|
|
|
18
18
|
type LangGraphAgentConfig,
|
|
19
19
|
ProcessedEvents,
|
|
20
20
|
SchemaKeys,
|
|
21
|
+
type State,
|
|
21
22
|
} from "@ag-ui/langgraph";
|
|
22
23
|
import { Message as LangGraphMessage } from "@langchain/langgraph-sdk/dist/types.messages";
|
|
24
|
+
import { ThreadState } from "@langchain/langgraph-sdk";
|
|
23
25
|
|
|
24
26
|
export interface PredictStateTool {
|
|
25
27
|
tool: string;
|
|
26
28
|
state_key: string;
|
|
27
29
|
tool_argument: string;
|
|
28
30
|
}
|
|
29
|
-
export type State = Record<string, any>;
|
|
30
31
|
|
|
31
32
|
export type TextMessageEvents =
|
|
32
33
|
| TextMessageStartEvent
|
|
@@ -99,7 +100,9 @@ export class LangGraphAgent extends AGUILangGraphAgent {
|
|
|
99
100
|
this.activeRun.manuallyEmittedState = customEvent.value;
|
|
100
101
|
this.dispatchEvent({
|
|
101
102
|
type: EventType.STATE_SNAPSHOT,
|
|
102
|
-
snapshot: this.getStateSnapshot(
|
|
103
|
+
snapshot: this.getStateSnapshot({
|
|
104
|
+
values: this.activeRun.manuallyEmittedState,
|
|
105
|
+
} as ThreadState<State>),
|
|
103
106
|
rawEvent: event,
|
|
104
107
|
});
|
|
105
108
|
return true;
|