@copilotkit/sdk-js 1.68.3 → 1.69.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/dist/header-propagation.cjs.map +1 -1
- package/dist/header-propagation.d.cts.map +1 -1
- package/dist/header-propagation.d.mts.map +1 -1
- package/dist/header-propagation.mjs.map +1 -1
- package/dist/index.d.cts +17 -1
- package/dist/index.d.mts +17 -1
- package/dist/langchain.cjs.map +1 -1
- package/dist/langchain.d.cts +136 -1
- package/dist/langchain.d.mts +136 -1
- package/dist/langchain.mjs.map +1 -1
- package/dist/langgraph/middleware.cjs.map +1 -1
- package/dist/langgraph/middleware.d.cts.map +1 -1
- package/dist/langgraph/middleware.d.mts.map +1 -1
- package/dist/langgraph/middleware.mjs.map +1 -1
- package/dist/langgraph/state-schema.cjs.map +1 -1
- package/dist/langgraph/state-schema.d.cts.map +1 -1
- package/dist/langgraph/state-schema.d.mts.map +1 -1
- package/dist/langgraph/state-schema.mjs.map +1 -1
- package/dist/langgraph/types.cjs.map +1 -1
- package/dist/langgraph/types.d.cts.map +1 -1
- package/dist/langgraph/types.d.mts.map +1 -1
- package/dist/langgraph/types.mjs.map +1 -1
- package/dist/langgraph/utils.cjs.map +1 -1
- package/dist/langgraph/utils.d.cts.map +1 -1
- package/dist/langgraph/utils.d.mts.map +1 -1
- package/dist/langgraph/utils.mjs.map +1 -1
- package/dist/langgraph-middlewares.cjs +15 -2
- package/dist/langgraph-middlewares.d.cts +30 -1
- package/dist/langgraph-middlewares.d.mts +30 -1
- package/dist/langgraph-middlewares.mjs +3 -1
- package/dist/langgraph.d.cts +208 -1
- package/dist/langgraph.d.mts +208 -1
- package/package.json +3 -3
- package/src/header-propagation.ts +24 -0
- package/src/index.ts +38 -1
- package/src/langchain.ts +167 -11
- package/src/langgraph/index.ts +263 -0
- package/src/langgraph/middleware.ts +40 -0
- package/src/langgraph/state-schema.ts +54 -0
- package/src/langgraph/types.ts +103 -0
- package/src/langgraph/utils.ts +117 -0
- package/src/langgraph-middlewares.ts +54 -0
|
@@ -1 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
import { StateItem, stateItem, stateStreamingMiddleware } from "@ag-ui/langgraph/middlewares";
|
|
2
|
+
export * from "@ag-ui/langgraph/middlewares";
|
|
3
|
+
export { /**
|
|
4
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
5
|
+
* No 1:1 v2 replacement is available.
|
|
6
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
7
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
8
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
9
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
10
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
11
|
+
*/
|
|
12
|
+
type StateItem, /**
|
|
13
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
14
|
+
* No 1:1 v2 replacement is available.
|
|
15
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
16
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
17
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
18
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
19
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
20
|
+
*/
|
|
21
|
+
stateItem, /**
|
|
22
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
23
|
+
* No 1:1 v2 replacement is available.
|
|
24
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
25
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
26
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
27
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
28
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
29
|
+
*/
|
|
30
|
+
stateStreamingMiddleware };
|
|
@@ -1 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
import { StateItem, stateItem, stateStreamingMiddleware } from "@ag-ui/langgraph/middlewares";
|
|
2
|
+
export * from "@ag-ui/langgraph/middlewares";
|
|
3
|
+
export { /**
|
|
4
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
5
|
+
* No 1:1 v2 replacement is available.
|
|
6
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
7
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
8
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
9
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
10
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
11
|
+
*/
|
|
12
|
+
type StateItem, /**
|
|
13
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
14
|
+
* No 1:1 v2 replacement is available.
|
|
15
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
16
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
17
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
18
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
19
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
20
|
+
*/
|
|
21
|
+
stateItem, /**
|
|
22
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
23
|
+
* No 1:1 v2 replacement is available.
|
|
24
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
25
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
26
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
27
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
28
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
29
|
+
*/
|
|
30
|
+
stateStreamingMiddleware };
|
package/dist/langgraph.d.cts
CHANGED
|
@@ -2,4 +2,211 @@ import { CopilotKitProperties, CopilotKitPropertiesAnnotation, CopilotKitPropert
|
|
|
2
2
|
import { convertActionToDynamicStructuredTool, convertActionsToDynamicStructuredTools, copilotKitInterrupt, copilotkitCustomizeConfig, copilotkitEmitMessage, copilotkitEmitState, copilotkitEmitToolCall, copilotkitExit } from "./langgraph/utils.cjs";
|
|
3
3
|
import { ExposeStateOption, copilotkitMiddleware, createCopilotkitMiddleware, zodState } from "./langgraph/middleware.cjs";
|
|
4
4
|
import { CopilotKitSchemaState, CopilotKitSchemaUpdate, CopilotKitStateSchema } from "./langgraph/state-schema.cjs";
|
|
5
|
-
export {
|
|
5
|
+
export { /**
|
|
6
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
7
|
+
* No 1:1 v2 replacement is available.
|
|
8
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
9
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
10
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
11
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
12
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
13
|
+
*/
|
|
14
|
+
type CopilotKitProperties, /**
|
|
15
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
16
|
+
* No 1:1 v2 replacement is available.
|
|
17
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
18
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
19
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
20
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
21
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
22
|
+
*/
|
|
23
|
+
CopilotKitPropertiesAnnotation, /**
|
|
24
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
25
|
+
* No 1:1 v2 replacement is available.
|
|
26
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
27
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
28
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
29
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
30
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
31
|
+
*/
|
|
32
|
+
CopilotKitPropertiesSchema, /**
|
|
33
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
34
|
+
* No 1:1 v2 replacement is available.
|
|
35
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
36
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
37
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
38
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
39
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
40
|
+
*/
|
|
41
|
+
type CopilotKitSchemaState, /**
|
|
42
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
43
|
+
* No 1:1 v2 replacement is available.
|
|
44
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
45
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
46
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
47
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
48
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
49
|
+
*/
|
|
50
|
+
type CopilotKitSchemaUpdate, /**
|
|
51
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
52
|
+
* No 1:1 v2 replacement is available.
|
|
53
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
54
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
55
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
56
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
57
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
58
|
+
*/
|
|
59
|
+
type CopilotKitState, /**
|
|
60
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
61
|
+
* No 1:1 v2 replacement is available.
|
|
62
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
63
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
64
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
65
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
66
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
67
|
+
*/
|
|
68
|
+
CopilotKitStateAnnotation, /**
|
|
69
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
70
|
+
* No 1:1 v2 replacement is available.
|
|
71
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
72
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
73
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
74
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
75
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
76
|
+
*/
|
|
77
|
+
CopilotKitStateSchema, /**
|
|
78
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
79
|
+
* No 1:1 v2 replacement is available.
|
|
80
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
81
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
82
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
83
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
84
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
85
|
+
*/
|
|
86
|
+
type ExposeStateOption, /**
|
|
87
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
88
|
+
* No 1:1 v2 replacement is available.
|
|
89
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
90
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
91
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
92
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
93
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
94
|
+
*/
|
|
95
|
+
type IntermediateStateConfig, /**
|
|
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 OptionsConfig, /**
|
|
105
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
106
|
+
* No 1:1 v2 replacement is available.
|
|
107
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
108
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
109
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
110
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
111
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
112
|
+
*/
|
|
113
|
+
type StandardSerializableSchema, /**
|
|
114
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
115
|
+
* No 1:1 v2 replacement is available.
|
|
116
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
117
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
118
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
119
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
120
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
121
|
+
*/
|
|
122
|
+
convertActionToDynamicStructuredTool, /**
|
|
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
|
+
convertActionsToDynamicStructuredTools, /**
|
|
132
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
133
|
+
* No 1:1 v2 replacement is available.
|
|
134
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
135
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
136
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
137
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
138
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
139
|
+
*/
|
|
140
|
+
copilotKitInterrupt, /**
|
|
141
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
142
|
+
* No 1:1 v2 replacement is available.
|
|
143
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
144
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
145
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
146
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
147
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
148
|
+
*/
|
|
149
|
+
copilotkitCustomizeConfig, /**
|
|
150
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
151
|
+
* No 1:1 v2 replacement is available.
|
|
152
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
153
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
154
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
155
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
156
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
157
|
+
*/
|
|
158
|
+
copilotkitEmitMessage, /**
|
|
159
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
160
|
+
* No 1:1 v2 replacement is available.
|
|
161
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
162
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
163
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
164
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
165
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
166
|
+
*/
|
|
167
|
+
copilotkitEmitState, /**
|
|
168
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
169
|
+
* No 1:1 v2 replacement is available.
|
|
170
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
171
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
172
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
173
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
174
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
175
|
+
*/
|
|
176
|
+
copilotkitEmitToolCall, /**
|
|
177
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
178
|
+
* No 1:1 v2 replacement is available.
|
|
179
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
180
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
181
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
182
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
183
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
184
|
+
*/
|
|
185
|
+
copilotkitExit, /**
|
|
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
|
+
copilotkitMiddleware, /**
|
|
195
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
196
|
+
* No 1:1 v2 replacement is available.
|
|
197
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
198
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
199
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
200
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
201
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
202
|
+
*/
|
|
203
|
+
createCopilotkitMiddleware, /**
|
|
204
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
205
|
+
* No 1:1 v2 replacement is available.
|
|
206
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
207
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
208
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
209
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
210
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
211
|
+
*/
|
|
212
|
+
zodState };
|
package/dist/langgraph.d.mts
CHANGED
|
@@ -2,4 +2,211 @@ import { CopilotKitProperties, CopilotKitPropertiesAnnotation, CopilotKitPropert
|
|
|
2
2
|
import { convertActionToDynamicStructuredTool, convertActionsToDynamicStructuredTools, copilotKitInterrupt, copilotkitCustomizeConfig, copilotkitEmitMessage, copilotkitEmitState, copilotkitEmitToolCall, copilotkitExit } from "./langgraph/utils.mjs";
|
|
3
3
|
import { ExposeStateOption, copilotkitMiddleware, createCopilotkitMiddleware, zodState } from "./langgraph/middleware.mjs";
|
|
4
4
|
import { CopilotKitSchemaState, CopilotKitSchemaUpdate, CopilotKitStateSchema } from "./langgraph/state-schema.mjs";
|
|
5
|
-
export {
|
|
5
|
+
export { /**
|
|
6
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
7
|
+
* No 1:1 v2 replacement is available.
|
|
8
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
9
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
10
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
11
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
12
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
13
|
+
*/
|
|
14
|
+
type CopilotKitProperties, /**
|
|
15
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
16
|
+
* No 1:1 v2 replacement is available.
|
|
17
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
18
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
19
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
20
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
21
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
22
|
+
*/
|
|
23
|
+
CopilotKitPropertiesAnnotation, /**
|
|
24
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
25
|
+
* No 1:1 v2 replacement is available.
|
|
26
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
27
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
28
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
29
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
30
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
31
|
+
*/
|
|
32
|
+
CopilotKitPropertiesSchema, /**
|
|
33
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
34
|
+
* No 1:1 v2 replacement is available.
|
|
35
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
36
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
37
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
38
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
39
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
40
|
+
*/
|
|
41
|
+
type CopilotKitSchemaState, /**
|
|
42
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
43
|
+
* No 1:1 v2 replacement is available.
|
|
44
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
45
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
46
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
47
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
48
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
49
|
+
*/
|
|
50
|
+
type CopilotKitSchemaUpdate, /**
|
|
51
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
52
|
+
* No 1:1 v2 replacement is available.
|
|
53
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
54
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
55
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
56
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
57
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
58
|
+
*/
|
|
59
|
+
type CopilotKitState, /**
|
|
60
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
61
|
+
* No 1:1 v2 replacement is available.
|
|
62
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
63
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
64
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
65
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
66
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
67
|
+
*/
|
|
68
|
+
CopilotKitStateAnnotation, /**
|
|
69
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
70
|
+
* No 1:1 v2 replacement is available.
|
|
71
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
72
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
73
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
74
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
75
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
76
|
+
*/
|
|
77
|
+
CopilotKitStateSchema, /**
|
|
78
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
79
|
+
* No 1:1 v2 replacement is available.
|
|
80
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
81
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
82
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
83
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
84
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
85
|
+
*/
|
|
86
|
+
type ExposeStateOption, /**
|
|
87
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
88
|
+
* No 1:1 v2 replacement is available.
|
|
89
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
90
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
91
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
92
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
93
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
94
|
+
*/
|
|
95
|
+
type IntermediateStateConfig, /**
|
|
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 OptionsConfig, /**
|
|
105
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
106
|
+
* No 1:1 v2 replacement is available.
|
|
107
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
108
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
109
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
110
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
111
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
112
|
+
*/
|
|
113
|
+
type StandardSerializableSchema, /**
|
|
114
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
115
|
+
* No 1:1 v2 replacement is available.
|
|
116
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
117
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
118
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
119
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
120
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
121
|
+
*/
|
|
122
|
+
convertActionToDynamicStructuredTool, /**
|
|
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
|
+
convertActionsToDynamicStructuredTools, /**
|
|
132
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
133
|
+
* No 1:1 v2 replacement is available.
|
|
134
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
135
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
136
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
137
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
138
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
139
|
+
*/
|
|
140
|
+
copilotKitInterrupt, /**
|
|
141
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
142
|
+
* No 1:1 v2 replacement is available.
|
|
143
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
144
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
145
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
146
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
147
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
148
|
+
*/
|
|
149
|
+
copilotkitCustomizeConfig, /**
|
|
150
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
151
|
+
* No 1:1 v2 replacement is available.
|
|
152
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
153
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
154
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
155
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
156
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
157
|
+
*/
|
|
158
|
+
copilotkitEmitMessage, /**
|
|
159
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
160
|
+
* No 1:1 v2 replacement is available.
|
|
161
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
162
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
163
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
164
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
165
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
166
|
+
*/
|
|
167
|
+
copilotkitEmitState, /**
|
|
168
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
169
|
+
* No 1:1 v2 replacement is available.
|
|
170
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
171
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
172
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
173
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
174
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
175
|
+
*/
|
|
176
|
+
copilotkitEmitToolCall, /**
|
|
177
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
178
|
+
* No 1:1 v2 replacement is available.
|
|
179
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
180
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
181
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
182
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
183
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
184
|
+
*/
|
|
185
|
+
copilotkitExit, /**
|
|
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
|
+
copilotkitMiddleware, /**
|
|
195
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
196
|
+
* No 1:1 v2 replacement is available.
|
|
197
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
198
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
199
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
200
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
201
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
202
|
+
*/
|
|
203
|
+
createCopilotkitMiddleware, /**
|
|
204
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
205
|
+
* No 1:1 v2 replacement is available.
|
|
206
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
207
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
208
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
209
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
210
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
211
|
+
*/
|
|
212
|
+
zodState };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkit/sdk-js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.69.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@ag-ui/langgraph": "0.0.42",
|
|
52
52
|
"@standard-schema/spec": "^1.0.0",
|
|
53
|
-
"@copilotkit/shared": "1.
|
|
53
|
+
"@copilotkit/shared": "1.69.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@langchain/core": "^1.1.41",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"zod": "^3.23.3 || ^3.24.0 || ^3.25.0"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|
|
79
|
-
"build": "tsdown",
|
|
79
|
+
"build": "tsdown && node ../../scripts/deprecations/v1-dist-notices.mjs --entrypoint sdk-js,sdk-js-langchain,sdk-js-langgraph,sdk-js-langgraph-middlewares",
|
|
80
80
|
"dev": "tsdown --watch",
|
|
81
81
|
"test": "vitest run",
|
|
82
82
|
"test:watch": "vitest",
|
|
@@ -1,3 +1,27 @@
|
|
|
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 — getForwardedHeaders:
|
|
9
|
+
* No 1:1 v2 replacement is available.
|
|
10
|
+
* Start at: @copilotkit/runtime/v2
|
|
11
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
12
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
13
|
+
*
|
|
14
|
+
* @copilotkit/sdk-js — withForwardedHeaders:
|
|
15
|
+
* No 1:1 v2 replacement is available.
|
|
16
|
+
* Start at: @copilotkit/runtime/v2
|
|
17
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
18
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
19
|
+
*
|
|
20
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
21
|
+
*
|
|
22
|
+
* END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
|
|
23
|
+
*/
|
|
24
|
+
|
|
1
25
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
26
|
|
|
3
27
|
type HeaderMap = Record<string, string>;
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* V1 SDK DEPRECATED. USE V2 INSTEAD
|
|
3
|
+
*
|
|
4
|
+
* This is the deprecated v1 entrypoint `@copilotkit/sdk-js`. 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 2 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
|
+
/* START GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */
|
|
1
20
|
export {
|
|
2
|
-
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
23
|
+
* No 1:1 v2 replacement is available.
|
|
24
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
25
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
26
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
27
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
28
|
+
*/
|
|
3
29
|
getForwardedHeaders,
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
32
|
+
* No 1:1 v2 replacement is available.
|
|
33
|
+
* Start with `@copilotkit/runtime/v2`.
|
|
34
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
35
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
36
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
37
|
+
*/
|
|
38
|
+
withForwardedHeaders,
|
|
4
39
|
} from "./header-propagation";
|
|
40
|
+
|
|
41
|
+
/* END GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */
|