@copilotkit/sdk-js 1.69.0 → 1.69.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.
Files changed (42) hide show
  1. package/dist/header-propagation.cjs.map +1 -1
  2. package/dist/header-propagation.d.cts.map +1 -1
  3. package/dist/header-propagation.d.mts.map +1 -1
  4. package/dist/header-propagation.mjs.map +1 -1
  5. package/dist/index.d.cts +17 -1
  6. package/dist/index.d.mts +17 -1
  7. package/dist/langchain.cjs.map +1 -1
  8. package/dist/langchain.d.cts +136 -1
  9. package/dist/langchain.d.mts +136 -1
  10. package/dist/langchain.mjs.map +1 -1
  11. package/dist/langgraph/middleware.cjs.map +1 -1
  12. package/dist/langgraph/middleware.d.cts.map +1 -1
  13. package/dist/langgraph/middleware.d.mts.map +1 -1
  14. package/dist/langgraph/middleware.mjs.map +1 -1
  15. package/dist/langgraph/state-schema.cjs.map +1 -1
  16. package/dist/langgraph/state-schema.d.cts.map +1 -1
  17. package/dist/langgraph/state-schema.d.mts.map +1 -1
  18. package/dist/langgraph/state-schema.mjs.map +1 -1
  19. package/dist/langgraph/types.cjs.map +1 -1
  20. package/dist/langgraph/types.d.cts.map +1 -1
  21. package/dist/langgraph/types.d.mts.map +1 -1
  22. package/dist/langgraph/types.mjs.map +1 -1
  23. package/dist/langgraph/utils.cjs.map +1 -1
  24. package/dist/langgraph/utils.d.cts.map +1 -1
  25. package/dist/langgraph/utils.d.mts.map +1 -1
  26. package/dist/langgraph/utils.mjs.map +1 -1
  27. package/dist/langgraph-middlewares.cjs +15 -2
  28. package/dist/langgraph-middlewares.d.cts +30 -1
  29. package/dist/langgraph-middlewares.d.mts +30 -1
  30. package/dist/langgraph-middlewares.mjs +3 -1
  31. package/dist/langgraph.d.cts +208 -1
  32. package/dist/langgraph.d.mts +208 -1
  33. package/package.json +3 -3
  34. package/src/header-propagation.ts +24 -0
  35. package/src/index.ts +38 -1
  36. package/src/langchain.ts +167 -11
  37. package/src/langgraph/index.ts +263 -0
  38. package/src/langgraph/middleware.ts +40 -0
  39. package/src/langgraph/state-schema.ts +54 -0
  40. package/src/langgraph/types.ts +103 -0
  41. package/src/langgraph/utils.ts +117 -0
  42. package/src/langgraph-middlewares.ts +54 -0
