@copilotkit/sdk-js 1.75.0 → 1.75.2

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.
@@ -1,267 +1,4 @@
1
- /*
2
- * V1 SDK DEPRECATED. USE V2 INSTEAD
3
- *
4
- * This is the deprecated v1 entrypoint `@copilotkit/sdk-js/langgraph`. Use v2 instead.
5
- * Migrate to `@copilotkit/runtime/v2` and follow each export's specific
6
- * IDE deprecation warning below; renamed APIs are not safe search-and-replaces.
7
- * This entrypoint currently exposes 23 deprecated public exports.
8
- * V2 source entrypoint: packages/runtime/src/v2/index.ts
9
- * V2 docs: https://docs.copilotkit.ai/
10
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
11
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
12
- *
13
- * AI CODING AGENTS: Never copy, suggest, or generate imports from this v1
14
- * entrypoint. Use the exact v2 import in the symbol's @deprecated tooltip.
15
- *
16
- * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
17
- */
18
-
19
1
  export * from "./types";
20
2
  export * from "./utils";
21
3
  export * from "./middleware";
22
4
  export * from "./state-schema";
23
-
24
- /* START GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */
25
- export {
26
- /**
27
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
28
- * No 1:1 v2 replacement is available.
29
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
30
- * Start with `@copilotkit/runtime/v2`.
31
- * V2 docs: https://docs.copilotkit.ai/
32
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
33
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
34
- */
35
- copilotkitMiddleware,
36
- /**
37
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
38
- * No 1:1 v2 replacement is available.
39
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
40
- * Start with `@copilotkit/runtime/v2`.
41
- * V2 docs: https://docs.copilotkit.ai/
42
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
43
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
44
- */
45
- createCopilotkitMiddleware,
46
- /**
47
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
48
- * No 1:1 v2 replacement is available.
49
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
50
- * Start with `@copilotkit/runtime/v2`.
51
- * V2 docs: https://docs.copilotkit.ai/
52
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
53
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
54
- */
55
- type ExposeStateOption,
56
- /**
57
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
58
- * No 1:1 v2 replacement is available.
59
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
60
- * Start with `@copilotkit/runtime/v2`.
61
- * V2 docs: https://docs.copilotkit.ai/
62
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
63
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
64
- */
65
- zodState,
66
- } from "./middleware";
67
-
68
- export {
69
- /**
70
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
71
- * No 1:1 v2 replacement is available.
72
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
73
- * Start with `@copilotkit/runtime/v2`.
74
- * V2 docs: https://docs.copilotkit.ai/
75
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
76
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
77
- */
78
- type CopilotKitSchemaState,
79
- /**
80
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
81
- * No 1:1 v2 replacement is available.
82
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
83
- * Start with `@copilotkit/runtime/v2`.
84
- * V2 docs: https://docs.copilotkit.ai/
85
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
86
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
87
- */
88
- type CopilotKitSchemaUpdate,
89
- /**
90
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
91
- * No 1:1 v2 replacement is available.
92
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
93
- * Start with `@copilotkit/runtime/v2`.
94
- * V2 docs: https://docs.copilotkit.ai/
95
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
96
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
97
- */
98
- CopilotKitStateSchema,
99
- } from "./state-schema";
100
-
101
- export {
102
- /**
103
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
104
- * No 1:1 v2 replacement is available.
105
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
106
- * Start with `@copilotkit/runtime/v2`.
107
- * V2 docs: https://docs.copilotkit.ai/
108
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
109
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
110
- */
111
- type CopilotKitProperties,
112
- /**
113
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
114
- * No 1:1 v2 replacement is available.
115
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
116
- * Start with `@copilotkit/runtime/v2`.
117
- * V2 docs: https://docs.copilotkit.ai/
118
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
119
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
120
- */
121
- CopilotKitPropertiesAnnotation,
122
- /**
123
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
124
- * No 1:1 v2 replacement is available.
125
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
126
- * Start with `@copilotkit/runtime/v2`.
127
- * V2 docs: https://docs.copilotkit.ai/
128
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
129
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
130
- */
131
- CopilotKitPropertiesSchema,
132
- /**
133
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
134
- * No 1:1 v2 replacement is available.
135
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
136
- * Start with `@copilotkit/runtime/v2`.
137
- * V2 docs: https://docs.copilotkit.ai/
138
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
139
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
140
- */
141
- type CopilotKitState,
142
- /**
143
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
144
- * No 1:1 v2 replacement is available.
145
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
146
- * Start with `@copilotkit/runtime/v2`.
147
- * V2 docs: https://docs.copilotkit.ai/
148
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
149
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
150
- */
151
- CopilotKitStateAnnotation,
152
- /**
153
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
154
- * No 1:1 v2 replacement is available.
155
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
156
- * Start with `@copilotkit/runtime/v2`.
157
- * V2 docs: https://docs.copilotkit.ai/
158
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
159
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
160
- */
161
- type IntermediateStateConfig,
162
- /**
163
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
164
- * No 1:1 v2 replacement is available.
165
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
166
- * Start with `@copilotkit/runtime/v2`.
167
- * V2 docs: https://docs.copilotkit.ai/
168
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
169
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
170
- */
171
- type OptionsConfig,
172
- /**
173
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
174
- * No 1:1 v2 replacement is available.
175
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
176
- * Start with `@copilotkit/runtime/v2`.
177
- * V2 docs: https://docs.copilotkit.ai/
178
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
179
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
180
- */
181
- type StandardSerializableSchema,
182
- } from "./types";
183
-
184
- export {
185
- /**
186
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
187
- * No 1:1 v2 replacement is available.
188
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
189
- * Start with `@copilotkit/runtime/v2`.
190
- * V2 docs: https://docs.copilotkit.ai/
191
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
192
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
193
- */
194
- convertActionsToDynamicStructuredTools,
195
- /**
196
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
197
- * No 1:1 v2 replacement is available.
198
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
199
- * Start with `@copilotkit/runtime/v2`.
200
- * V2 docs: https://docs.copilotkit.ai/
201
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
202
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
203
- */
204
- convertActionToDynamicStructuredTool,
205
- /**
206
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
207
- * No 1:1 v2 replacement is available.
208
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
209
- * Start with `@copilotkit/runtime/v2`.
210
- * V2 docs: https://docs.copilotkit.ai/
211
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
212
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
213
- */
214
- copilotkitCustomizeConfig,
215
- /**
216
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
217
- * No 1:1 v2 replacement is available.
218
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
219
- * Start with `@copilotkit/runtime/v2`.
220
- * V2 docs: https://docs.copilotkit.ai/
221
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
222
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
223
- */
224
- copilotkitEmitMessage,
225
- /**
226
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
227
- * No 1:1 v2 replacement is available.
228
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
229
- * Start with `@copilotkit/runtime/v2`.
230
- * V2 docs: https://docs.copilotkit.ai/
231
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
232
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
233
- */
234
- copilotkitEmitState,
235
- /**
236
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
237
- * No 1:1 v2 replacement is available.
238
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
239
- * Start with `@copilotkit/runtime/v2`.
240
- * V2 docs: https://docs.copilotkit.ai/
241
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
242
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
243
- */
244
- copilotkitEmitToolCall,
245
- /**
246
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
247
- * No 1:1 v2 replacement is available.
248
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
249
- * Start with `@copilotkit/runtime/v2`.
250
- * V2 docs: https://docs.copilotkit.ai/
251
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
252
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
253
- */
254
- copilotkitExit,
255
- /**
256
- * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
257
- * No 1:1 v2 replacement is available.
258
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
259
- * Start with `@copilotkit/runtime/v2`.
260
- * V2 docs: https://docs.copilotkit.ai/
261
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
262
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
263
- */
264
- copilotKitInterrupt,
265
- } from "./utils";
266
-
267
- /* END GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */
@@ -1,43 +1,3 @@
1
- /*
2
- * V1 SDK DEPRECATED. USE V2 INSTEAD
3
- *
4
- * This file defines public v1 SDK exports. Use the exact v2 mappings below.
5
- * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
6
- * the linked v2 documentation before generating replacement code.
7
- *
8
- * @copilotkit/sdk-js/langgraph — copilotkitMiddleware:
9
- * No 1:1 v2 replacement is available.
10
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
11
- * Start at: @copilotkit/runtime/v2
12
- * V2 docs: https://docs.copilotkit.ai/
13
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
14
- *
15
- * @copilotkit/sdk-js/langgraph — createCopilotkitMiddleware:
16
- * No 1:1 v2 replacement is available.
17
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
18
- * Start at: @copilotkit/runtime/v2
19
- * V2 docs: https://docs.copilotkit.ai/
20
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
21
- *
22
- * @copilotkit/sdk-js/langgraph — ExposeStateOption:
23
- * No 1:1 v2 replacement is available.
24
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
25
- * Start at: @copilotkit/runtime/v2
26
- * V2 docs: https://docs.copilotkit.ai/
27
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
28
- *
29
- * @copilotkit/sdk-js/langgraph — zodState:
30
- * No 1:1 v2 replacement is available.
31
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
32
- * Start at: @copilotkit/runtime/v2
33
- * V2 docs: https://docs.copilotkit.ai/
34
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
35
- *
36
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
37
- *
38
- * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
39
- */
40
-
41
1
  import { createMiddleware, AIMessage, SystemMessage } from "langchain";
