@copilotkit/sdk-js 1.56.4 → 1.56.5
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/langgraph/middleware.cjs +144 -11
- package/dist/langgraph/middleware.cjs.map +1 -1
- package/dist/langgraph/middleware.d.cts +68 -1
- package/dist/langgraph/middleware.d.cts.map +1 -1
- package/dist/langgraph/middleware.d.mts +68 -1
- package/dist/langgraph/middleware.d.mts.map +1 -1
- package/dist/langgraph/middleware.mjs +143 -12
- package/dist/langgraph/middleware.mjs.map +1 -1
- package/dist/langgraph/state-schema.d.cts +22 -16
- package/dist/langgraph/state-schema.d.cts.map +1 -1
- package/dist/langgraph/state-schema.d.mts +22 -16
- package/dist/langgraph/state-schema.d.mts.map +1 -1
- package/dist/langgraph/types.d.cts +107 -50
- package/dist/langgraph/types.d.cts.map +1 -1
- package/dist/langgraph/types.d.mts +107 -50
- package/dist/langgraph/types.d.mts.map +1 -1
- package/dist/langgraph.cjs +3 -1
- package/dist/langgraph.d.cts +2 -2
- package/dist/langgraph.d.mts +2 -2
- package/dist/langgraph.mjs +2 -2
- package/package.json +6 -6
- package/src/langgraph/__tests__/middleware.test.ts +611 -0
- package/src/langgraph/middleware.ts +210 -15
|
@@ -30,223 +30,280 @@ interface StandardSerializableSchema<Input, Output = Input> {
|
|
|
30
30
|
}
|
|
31
31
|
declare const CopilotKitPropertiesAnnotation: _langchain_langgraph0.AnnotationRoot<{
|
|
32
32
|
actions: {
|
|
33
|
+
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BaseChannel<any[], any[] | _langchain_langgraph0.OverwriteValue<any[]>, unknown>;
|
|
33
34
|
(): _langchain_langgraph0.LastValue<any[]>;
|
|
34
|
-
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BinaryOperatorAggregate<any[], any[]>;
|
|
35
35
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
36
36
|
};
|
|
37
37
|
context: {
|
|
38
|
-
(): _langchain_langgraph0.LastValue<{
|
|
39
|
-
description: string;
|
|
40
|
-
value: string;
|
|
41
|
-
}[]>;
|
|
42
38
|
(annotation: _langchain_langgraph0.SingleReducer<{
|
|
43
39
|
description: string;
|
|
44
40
|
value: string;
|
|
45
41
|
}[], {
|
|
46
42
|
description: string;
|
|
47
43
|
value: string;
|
|
48
|
-
}[]>): _langchain_langgraph0.
|
|
44
|
+
}[]>): _langchain_langgraph0.BaseChannel<{
|
|
49
45
|
description: string;
|
|
50
46
|
value: string;
|
|
51
47
|
}[], {
|
|
52
48
|
description: string;
|
|
53
49
|
value: string;
|
|
50
|
+
}[] | _langchain_langgraph0.OverwriteValue<{
|
|
51
|
+
description: string;
|
|
52
|
+
value: string;
|
|
53
|
+
}[]>, unknown>;
|
|
54
|
+
(): _langchain_langgraph0.LastValue<{
|
|
55
|
+
description: string;
|
|
56
|
+
value: string;
|
|
54
57
|
}[]>;
|
|
55
58
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
56
59
|
};
|
|
57
60
|
interceptedToolCalls: {
|
|
61
|
+
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BaseChannel<any[], any[] | _langchain_langgraph0.OverwriteValue<any[]>, unknown>;
|
|
58
62
|
(): _langchain_langgraph0.LastValue<any[]>;
|
|
59
|
-
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BinaryOperatorAggregate<any[], any[]>;
|
|
60
63
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
61
64
|
};
|
|
62
65
|
originalAIMessageId: {
|
|
66
|
+
(annotation: _langchain_langgraph0.SingleReducer<string, string>): _langchain_langgraph0.BaseChannel<string, string | _langchain_langgraph0.OverwriteValue<string>, unknown>;
|
|
63
67
|
(): _langchain_langgraph0.LastValue<string>;
|
|
64
|
-
(annotation: _langchain_langgraph0.SingleReducer<string, string>): _langchain_langgraph0.BinaryOperatorAggregate<string, string>;
|
|
65
68
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
66
69
|
};
|
|
67
70
|
}>;
|
|
68
71
|
declare const CopilotKitStateAnnotation: _langchain_langgraph0.AnnotationRoot<{
|
|
69
|
-
messages: _langchain_langgraph0.
|
|
72
|
+
messages: _langchain_langgraph0.BaseChannel<langchain.BaseMessage<_langchain_core_messages0.MessageStructure<_langchain_core_messages0.MessageToolSet>, _langchain_core_messages0.MessageType>[], _langchain_langgraph0.OverwriteValue<langchain.BaseMessage<_langchain_core_messages0.MessageStructure<_langchain_core_messages0.MessageToolSet>, _langchain_core_messages0.MessageType>[]> | _langchain_langgraph0.Messages, unknown>;
|
|
70
73
|
copilotkit: {
|
|
71
|
-
(
|
|
74
|
+
(annotation: _langchain_langgraph0.SingleReducer<_langchain_langgraph0.StateType<{
|
|
72
75
|
actions: {
|
|
76
|
+
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BaseChannel<any[], any[] | _langchain_langgraph0.OverwriteValue<any[]>, unknown>;
|
|
73
77
|
(): _langchain_langgraph0.LastValue<any[]>;
|
|
74
|
-
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BinaryOperatorAggregate<any[], any[]>;
|
|
75
78
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
76
79
|
};
|
|
77
80
|
context: {
|
|
78
|
-
(): _langchain_langgraph0.LastValue<{
|
|
79
|
-
description: string;
|
|
80
|
-
value: string;
|
|
81
|
-
}[]>;
|
|
82
81
|
(annotation: _langchain_langgraph0.SingleReducer<{
|
|
83
82
|
description: string;
|
|
84
83
|
value: string;
|
|
85
84
|
}[], {
|
|
86
85
|
description: string;
|
|
87
86
|
value: string;
|
|
88
|
-
}[]>): _langchain_langgraph0.
|
|
87
|
+
}[]>): _langchain_langgraph0.BaseChannel<{
|
|
89
88
|
description: string;
|
|
90
89
|
value: string;
|
|
91
90
|
}[], {
|
|
92
91
|
description: string;
|
|
93
92
|
value: string;
|
|
93
|
+
}[] | _langchain_langgraph0.OverwriteValue<{
|
|
94
|
+
description: string;
|
|
95
|
+
value: string;
|
|
96
|
+
}[]>, unknown>;
|
|
97
|
+
(): _langchain_langgraph0.LastValue<{
|
|
98
|
+
description: string;
|
|
99
|
+
value: string;
|
|
94
100
|
}[]>;
|
|
95
101
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
96
102
|
};
|
|
97
103
|
interceptedToolCalls: {
|
|
104
|
+
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BaseChannel<any[], any[] | _langchain_langgraph0.OverwriteValue<any[]>, unknown>;
|
|
98
105
|
(): _langchain_langgraph0.LastValue<any[]>;
|
|
99
|
-
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BinaryOperatorAggregate<any[], any[]>;
|
|
100
106
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
101
107
|
};
|
|
102
108
|
originalAIMessageId: {
|
|
109
|
+
(annotation: _langchain_langgraph0.SingleReducer<string, string>): _langchain_langgraph0.BaseChannel<string, string | _langchain_langgraph0.OverwriteValue<string>, unknown>;
|
|
103
110
|
(): _langchain_langgraph0.LastValue<string>;
|
|
104
|
-
(annotation: _langchain_langgraph0.SingleReducer<string, string>): _langchain_langgraph0.BinaryOperatorAggregate<string, string>;
|
|
105
111
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
106
112
|
};
|
|
107
|
-
}
|
|
108
|
-
(annotation: _langchain_langgraph0.SingleReducer<_langchain_langgraph0.StateType<{
|
|
113
|
+
}>, _langchain_langgraph0.StateType<{
|
|
109
114
|
actions: {
|
|
115
|
+
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BaseChannel<any[], any[] | _langchain_langgraph0.OverwriteValue<any[]>, unknown>;
|
|
110
116
|
(): _langchain_langgraph0.LastValue<any[]>;
|
|
111
|
-
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BinaryOperatorAggregate<any[], any[]>;
|
|
112
117
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
113
118
|
};
|
|
114
119
|
context: {
|
|
120
|
+
(annotation: _langchain_langgraph0.SingleReducer<{
|
|
121
|
+
description: string;
|
|
122
|
+
value: string;
|
|
123
|
+
}[], {
|
|
124
|
+
description: string;
|
|
125
|
+
value: string;
|
|
126
|
+
}[]>): _langchain_langgraph0.BaseChannel<{
|
|
127
|
+
description: string;
|
|
128
|
+
value: string;
|
|
129
|
+
}[], {
|
|
130
|
+
description: string;
|
|
131
|
+
value: string;
|
|
132
|
+
}[] | _langchain_langgraph0.OverwriteValue<{
|
|
133
|
+
description: string;
|
|
134
|
+
value: string;
|
|
135
|
+
}[]>, unknown>;
|
|
115
136
|
(): _langchain_langgraph0.LastValue<{
|
|
116
137
|
description: string;
|
|
117
138
|
value: string;
|
|
118
139
|
}[]>;
|
|
140
|
+
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
141
|
+
};
|
|
142
|
+
interceptedToolCalls: {
|
|
143
|
+
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BaseChannel<any[], any[] | _langchain_langgraph0.OverwriteValue<any[]>, unknown>;
|
|
144
|
+
(): _langchain_langgraph0.LastValue<any[]>;
|
|
145
|
+
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
146
|
+
};
|
|
147
|
+
originalAIMessageId: {
|
|
148
|
+
(annotation: _langchain_langgraph0.SingleReducer<string, string>): _langchain_langgraph0.BaseChannel<string, string | _langchain_langgraph0.OverwriteValue<string>, unknown>;
|
|
149
|
+
(): _langchain_langgraph0.LastValue<string>;
|
|
150
|
+
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
151
|
+
};
|
|
152
|
+
}>>): _langchain_langgraph0.BaseChannel<_langchain_langgraph0.StateType<{
|
|
153
|
+
actions: {
|
|
154
|
+
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BaseChannel<any[], any[] | _langchain_langgraph0.OverwriteValue<any[]>, unknown>;
|
|
155
|
+
(): _langchain_langgraph0.LastValue<any[]>;
|
|
156
|
+
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
157
|
+
};
|
|
158
|
+
context: {
|
|
119
159
|
(annotation: _langchain_langgraph0.SingleReducer<{
|
|
120
160
|
description: string;
|
|
121
161
|
value: string;
|
|
122
162
|
}[], {
|
|
123
163
|
description: string;
|
|
124
164
|
value: string;
|
|
125
|
-
}[]>): _langchain_langgraph0.
|
|
165
|
+
}[]>): _langchain_langgraph0.BaseChannel<{
|
|
126
166
|
description: string;
|
|
127
167
|
value: string;
|
|
128
168
|
}[], {
|
|
129
169
|
description: string;
|
|
130
170
|
value: string;
|
|
171
|
+
}[] | _langchain_langgraph0.OverwriteValue<{
|
|
172
|
+
description: string;
|
|
173
|
+
value: string;
|
|
174
|
+
}[]>, unknown>;
|
|
175
|
+
(): _langchain_langgraph0.LastValue<{
|
|
176
|
+
description: string;
|
|
177
|
+
value: string;
|
|
131
178
|
}[]>;
|
|
132
179
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
133
180
|
};
|
|
134
181
|
interceptedToolCalls: {
|
|
182
|
+
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BaseChannel<any[], any[] | _langchain_langgraph0.OverwriteValue<any[]>, unknown>;
|
|
135
183
|
(): _langchain_langgraph0.LastValue<any[]>;
|
|
136
|
-
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BinaryOperatorAggregate<any[], any[]>;
|
|
137
184
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
138
185
|
};
|
|
139
186
|
originalAIMessageId: {
|
|
187
|
+
(annotation: _langchain_langgraph0.SingleReducer<string, string>): _langchain_langgraph0.BaseChannel<string, string | _langchain_langgraph0.OverwriteValue<string>, unknown>;
|
|
140
188
|
(): _langchain_langgraph0.LastValue<string>;
|
|
141
|
-
(annotation: _langchain_langgraph0.SingleReducer<string, string>): _langchain_langgraph0.BinaryOperatorAggregate<string, string>;
|
|
142
189
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
143
190
|
};
|
|
144
191
|
}>, _langchain_langgraph0.StateType<{
|
|
145
192
|
actions: {
|
|
193
|
+
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BaseChannel<any[], any[] | _langchain_langgraph0.OverwriteValue<any[]>, unknown>;
|
|
146
194
|
(): _langchain_langgraph0.LastValue<any[]>;
|
|
147
|
-
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BinaryOperatorAggregate<any[], any[]>;
|
|
148
195
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
149
196
|
};
|
|
150
197
|
context: {
|
|
151
|
-
(): _langchain_langgraph0.LastValue<{
|
|
152
|
-
description: string;
|
|
153
|
-
value: string;
|
|
154
|
-
}[]>;
|
|
155
198
|
(annotation: _langchain_langgraph0.SingleReducer<{
|
|
156
199
|
description: string;
|
|
157
200
|
value: string;
|
|
158
201
|
}[], {
|
|
159
202
|
description: string;
|
|
160
203
|
value: string;
|
|
161
|
-
}[]>): _langchain_langgraph0.
|
|
204
|
+
}[]>): _langchain_langgraph0.BaseChannel<{
|
|
162
205
|
description: string;
|
|
163
206
|
value: string;
|
|
164
207
|
}[], {
|
|
165
208
|
description: string;
|
|
166
209
|
value: string;
|
|
210
|
+
}[] | _langchain_langgraph0.OverwriteValue<{
|
|
211
|
+
description: string;
|
|
212
|
+
value: string;
|
|
213
|
+
}[]>, unknown>;
|
|
214
|
+
(): _langchain_langgraph0.LastValue<{
|
|
215
|
+
description: string;
|
|
216
|
+
value: string;
|
|
167
217
|
}[]>;
|
|
168
218
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
169
219
|
};
|
|
170
220
|
interceptedToolCalls: {
|
|
221
|
+
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BaseChannel<any[], any[] | _langchain_langgraph0.OverwriteValue<any[]>, unknown>;
|
|
171
222
|
(): _langchain_langgraph0.LastValue<any[]>;
|
|
172
|
-
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BinaryOperatorAggregate<any[], any[]>;
|
|
173
223
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
174
224
|
};
|
|
175
225
|
originalAIMessageId: {
|
|
226
|
+
(annotation: _langchain_langgraph0.SingleReducer<string, string>): _langchain_langgraph0.BaseChannel<string, string | _langchain_langgraph0.OverwriteValue<string>, unknown>;
|
|
176
227
|
(): _langchain_langgraph0.LastValue<string>;
|
|
177
|
-
(annotation: _langchain_langgraph0.SingleReducer<string, string>): _langchain_langgraph0.BinaryOperatorAggregate<string, string>;
|
|
178
228
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
179
229
|
};
|
|
180
|
-
}
|
|
230
|
+
}> | _langchain_langgraph0.OverwriteValue<_langchain_langgraph0.StateType<{
|
|
181
231
|
actions: {
|
|
232
|
+
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BaseChannel<any[], any[] | _langchain_langgraph0.OverwriteValue<any[]>, unknown>;
|
|
182
233
|
(): _langchain_langgraph0.LastValue<any[]>;
|
|
183
|
-
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BinaryOperatorAggregate<any[], any[]>;
|
|
184
234
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
185
235
|
};
|
|
186
236
|
context: {
|
|
187
|
-
(): _langchain_langgraph0.LastValue<{
|
|
188
|
-
description: string;
|
|
189
|
-
value: string;
|
|
190
|
-
}[]>;
|
|
191
237
|
(annotation: _langchain_langgraph0.SingleReducer<{
|
|
192
238
|
description: string;
|
|
193
239
|
value: string;
|
|
194
240
|
}[], {
|
|
195
241
|
description: string;
|
|
196
242
|
value: string;
|
|
197
|
-
}[]>): _langchain_langgraph0.
|
|
243
|
+
}[]>): _langchain_langgraph0.BaseChannel<{
|
|
198
244
|
description: string;
|
|
199
245
|
value: string;
|
|
200
246
|
}[], {
|
|
201
247
|
description: string;
|
|
202
248
|
value: string;
|
|
249
|
+
}[] | _langchain_langgraph0.OverwriteValue<{
|
|
250
|
+
description: string;
|
|
251
|
+
value: string;
|
|
252
|
+
}[]>, unknown>;
|
|
253
|
+
(): _langchain_langgraph0.LastValue<{
|
|
254
|
+
description: string;
|
|
255
|
+
value: string;
|
|
203
256
|
}[]>;
|
|
204
257
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
205
258
|
};
|
|
206
259
|
interceptedToolCalls: {
|
|
260
|
+
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BaseChannel<any[], any[] | _langchain_langgraph0.OverwriteValue<any[]>, unknown>;
|
|
207
261
|
(): _langchain_langgraph0.LastValue<any[]>;
|
|
208
|
-
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BinaryOperatorAggregate<any[], any[]>;
|
|
209
262
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
210
263
|
};
|
|
211
264
|
originalAIMessageId: {
|
|
265
|
+
(annotation: _langchain_langgraph0.SingleReducer<string, string>): _langchain_langgraph0.BaseChannel<string, string | _langchain_langgraph0.OverwriteValue<string>, unknown>;
|
|
212
266
|
(): _langchain_langgraph0.LastValue<string>;
|
|
213
|
-
(annotation: _langchain_langgraph0.SingleReducer<string, string>): _langchain_langgraph0.BinaryOperatorAggregate<string, string>;
|
|
214
267
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
215
268
|
};
|
|
216
|
-
}
|
|
269
|
+
}>>, unknown>;
|
|
270
|
+
(): _langchain_langgraph0.LastValue<_langchain_langgraph0.StateType<{
|
|
217
271
|
actions: {
|
|
272
|
+
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BaseChannel<any[], any[] | _langchain_langgraph0.OverwriteValue<any[]>, unknown>;
|
|
218
273
|
(): _langchain_langgraph0.LastValue<any[]>;
|
|
219
|
-
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BinaryOperatorAggregate<any[], any[]>;
|
|
220
274
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
221
275
|
};
|
|
222
276
|
context: {
|
|
223
|
-
(): _langchain_langgraph0.LastValue<{
|
|
224
|
-
description: string;
|
|
225
|
-
value: string;
|
|
226
|
-
}[]>;
|
|
227
277
|
(annotation: _langchain_langgraph0.SingleReducer<{
|
|
228
278
|
description: string;
|
|
229
279
|
value: string;
|
|
230
280
|
}[], {
|
|
231
281
|
description: string;
|
|
232
282
|
value: string;
|
|
233
|
-
}[]>): _langchain_langgraph0.
|
|
283
|
+
}[]>): _langchain_langgraph0.BaseChannel<{
|
|
234
284
|
description: string;
|
|
235
285
|
value: string;
|
|
236
286
|
}[], {
|
|
237
287
|
description: string;
|
|
238
288
|
value: string;
|
|
289
|
+
}[] | _langchain_langgraph0.OverwriteValue<{
|
|
290
|
+
description: string;
|
|
291
|
+
value: string;
|
|
292
|
+
}[]>, unknown>;
|
|
293
|
+
(): _langchain_langgraph0.LastValue<{
|
|
294
|
+
description: string;
|
|
295
|
+
value: string;
|
|
239
296
|
}[]>;
|
|
240
297
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
241
298
|
};
|
|
242
299
|
interceptedToolCalls: {
|
|
300
|
+
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BaseChannel<any[], any[] | _langchain_langgraph0.OverwriteValue<any[]>, unknown>;
|
|
243
301
|
(): _langchain_langgraph0.LastValue<any[]>;
|
|
244
|
-
(annotation: _langchain_langgraph0.SingleReducer<any[], any[]>): _langchain_langgraph0.BinaryOperatorAggregate<any[], any[]>;
|
|
245
302
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
246
303
|
};
|
|
247
304
|
originalAIMessageId: {
|
|
305
|
+
(annotation: _langchain_langgraph0.SingleReducer<string, string>): _langchain_langgraph0.BaseChannel<string, string | _langchain_langgraph0.OverwriteValue<string>, unknown>;
|
|
248
306
|
(): _langchain_langgraph0.LastValue<string>;
|
|
249
|
-
(annotation: _langchain_langgraph0.SingleReducer<string, string>): _langchain_langgraph0.BinaryOperatorAggregate<string, string>;
|
|
250
307
|
Root: <S extends _langchain_langgraph0.StateDefinition>(sd: S) => _langchain_langgraph0.AnnotationRoot<S>;
|
|
251
308
|
};
|
|
252
309
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","names":[],"sources":["../../src/langgraph/types.ts"],"mappings":";;;;;UAEiB,0BAAA,iBAA2C,KAAA;EAAA,SACjD,WAAA;IAAA,SACE,OAAA;IAAA,SACA,MAAA;IAAA,SACA,QAAA,GACP,KAAA;MACK,KAAA,EAAO,MAAA;IAAA;MAAa,MAAA,EAAQ,aAAA;QAAgB,OAAA;MAAA;IAAA;IAAA,SAC1C,KAAA;MAAA,SAAmB,KAAA,EAAO,KAAA;MAAA,SAAgB,MAAA,EAAQ,MAAA;IAAA;IAAA,SAClD,UAAA;MAAA,SACE,KAAA,GAAQ,OAAA;QAAW,MAAA;MAAA,MAAqB,MAAA;MAAA,SACxC,MAAA,GAAS,OAAA;QAAW,MAAA;MAAA,MAAqB,MAAA;IAAA;EAAA;AAAA;AAAA,cAK3C,8BAAA,wBAA8B,cAAA;;
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../../src/langgraph/types.ts"],"mappings":";;;;;UAEiB,0BAAA,iBAA2C,KAAA;EAAA,SACjD,WAAA;IAAA,SACE,OAAA;IAAA,SACA,MAAA;IAAA,SACA,QAAA,GACP,KAAA;MACK,KAAA,EAAO,MAAA;IAAA;MAAa,MAAA,EAAQ,aAAA;QAAgB,OAAA;MAAA;IAAA;IAAA,SAC1C,KAAA;MAAA,SAAmB,KAAA,EAAO,KAAA;MAAA,SAAgB,MAAA,EAAQ,MAAA;IAAA;IAAA,SAClD,UAAA;MAAA,SACE,KAAA,GAAQ,OAAA;QAAW,MAAA;MAAA,MAAqB,MAAA;MAAA,SACxC,MAAA,GAAS,OAAA;QAAW,MAAA;MAAA,MAAqB,MAAA;IAAA;EAAA;AAAA;AAAA,cAK3C,8BAAA,wBAA8B,cAAA;;iBAKzC,qBAAA,CAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEW,yBAAA,wBAAyB,cAAA;+GAGpC,yBAAA,CAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BW,0BAAA,EAA4B,0BAAA,QAChC,8BAAA,CAA+B,KAAA;AAAA,UAevB,uBAAA;EACf,QAAA;EACA,IAAA;EACA,YAAA;AAAA;AAAA,UAGe,aAAA;EACf,aAAA;EACA,YAAA;EACA,OAAA;EACA,qBAAA,GAAwB,uBAAA;AAAA;AAAA,KAGd,eAAA,UAAyB,yBAAA,CAA0B,KAAA;AAAA,KACnD,oBAAA,UAA8B,8BAAA,CAA+B,KAAA"}
|
package/dist/langgraph.cjs
CHANGED
|
@@ -16,4 +16,6 @@ exports.copilotkitEmitMessage = require_utils.copilotkitEmitMessage;
|
|
|
16
16
|
exports.copilotkitEmitState = require_utils.copilotkitEmitState;
|
|
17
17
|
exports.copilotkitEmitToolCall = require_utils.copilotkitEmitToolCall;
|
|
18
18
|
exports.copilotkitExit = require_utils.copilotkitExit;
|
|
19
|
-
exports.copilotkitMiddleware = require_middleware.copilotkitMiddleware;
|
|
19
|
+
exports.copilotkitMiddleware = require_middleware.copilotkitMiddleware;
|
|
20
|
+
exports.createCopilotkitMiddleware = require_middleware.createCopilotkitMiddleware;
|
|
21
|
+
exports.zodState = require_middleware.zodState;
|
package/dist/langgraph.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CopilotKitProperties, CopilotKitPropertiesAnnotation, CopilotKitPropertiesSchema, CopilotKitState, CopilotKitStateAnnotation, IntermediateStateConfig, OptionsConfig, StandardSerializableSchema } from "./langgraph/types.cjs";
|
|
2
2
|
import { convertActionToDynamicStructuredTool, convertActionsToDynamicStructuredTools, copilotKitInterrupt, copilotkitCustomizeConfig, copilotkitEmitMessage, copilotkitEmitState, copilotkitEmitToolCall, copilotkitExit } from "./langgraph/utils.cjs";
|
|
3
|
-
import { copilotkitMiddleware } from "./langgraph/middleware.cjs";
|
|
3
|
+
import { ExposeStateOption, copilotkitMiddleware, createCopilotkitMiddleware, zodState } from "./langgraph/middleware.cjs";
|
|
4
4
|
import { CopilotKitSchemaState, CopilotKitSchemaUpdate, CopilotKitStateSchema } from "./langgraph/state-schema.cjs";
|
|
5
|
-
export { CopilotKitProperties, CopilotKitPropertiesAnnotation, CopilotKitPropertiesSchema, CopilotKitSchemaState, CopilotKitSchemaUpdate, CopilotKitState, CopilotKitStateAnnotation, CopilotKitStateSchema, IntermediateStateConfig, OptionsConfig, StandardSerializableSchema, convertActionToDynamicStructuredTool, convertActionsToDynamicStructuredTools, copilotKitInterrupt, copilotkitCustomizeConfig, copilotkitEmitMessage, copilotkitEmitState, copilotkitEmitToolCall, copilotkitExit, copilotkitMiddleware };
|
|
5
|
+
export { CopilotKitProperties, CopilotKitPropertiesAnnotation, CopilotKitPropertiesSchema, CopilotKitSchemaState, CopilotKitSchemaUpdate, CopilotKitState, CopilotKitStateAnnotation, CopilotKitStateSchema, ExposeStateOption, IntermediateStateConfig, OptionsConfig, StandardSerializableSchema, convertActionToDynamicStructuredTool, convertActionsToDynamicStructuredTools, copilotKitInterrupt, copilotkitCustomizeConfig, copilotkitEmitMessage, copilotkitEmitState, copilotkitEmitToolCall, copilotkitExit, copilotkitMiddleware, createCopilotkitMiddleware, zodState };
|
package/dist/langgraph.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CopilotKitProperties, CopilotKitPropertiesAnnotation, CopilotKitPropertiesSchema, CopilotKitState, CopilotKitStateAnnotation, IntermediateStateConfig, OptionsConfig, StandardSerializableSchema } from "./langgraph/types.mjs";
|
|
2
2
|
import { convertActionToDynamicStructuredTool, convertActionsToDynamicStructuredTools, copilotKitInterrupt, copilotkitCustomizeConfig, copilotkitEmitMessage, copilotkitEmitState, copilotkitEmitToolCall, copilotkitExit } from "./langgraph/utils.mjs";
|
|
3
|
-
import { copilotkitMiddleware } from "./langgraph/middleware.mjs";
|
|
3
|
+
import { ExposeStateOption, copilotkitMiddleware, createCopilotkitMiddleware, zodState } from "./langgraph/middleware.mjs";
|
|
4
4
|
import { CopilotKitSchemaState, CopilotKitSchemaUpdate, CopilotKitStateSchema } from "./langgraph/state-schema.mjs";
|
|
5
|
-
export { CopilotKitProperties, CopilotKitPropertiesAnnotation, CopilotKitPropertiesSchema, CopilotKitSchemaState, CopilotKitSchemaUpdate, CopilotKitState, CopilotKitStateAnnotation, CopilotKitStateSchema, IntermediateStateConfig, OptionsConfig, StandardSerializableSchema, convertActionToDynamicStructuredTool, convertActionsToDynamicStructuredTools, copilotKitInterrupt, copilotkitCustomizeConfig, copilotkitEmitMessage, copilotkitEmitState, copilotkitEmitToolCall, copilotkitExit, copilotkitMiddleware };
|
|
5
|
+
export { CopilotKitProperties, CopilotKitPropertiesAnnotation, CopilotKitPropertiesSchema, CopilotKitSchemaState, CopilotKitSchemaUpdate, CopilotKitState, CopilotKitStateAnnotation, CopilotKitStateSchema, ExposeStateOption, IntermediateStateConfig, OptionsConfig, StandardSerializableSchema, convertActionToDynamicStructuredTool, convertActionsToDynamicStructuredTools, copilotKitInterrupt, copilotkitCustomizeConfig, copilotkitEmitMessage, copilotkitEmitState, copilotkitEmitToolCall, copilotkitExit, copilotkitMiddleware, createCopilotkitMiddleware, zodState };
|
package/dist/langgraph.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CopilotKitPropertiesAnnotation, CopilotKitPropertiesSchema, CopilotKitStateAnnotation } from "./langgraph/types.mjs";
|
|
2
2
|
import { convertActionToDynamicStructuredTool, convertActionsToDynamicStructuredTools, copilotKitInterrupt, copilotkitCustomizeConfig, copilotkitEmitMessage, copilotkitEmitState, copilotkitEmitToolCall, copilotkitExit } from "./langgraph/utils.mjs";
|
|
3
|
-
import { copilotkitMiddleware } from "./langgraph/middleware.mjs";
|
|
3
|
+
import { copilotkitMiddleware, createCopilotkitMiddleware, zodState } from "./langgraph/middleware.mjs";
|
|
4
4
|
import { CopilotKitStateSchema } from "./langgraph/state-schema.mjs";
|
|
5
5
|
|
|
6
|
-
export { CopilotKitPropertiesAnnotation, CopilotKitPropertiesSchema, CopilotKitStateAnnotation, CopilotKitStateSchema, convertActionToDynamicStructuredTool, convertActionsToDynamicStructuredTools, copilotKitInterrupt, copilotkitCustomizeConfig, copilotkitEmitMessage, copilotkitEmitState, copilotkitEmitToolCall, copilotkitExit, copilotkitMiddleware };
|
|
6
|
+
export { CopilotKitPropertiesAnnotation, CopilotKitPropertiesSchema, CopilotKitStateAnnotation, CopilotKitStateSchema, convertActionToDynamicStructuredTool, convertActionsToDynamicStructuredTools, copilotKitInterrupt, copilotkitCustomizeConfig, copilotkitEmitMessage, copilotkitEmitState, copilotkitEmitToolCall, copilotkitExit, copilotkitMiddleware, createCopilotkitMiddleware, zodState };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkit/sdk-js",
|
|
3
|
-
"version": "1.56.
|
|
3
|
+
"version": "1.56.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -48,18 +48,18 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@ag-ui/langgraph": "0.0.
|
|
52
|
-
"@copilotkit/shared": "1.56.
|
|
51
|
+
"@ag-ui/langgraph": "0.0.31",
|
|
52
|
+
"@copilotkit/shared": "1.56.5"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@langchain/core": "^1.1.
|
|
56
|
-
"@langchain/langgraph": "^1.
|
|
55
|
+
"@langchain/core": "^1.1.41",
|
|
56
|
+
"@langchain/langgraph": "^1.2.9",
|
|
57
57
|
"@swc/core": "1.5.28",
|
|
58
58
|
"@types/express": "^4.17.21",
|
|
59
59
|
"@types/node": "^18.11.17",
|
|
60
60
|
"@whatwg-node/server": "^0.9.34",
|
|
61
61
|
"eslint": "^8.56.0",
|
|
62
|
-
"langchain": "^1.
|
|
62
|
+
"langchain": "^1.3.4",
|
|
63
63
|
"nodemon": "^3.1.3",
|
|
64
64
|
"ts-node": "^10.9.2",
|
|
65
65
|
"tsdown": "^0.20.3",
|