package/src/langchain.ts CHANGED
@@ -1,21 +1,177 @@
1
+ /*
2
+ * V1 SDK DEPRECATED. USE V2 INSTEAD
3
+ *
4
+ * This is the deprecated v1 entrypoint `@copilotkit/sdk-js/langchain`. 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 15 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
+
1
19
  console.warn(
2
20
  "Warning: '@copilotkit/sdk-js/langchain' is deprecated and will be removed in a future release. Please use '@copilotkit/sdk-js/langgraph' instead.",
3
21
  );
4
22
 
23
+ /* START GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */
5
24
  export {
25
+ /**
26
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
27
+ * No 1:1 v2 replacement is available.
28
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
29
+ * Start with `@copilotkit/runtime/v2`.
30
+ * V2 docs: https://docs.copilotkit.ai/
31
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
32
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
33
+ */
34
+ convertActionsToDynamicStructuredTools,
35
+ /**
36
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
37
+ * No 1:1 v2 replacement is available.
38
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
39
+ * Start with `@copilotkit/runtime/v2`.
40
+ * V2 docs: https://docs.copilotkit.ai/
41
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
42
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
43
+ */
44
+ convertActionToDynamicStructuredTool,
45
+ /**
46
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
47
+ * No 1:1 v2 replacement is available.
48
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
49
+ * Start with `@copilotkit/runtime/v2`.
50
+ * V2 docs: https://docs.copilotkit.ai/
51
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
52
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
53
+ */
54
+ copilotkitCustomizeConfig as copilotKitCustomizeConfig,
55
+ /**
56
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
57
+ * No 1:1 v2 replacement is available.
58
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
59
+ * Start with `@copilotkit/runtime/v2`.
60
+ * V2 docs: https://docs.copilotkit.ai/
61
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
62
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
63
+ */
64
+ copilotkitEmitMessage as copilotKitEmitMessage,
65
+ /**
66
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
67
+ * No 1:1 v2 replacement is available.
68
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
69
+ * Start with `@copilotkit/runtime/v2`.
70
+ * V2 docs: https://docs.copilotkit.ai/
71
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
72
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
73
+ */
74
+ copilotkitEmitState as copilotKitEmitState,
75
+ /**
76
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
77
+ * No 1:1 v2 replacement is available.
78
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
79
+ * Start with `@copilotkit/runtime/v2`.
80
+ * V2 docs: https://docs.copilotkit.ai/
81
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
82
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
83
+ */
84
+ copilotkitEmitToolCall as copilotKitEmitToolCall,
85
+ /**
86
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
87
+ * No 1:1 v2 replacement is available.
88
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
89
+ * Start with `@copilotkit/runtime/v2`.
90
+ * V2 docs: https://docs.copilotkit.ai/
91
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
92
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
93
+ */
94
+ copilotkitExit as copilotKitExit,
95
+ /**
96
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
97
+ * No 1:1 v2 replacement is available.
98
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
99
+ * Start with `@copilotkit/runtime/v2`.
100
+ * V2 docs: https://docs.copilotkit.ai/
101
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
102
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
103
+ */
104
+ type CopilotKitProperties,
105
+ /**
106
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
107
+ * No 1:1 v2 replacement is available.
108
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
109
+ * Start with `@copilotkit/runtime/v2`.
110
+ * V2 docs: https://docs.copilotkit.ai/
111
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
112
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
113
+ */
6
114
  CopilotKitPropertiesAnnotation,
115
+ /**
116
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
117
+ * No 1:1 v2 replacement is available.
118
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
119
+ * Start with `@copilotkit/runtime/v2`.
120
+ * V2 docs: https://docs.copilotkit.ai/
121
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
122
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
123
+ */
7
124
  CopilotKitPropertiesSchema,
8
- CopilotKitStateAnnotation,
9
- CopilotKitStateSchema,
10
- type CopilotKitState,
125
+ /**
126
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
127
+ * No 1:1 v2 replacement is available.
128
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
129
+ * Start with `@copilotkit/runtime/v2`.
130
+ * V2 docs: https://docs.copilotkit.ai/
131
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
132
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
133
+ */
11
134
  type CopilotKitSchemaState,
135
+ /**
136
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
137
+ * No 1:1 v2 replacement is available.
138
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
139
+ * Start with `@copilotkit/runtime/v2`.
140
+ * V2 docs: https://docs.copilotkit.ai/
141
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
142
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
143
+ */
12
144
  type CopilotKitSchemaUpdate,
13
- type CopilotKitProperties,
14
- copilotkitCustomizeConfig as copilotKitCustomizeConfig,
15
- copilotkitExit as copilotKitExit,
16
- copilotkitEmitState as copilotKitEmitState,
17
- copilotkitEmitMessage as copilotKitEmitMessage,
18
- copilotkitEmitToolCall as copilotKitEmitToolCall,
19
- convertActionToDynamicStructuredTool,
20
- convertActionsToDynamicStructuredTools,
145
+ /**
146
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
147
+ * No 1:1 v2 replacement is available.
148
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
149
+ * Start with `@copilotkit/runtime/v2`.
150
+ * V2 docs: https://docs.copilotkit.ai/
151
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
152
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
153
+ */
154
+ type CopilotKitState,
155
+ /**
156
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
157
+ * No 1:1 v2 replacement is available.
158
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
159
+ * Start with `@copilotkit/runtime/v2`.
160
+ * V2 docs: https://docs.copilotkit.ai/
161
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
162
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
163
+ */
164
+ CopilotKitStateAnnotation,
165
+ /**
166
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
167
+ * No 1:1 v2 replacement is available.
168
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
169
+ * Start with `@copilotkit/runtime/v2`.
170
+ * V2 docs: https://docs.copilotkit.ai/
171
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
172
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
173
+ */
174
+ CopilotKitStateSchema,
21
175
  } from "./langgraph";
176
+
177
+ /* END GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */
@@ -1,4 +1,267 @@
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
+
1
19
  export * from "./types";
2
20
  export * from "./utils";
3
21
  export * from "./middleware";
4
22
  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,3 +1,43 @@
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
+
1
41
  import { createMiddleware, AIMessage, SystemMessage } from "langchain";
2
42
  import type { InteropZodObject } from "@langchain/core/utils/types";
3
43
  import type {
@@ -1,3 +1,57 @@
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
+
1
55
  import { MessagesValue, StateSchema } from "@langchain/langgraph";
2
56
  import { CopilotKitPropertiesSchema } from "./types";
3
57
 
@@ -1,3 +1,106 @@
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
+
1
104
  import { Annotation, MessagesAnnotation } from "@langchain/langgraph";
2
105
 
3
106
  export interface StandardSerializableSchema<Input, Output = Input> {