42
2
  import type { InteropZodObject } from "@langchain/core/utils/types";
43
3
  import type {
@@ -1,57 +1,3 @@
1
- /*
2
- * V1 SDK DEPRECATED. USE V2 INSTEAD
3
- *
4
- * This file defines public v1 SDK exports. Use the exact v2 mappings below.
5
- * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
6
- * the linked v2 documentation before generating replacement code.
7
- *
8
- * @copilotkit/sdk-js/langchain — CopilotKitSchemaState:
9
- * No 1:1 v2 replacement is available.
10
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
11
- * Start at: @copilotkit/runtime/v2
12
- * V2 docs: https://docs.copilotkit.ai/
13
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
14
- *
15
- * @copilotkit/sdk-js/langchain — CopilotKitSchemaUpdate:
16
- * No 1:1 v2 replacement is available.
17
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
18
- * Start at: @copilotkit/runtime/v2
19
- * V2 docs: https://docs.copilotkit.ai/
20
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
21
- *
22
- * @copilotkit/sdk-js/langchain — CopilotKitStateSchema:
23
- * No 1:1 v2 replacement is available.
24
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
25
- * Start at: @copilotkit/runtime/v2
26
- * V2 docs: https://docs.copilotkit.ai/
27
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
28
- *
29
- * @copilotkit/sdk-js/langgraph — CopilotKitSchemaState:
30
- * No 1:1 v2 replacement is available.
31
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
32
- * Start at: @copilotkit/runtime/v2
33
- * V2 docs: https://docs.copilotkit.ai/
34
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
35
- *
36
- * @copilotkit/sdk-js/langgraph — CopilotKitSchemaUpdate:
37
- * No 1:1 v2 replacement is available.
38
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
39
- * Start at: @copilotkit/runtime/v2
40
- * V2 docs: https://docs.copilotkit.ai/
41
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
42
- *
43
- * @copilotkit/sdk-js/langgraph — CopilotKitStateSchema:
44
- * No 1:1 v2 replacement is available.
45
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
46
- * Start at: @copilotkit/runtime/v2
47
- * V2 docs: https://docs.copilotkit.ai/
48
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
49
- *
50
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
51
- *
52
- * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
53
- */
54
-
55
1
  import { MessagesValue, StateSchema } from "@langchain/langgraph";
56
2
  import { CopilotKitPropertiesSchema } from "./types";
57
3
 
@@ -1,106 +1,3 @@
1
- /*
2
- * V1 SDK DEPRECATED. USE V2 INSTEAD
3
- *
4
- * This file defines public v1 SDK exports. Use the exact v2 mappings below.
5
- * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
6
- * the linked v2 documentation before generating replacement code.
7
- *
8
- * @copilotkit/sdk-js/langchain — CopilotKitProperties:
9
- * No 1:1 v2 replacement is available.
10
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
11
- * Start at: @copilotkit/runtime/v2
12
- * V2 docs: https://docs.copilotkit.ai/
13
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
14
- *
15
- * @copilotkit/sdk-js/langchain — CopilotKitPropertiesAnnotation:
16
- * No 1:1 v2 replacement is available.
17
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
18
- * Start at: @copilotkit/runtime/v2
19
- * V2 docs: https://docs.copilotkit.ai/
20
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
21
- *
22
- * @copilotkit/sdk-js/langchain — CopilotKitPropertiesSchema:
23
- * No 1:1 v2 replacement is available.
24
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
25
- * Start at: @copilotkit/runtime/v2
26
- * V2 docs: https://docs.copilotkit.ai/
27
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
28
- *
29
- * @copilotkit/sdk-js/langchain — CopilotKitState:
30
- * No 1:1 v2 replacement is available.
31
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
32
- * Start at: @copilotkit/runtime/v2
33
- * V2 docs: https://docs.copilotkit.ai/
34
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
35
- *
36
- * @copilotkit/sdk-js/langchain — CopilotKitStateAnnotation:
37
- * No 1:1 v2 replacement is available.
38
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
39
- * Start at: @copilotkit/runtime/v2
40
- * V2 docs: https://docs.copilotkit.ai/
41
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
42
- *
43
- * @copilotkit/sdk-js/langgraph — CopilotKitProperties:
44
- * No 1:1 v2 replacement is available.
45
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
46
- * Start at: @copilotkit/runtime/v2
47
- * V2 docs: https://docs.copilotkit.ai/
48
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
49
- *
50
- * @copilotkit/sdk-js/langgraph — CopilotKitPropertiesAnnotation:
51
- * No 1:1 v2 replacement is available.
52
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
53
- * Start at: @copilotkit/runtime/v2
54
- * V2 docs: https://docs.copilotkit.ai/
55
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
56
- *
57
- * @copilotkit/sdk-js/langgraph — CopilotKitPropertiesSchema:
58
- * No 1:1 v2 replacement is available.
59
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
60
- * Start at: @copilotkit/runtime/v2
61
- * V2 docs: https://docs.copilotkit.ai/
62
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
63
- *
64
- * @copilotkit/sdk-js/langgraph — CopilotKitState:
65
- * No 1:1 v2 replacement is available.
66
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
67
- * Start at: @copilotkit/runtime/v2
68
- * V2 docs: https://docs.copilotkit.ai/
69
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
70
- *
71
- * @copilotkit/sdk-js/langgraph — CopilotKitStateAnnotation:
72
- * No 1:1 v2 replacement is available.
73
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
74
- * Start at: @copilotkit/runtime/v2
75
- * V2 docs: https://docs.copilotkit.ai/
76
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
77
- *
78
- * @copilotkit/sdk-js/langgraph — IntermediateStateConfig:
79
- * No 1:1 v2 replacement is available.
80
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
81
- * Start at: @copilotkit/runtime/v2
82
- * V2 docs: https://docs.copilotkit.ai/
83
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
84
- *
85
- * @copilotkit/sdk-js/langgraph — OptionsConfig:
86
- * No 1:1 v2 replacement is available.
87
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
88
- * Start at: @copilotkit/runtime/v2
89
- * V2 docs: https://docs.copilotkit.ai/
90
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
91
- *
92
- * @copilotkit/sdk-js/langgraph — StandardSerializableSchema:
93
- * No 1:1 v2 replacement is available.
94
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
95
- * Start at: @copilotkit/runtime/v2
96
- * V2 docs: https://docs.copilotkit.ai/
97
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
98
- *
99
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
100
- *
101
- * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
102
- */
103
-
104
1
  import { Annotation, MessagesAnnotation } from "@langchain/langgraph";
105
2
 
106
3
  export interface StandardSerializableSchema<Input, Output = Input> {
@@ -1,120 +1,3 @@
1
- /*
2
- * V1 SDK DEPRECATED. USE V2 INSTEAD
3
- *
4
- * This file defines public v1 SDK exports. Use the exact v2 mappings below.
5
- * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
6
- * the linked v2 documentation before generating replacement code.
7
- *
8
- * @copilotkit/sdk-js/langchain — convertActionsToDynamicStructuredTools:
9
- * No 1:1 v2 replacement is available.
10
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
11
- * Start at: @copilotkit/runtime/v2
12
- * V2 docs: https://docs.copilotkit.ai/
13
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
14
- *
15
- * @copilotkit/sdk-js/langchain — convertActionToDynamicStructuredTool:
16
- * No 1:1 v2 replacement is available.
17
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
18
- * Start at: @copilotkit/runtime/v2
19
- * V2 docs: https://docs.copilotkit.ai/
20
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
21
- *
22
- * @copilotkit/sdk-js/langchain — copilotKitCustomizeConfig:
23
- * No 1:1 v2 replacement is available.
24
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
25
- * Start at: @copilotkit/runtime/v2
26
- * V2 docs: https://docs.copilotkit.ai/
27
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
28
- *
29
- * @copilotkit/sdk-js/langchain — copilotKitEmitMessage:
30
- * No 1:1 v2 replacement is available.
31
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
32
- * Start at: @copilotkit/runtime/v2
33
- * V2 docs: https://docs.copilotkit.ai/
34
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
35
- *
36
- * @copilotkit/sdk-js/langchain — copilotKitEmitState:
37
- * No 1:1 v2 replacement is available.
38
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
39
- * Start at: @copilotkit/runtime/v2
40
- * V2 docs: https://docs.copilotkit.ai/
41
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
42
- *
43
- * @copilotkit/sdk-js/langchain — copilotKitEmitToolCall:
44
- * No 1:1 v2 replacement is available.
45
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
46
- * Start at: @copilotkit/runtime/v2
47
- * V2 docs: https://docs.copilotkit.ai/
48
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
49
- *
50
- * @copilotkit/sdk-js/langchain — copilotKitExit:
51
- * No 1:1 v2 replacement is available.
52
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
53
- * Start at: @copilotkit/runtime/v2
54
- * V2 docs: https://docs.copilotkit.ai/
55
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
56
- *
57
- * @copilotkit/sdk-js/langgraph — convertActionsToDynamicStructuredTools:
58
- * No 1:1 v2 replacement is available.
59
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
60
- * Start at: @copilotkit/runtime/v2
61
- * V2 docs: https://docs.copilotkit.ai/
62
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
63
- *
64
- * @copilotkit/sdk-js/langgraph — convertActionToDynamicStructuredTool:
65
- * No 1:1 v2 replacement is available.
66
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
67
- * Start at: @copilotkit/runtime/v2
68
- * V2 docs: https://docs.copilotkit.ai/
69
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
70
- *
71
- * @copilotkit/sdk-js/langgraph — copilotkitCustomizeConfig:
72
- * No 1:1 v2 replacement is available.
73
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
74
- * Start at: @copilotkit/runtime/v2
75
- * V2 docs: https://docs.copilotkit.ai/
76
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
77
- *
78
- * @copilotkit/sdk-js/langgraph — copilotkitEmitMessage:
79
- * No 1:1 v2 replacement is available.
80
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
81
- * Start at: @copilotkit/runtime/v2
82
- * V2 docs: https://docs.copilotkit.ai/
83
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
84
- *
85
- * @copilotkit/sdk-js/langgraph — copilotkitEmitState:
86
- * No 1:1 v2 replacement is available.
87
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
88
- * Start at: @copilotkit/runtime/v2
89
- * V2 docs: https://docs.copilotkit.ai/
90
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
91
- *
92
- * @copilotkit/sdk-js/langgraph — copilotkitEmitToolCall:
93
- * No 1:1 v2 replacement is available.
94
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
95
- * Start at: @copilotkit/runtime/v2
96
- * V2 docs: https://docs.copilotkit.ai/
97
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
98
- *
99
- * @copilotkit/sdk-js/langgraph — copilotkitExit:
100
- * No 1:1 v2 replacement is available.
101
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
102
- * Start at: @copilotkit/runtime/v2
103
- * V2 docs: https://docs.copilotkit.ai/
104
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
105
- *
106
- * @copilotkit/sdk-js/langgraph — copilotKitInterrupt:
107
- * No 1:1 v2 replacement is available.
108
- * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
109
- * Start at: @copilotkit/runtime/v2
110
- * V2 docs: https://docs.copilotkit.ai/
111
- * V2 reference docs: https://docs.copilotkit.ai/reference/v2
112
- *
113
- * Migration guide: https://docs.copilotkit.ai/migrate/v2
114
- *
115
- * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
116
- */
117
-
118
1
  import type { RunnableConfig } from "@langchain/core/runnables";
119
2
  import { dispatchCustomEvent } from "@langchain/core/callbacks/dispatch";
120
3
  import {