@copilotkit/sdk-js 2.0.0-next.1 → 2.0.0-rc.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/LICENSE +21 -0
- package/README.md +0 -1
- package/dist/_virtual/_rolldown/runtime.cjs +29 -0
- package/dist/header-propagation.cjs +37 -0
- package/dist/header-propagation.cjs.map +1 -0
- package/dist/header-propagation.d.cts +16 -0
- package/dist/header-propagation.d.cts.map +1 -0
- package/dist/header-propagation.d.mts +16 -0
- package/dist/header-propagation.d.mts.map +1 -0
- package/dist/header-propagation.mjs +35 -0
- package/dist/header-propagation.mjs.map +1 -0
- package/dist/index.cjs +5 -0
- package/dist/index.d.cts +18 -0
- package/dist/index.d.mts +18 -0
- package/dist/index.mjs +3 -1
- package/dist/langchain.cjs +21 -0
- package/dist/langchain.cjs.map +1 -0
- package/dist/langchain.d.cts +139 -0
- package/dist/langchain.d.mts +140 -0
- package/dist/langchain.mjs +7 -23
- package/dist/langchain.mjs.map +1 -1
- package/dist/langgraph/middleware.cjs +433 -0
- package/dist/langgraph/middleware.cjs.map +1 -0
- package/dist/langgraph/middleware.d.cts +86 -0
- package/dist/langgraph/middleware.d.cts.map +1 -0
- package/dist/langgraph/middleware.d.mts +86 -0
- package/dist/langgraph/middleware.d.mts.map +1 -0
- package/dist/langgraph/middleware.mjs +429 -0
- package/dist/langgraph/middleware.mjs.map +1 -0
- package/dist/langgraph/state-schema.cjs +37 -0
- package/dist/langgraph/state-schema.cjs.map +1 -0
- package/dist/langgraph/state-schema.d.cts +118 -0
- package/dist/langgraph/state-schema.d.cts.map +1 -0
- package/dist/langgraph/state-schema.d.mts +118 -0
- package/dist/langgraph/state-schema.d.mts.map +1 -0
- package/dist/langgraph/state-schema.mjs +36 -0
- package/dist/langgraph/state-schema.mjs.map +1 -0
- package/dist/langgraph/types.cjs +60 -0
- package/dist/langgraph/types.cjs.map +1 -0
- package/dist/langgraph/types.d.cts +335 -0
- package/dist/langgraph/types.d.cts.map +1 -0
- package/dist/langgraph/types.d.mts +335 -0
- package/dist/langgraph/types.d.mts.map +1 -0
- package/dist/langgraph/types.mjs +57 -0
- package/dist/langgraph/types.mjs.map +1 -0
- package/dist/langgraph/utils.cjs +297 -0
- package/dist/langgraph/utils.cjs.map +1 -0
- package/dist/langgraph/utils.d.cts +209 -0
- package/dist/langgraph/utils.d.cts.map +1 -0
- package/dist/langgraph/utils.d.mts +209 -0
- package/dist/langgraph/utils.d.mts.map +1 -0
- package/dist/langgraph/utils.mjs +289 -0
- package/dist/langgraph/utils.mjs.map +1 -0
- package/dist/langgraph-middlewares.cjs +22 -0
- package/dist/langgraph-middlewares.d.cts +30 -0
- package/dist/langgraph-middlewares.d.mts +30 -0
- package/dist/langgraph-middlewares.mjs +5 -0
- package/dist/langgraph.cjs +21 -0
- package/dist/langgraph.d.cts +5 -0
- package/dist/langgraph.d.mts +5 -0
- package/dist/langgraph.mjs +6 -27
- package/package.json +50 -47
- package/src/__tests__/error-handling.test.ts +54 -20
- package/src/__tests__/header-propagation.test.ts +131 -0
- package/src/header-propagation.ts +61 -0
- package/src/index.ts +41 -0
- package/src/langchain.ts +168 -8
- package/src/langgraph/__tests__/middleware.a2ui-params.test.ts +139 -0
- package/src/langgraph/__tests__/middleware.native-a2ui.test.ts +118 -0
- package/src/langgraph/__tests__/middleware.properties.test.ts +357 -0
- package/src/langgraph/__tests__/middleware.test.ts +1141 -0
- package/src/langgraph/__tests__/state-schema.test.ts +85 -0
- package/src/langgraph/__tests__/utils.test.ts +363 -0
- package/src/langgraph/index.ts +1 -0
- package/src/langgraph/middleware.ts +698 -95
- package/src/langgraph/state-schema.ts +34 -0
- package/src/langgraph/types.ts +57 -0
- package/src/langgraph/utils.ts +76 -19
- package/src/langgraph-middlewares.ts +55 -0
- package/tsconfig.json +11 -2
- package/tsdown.config.ts +18 -0
- package/vitest.config.mjs +11 -0
- package/CHANGELOG.md +0 -2169
- package/dist/chunk-JLGOQLGS.mjs +0 -433
- package/dist/chunk-JLGOQLGS.mjs.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/langchain-2645763d.d.ts +0 -427
- package/dist/langchain.d.ts +0 -6
- package/dist/langchain.js +0 -284
- package/dist/langchain.js.map +0 -1
- package/dist/langgraph/index.d.ts +0 -11
- package/dist/langgraph.js +0 -476
- package/dist/langgraph.js.map +0 -1
- package/dist/langgraph.mjs.map +0 -1
- package/jest.config.js +0 -5
- package/tsup.config.ts +0 -23
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Atai Barkai
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
+
__defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
25
|
+
}) : target, mod));
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
|
|
29
|
+
exports.__toESM = __toESM;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
2
|
+
let node_async_hooks = require("node:async_hooks");
|
|
3
|
+
|
|
4
|
+
//#region src/header-propagation.ts
|
|
5
|
+
const headerStorage = new node_async_hooks.AsyncLocalStorage();
|
|
6
|
+
/**
|
|
7
|
+
* Filter incoming headers to only x-* prefixed headers.
|
|
8
|
+
* Matches the CopilotKit runtime's extractForwardableHeaders() behavior.
|
|
9
|
+
*/
|
|
10
|
+
function filterForwardableHeaders(headers) {
|
|
11
|
+
const filtered = {};
|
|
12
|
+
for (const [key, value] of Object.entries(headers)) {
|
|
13
|
+
const lower = key.toLowerCase();
|
|
14
|
+
if (lower.startsWith("x-")) filtered[lower] = value;
|
|
15
|
+
}
|
|
16
|
+
return filtered;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Run a callback with forwarded headers available via getForwardedHeaders().
|
|
20
|
+
* Call this at the AG-UI request entry point.
|
|
21
|
+
*/
|
|
22
|
+
function withForwardedHeaders(headers, fn) {
|
|
23
|
+
return headerStorage.run(filterForwardableHeaders(headers), fn);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get x-* prefixed headers that should be forwarded to outgoing LLM calls.
|
|
27
|
+
* Returns empty object when called outside a withForwardedHeaders() scope
|
|
28
|
+
* (demo traffic).
|
|
29
|
+
*/
|
|
30
|
+
function getForwardedHeaders() {
|
|
31
|
+
return headerStorage.getStore() ?? {};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.getForwardedHeaders = getForwardedHeaders;
|
|
36
|
+
exports.withForwardedHeaders = withForwardedHeaders;
|
|
37
|
+
//# sourceMappingURL=header-propagation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-propagation.cjs","names":["AsyncLocalStorage"],"sources":["../src/header-propagation.ts"],"sourcesContent":["/*\n * V1 SDK DEPRECATED. USE V2 INSTEAD\n *\n * This file defines public v1 SDK exports. Use the exact v2 mappings below.\n * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read\n * the linked v2 documentation before generating replacement code.\n *\n * @copilotkit/sdk-js — getForwardedHeaders:\n * No 1:1 v2 replacement is available.\n * Start at: @copilotkit/runtime\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n *\n * @copilotkit/sdk-js — withForwardedHeaders:\n * No 1:1 v2 replacement is available.\n * Start at: @copilotkit/runtime\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n *\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n *\n * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE\n */\n\nimport { AsyncLocalStorage } from \"node:async_hooks\";\n\ntype HeaderMap = Record<string, string>;\n\nconst headerStorage = new AsyncLocalStorage<HeaderMap>();\n\n/**\n * Filter incoming headers to only x-* prefixed headers.\n * Matches the CopilotKit runtime's extractForwardableHeaders() behavior.\n */\nfunction filterForwardableHeaders(headers: HeaderMap): HeaderMap {\n const filtered: HeaderMap = {};\n for (const [key, value] of Object.entries(headers)) {\n const lower = key.toLowerCase();\n if (lower.startsWith(\"x-\")) {\n filtered[lower] = value;\n }\n }\n return filtered;\n}\n\n/**\n * Run a callback with forwarded headers available via getForwardedHeaders().\n * Call this at the AG-UI request entry point.\n */\nexport function withForwardedHeaders<T>(headers: HeaderMap, fn: () => T): T {\n return headerStorage.run(filterForwardableHeaders(headers), fn);\n}\n\n/**\n * Get x-* prefixed headers that should be forwarded to outgoing LLM calls.\n * Returns empty object when called outside a withForwardedHeaders() scope\n * (demo traffic).\n */\nexport function getForwardedHeaders(): HeaderMap {\n return headerStorage.getStore() ?? {};\n}\n"],"mappings":";;;;AA4BA,MAAM,gBAAgB,IAAIA,oCAA8B;;;;;AAMxD,SAAS,yBAAyB,SAA+B;CAC/D,MAAM,WAAsB,EAAE;AAC9B,MAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,QAAQ,EAAE;EAClD,MAAM,QAAQ,IAAI,aAAa;AAC/B,MAAI,MAAM,WAAW,KAAK,CACxB,UAAS,SAAS;;AAGtB,QAAO;;;;;;AAOT,SAAgB,qBAAwB,SAAoB,IAAgB;AAC1E,QAAO,cAAc,IAAI,yBAAyB,QAAQ,EAAE,GAAG;;;;;;;AAQjE,SAAgB,sBAAiC;AAC/C,QAAO,cAAc,UAAU,IAAI,EAAE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/header-propagation.d.ts
|
|
2
|
+
type HeaderMap = Record<string, string>;
|
|
3
|
+
/**
|
|
4
|
+
* Run a callback with forwarded headers available via getForwardedHeaders().
|
|
5
|
+
* Call this at the AG-UI request entry point.
|
|
6
|
+
*/
|
|
7
|
+
declare function withForwardedHeaders<T>(headers: HeaderMap, fn: () => T): T;
|
|
8
|
+
/**
|
|
9
|
+
* Get x-* prefixed headers that should be forwarded to outgoing LLM calls.
|
|
10
|
+
* Returns empty object when called outside a withForwardedHeaders() scope
|
|
11
|
+
* (demo traffic).
|
|
12
|
+
*/
|
|
13
|
+
declare function getForwardedHeaders(): HeaderMap;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { getForwardedHeaders, withForwardedHeaders };
|
|
16
|
+
//# sourceMappingURL=header-propagation.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-propagation.d.cts","names":[],"sources":["../src/header-propagation.ts"],"mappings":";KA0BK,SAAA,GAAY,MAAA;;;;;iBAuBD,oBAAA,GAAA,CAAwB,OAAA,EAAS,SAAA,EAAW,EAAA,QAAU,CAAA,GAAI,CAAA;AAA1E;;;;;AAAA,iBASgB,mBAAA,CAAA,GAAuB,SAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/header-propagation.d.ts
|
|
2
|
+
type HeaderMap = Record<string, string>;
|
|
3
|
+
/**
|
|
4
|
+
* Run a callback with forwarded headers available via getForwardedHeaders().
|
|
5
|
+
* Call this at the AG-UI request entry point.
|
|
6
|
+
*/
|
|
7
|
+
declare function withForwardedHeaders<T>(headers: HeaderMap, fn: () => T): T;
|
|
8
|
+
/**
|
|
9
|
+
* Get x-* prefixed headers that should be forwarded to outgoing LLM calls.
|
|
10
|
+
* Returns empty object when called outside a withForwardedHeaders() scope
|
|
11
|
+
* (demo traffic).
|
|
12
|
+
*/
|
|
13
|
+
declare function getForwardedHeaders(): HeaderMap;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { getForwardedHeaders, withForwardedHeaders };
|
|
16
|
+
//# sourceMappingURL=header-propagation.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-propagation.d.mts","names":[],"sources":["../src/header-propagation.ts"],"mappings":";KA0BK,SAAA,GAAY,MAAA;;;;;iBAuBD,oBAAA,GAAA,CAAwB,OAAA,EAAS,SAAA,EAAW,EAAA,QAAU,CAAA,GAAI,CAAA;AAA1E;;;;;AAAA,iBASgB,mBAAA,CAAA,GAAuB,SAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
|
+
|
|
3
|
+
//#region src/header-propagation.ts
|
|
4
|
+
const headerStorage = new AsyncLocalStorage();
|
|
5
|
+
/**
|
|
6
|
+
* Filter incoming headers to only x-* prefixed headers.
|
|
7
|
+
* Matches the CopilotKit runtime's extractForwardableHeaders() behavior.
|
|
8
|
+
*/
|
|
9
|
+
function filterForwardableHeaders(headers) {
|
|
10
|
+
const filtered = {};
|
|
11
|
+
for (const [key, value] of Object.entries(headers)) {
|
|
12
|
+
const lower = key.toLowerCase();
|
|
13
|
+
if (lower.startsWith("x-")) filtered[lower] = value;
|
|
14
|
+
}
|
|
15
|
+
return filtered;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Run a callback with forwarded headers available via getForwardedHeaders().
|
|
19
|
+
* Call this at the AG-UI request entry point.
|
|
20
|
+
*/
|
|
21
|
+
function withForwardedHeaders(headers, fn) {
|
|
22
|
+
return headerStorage.run(filterForwardableHeaders(headers), fn);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get x-* prefixed headers that should be forwarded to outgoing LLM calls.
|
|
26
|
+
* Returns empty object when called outside a withForwardedHeaders() scope
|
|
27
|
+
* (demo traffic).
|
|
28
|
+
*/
|
|
29
|
+
function getForwardedHeaders() {
|
|
30
|
+
return headerStorage.getStore() ?? {};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { getForwardedHeaders, withForwardedHeaders };
|
|
35
|
+
//# sourceMappingURL=header-propagation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-propagation.mjs","names":[],"sources":["../src/header-propagation.ts"],"sourcesContent":["/*\n * V1 SDK DEPRECATED. USE V2 INSTEAD\n *\n * This file defines public v1 SDK exports. Use the exact v2 mappings below.\n * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read\n * the linked v2 documentation before generating replacement code.\n *\n * @copilotkit/sdk-js — getForwardedHeaders:\n * No 1:1 v2 replacement is available.\n * Start at: @copilotkit/runtime\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n *\n * @copilotkit/sdk-js — withForwardedHeaders:\n * No 1:1 v2 replacement is available.\n * Start at: @copilotkit/runtime\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n *\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n *\n * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE\n */\n\nimport { AsyncLocalStorage } from \"node:async_hooks\";\n\ntype HeaderMap = Record<string, string>;\n\nconst headerStorage = new AsyncLocalStorage<HeaderMap>();\n\n/**\n * Filter incoming headers to only x-* prefixed headers.\n * Matches the CopilotKit runtime's extractForwardableHeaders() behavior.\n */\nfunction filterForwardableHeaders(headers: HeaderMap): HeaderMap {\n const filtered: HeaderMap = {};\n for (const [key, value] of Object.entries(headers)) {\n const lower = key.toLowerCase();\n if (lower.startsWith(\"x-\")) {\n filtered[lower] = value;\n }\n }\n return filtered;\n}\n\n/**\n * Run a callback with forwarded headers available via getForwardedHeaders().\n * Call this at the AG-UI request entry point.\n */\nexport function withForwardedHeaders<T>(headers: HeaderMap, fn: () => T): T {\n return headerStorage.run(filterForwardableHeaders(headers), fn);\n}\n\n/**\n * Get x-* prefixed headers that should be forwarded to outgoing LLM calls.\n * Returns empty object when called outside a withForwardedHeaders() scope\n * (demo traffic).\n */\nexport function getForwardedHeaders(): HeaderMap {\n return headerStorage.getStore() ?? {};\n}\n"],"mappings":";;;AA4BA,MAAM,gBAAgB,IAAI,mBAA8B;;;;;AAMxD,SAAS,yBAAyB,SAA+B;CAC/D,MAAM,WAAsB,EAAE;AAC9B,MAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,QAAQ,EAAE;EAClD,MAAM,QAAQ,IAAI,aAAa;AAC/B,MAAI,MAAM,WAAW,KAAK,CACxB,UAAS,SAAS;;AAGtB,QAAO;;;;;;AAOT,SAAgB,qBAAwB,SAAoB,IAAgB;AAC1E,QAAO,cAAc,IAAI,yBAAyB,QAAQ,EAAE,GAAG;;;;;;;AAQjE,SAAgB,sBAAiC;AAC/C,QAAO,cAAc,UAAU,IAAI,EAAE"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_header_propagation = require('./header-propagation.cjs');
|
|
3
|
+
|
|
4
|
+
exports.getForwardedHeaders = require_header_propagation.getForwardedHeaders;
|
|
5
|
+
exports.withForwardedHeaders = require_header_propagation.withForwardedHeaders;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { getForwardedHeaders, withForwardedHeaders } from "./header-propagation.cjs";
|
|
2
|
+
export { /**
|
|
3
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
4
|
+
* No 1:1 v2 replacement is available.
|
|
5
|
+
* Start with `@copilotkit/runtime`.
|
|
6
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
7
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
8
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
9
|
+
*/
|
|
10
|
+
getForwardedHeaders, /**
|
|
11
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
12
|
+
* No 1:1 v2 replacement is available.
|
|
13
|
+
* Start with `@copilotkit/runtime`.
|
|
14
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
15
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
16
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
17
|
+
*/
|
|
18
|
+
withForwardedHeaders };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { getForwardedHeaders, withForwardedHeaders } from "./header-propagation.mjs";
|
|
2
|
+
export { /**
|
|
3
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
4
|
+
* No 1:1 v2 replacement is available.
|
|
5
|
+
* Start with `@copilotkit/runtime`.
|
|
6
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
7
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
8
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
9
|
+
*/
|
|
10
|
+
getForwardedHeaders, /**
|
|
11
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
12
|
+
* No 1:1 v2 replacement is available.
|
|
13
|
+
* Start with `@copilotkit/runtime`.
|
|
14
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
15
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
16
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
17
|
+
*/
|
|
18
|
+
withForwardedHeaders };
|
package/dist/index.mjs
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_types = require('./langgraph/types.cjs');
|
|
3
|
+
const require_utils = require('./langgraph/utils.cjs');
|
|
4
|
+
const require_state_schema = require('./langgraph/state-schema.cjs');
|
|
5
|
+
|
|
6
|
+
//#region src/langchain.ts
|
|
7
|
+
console.warn("Warning: '@copilotkit/sdk-js/langchain' is deprecated and will be removed in a future release. Please use '@copilotkit/sdk-js/langgraph' instead.");
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.CopilotKitPropertiesAnnotation = require_types.CopilotKitPropertiesAnnotation;
|
|
11
|
+
exports.CopilotKitPropertiesSchema = require_types.CopilotKitPropertiesSchema;
|
|
12
|
+
exports.CopilotKitStateAnnotation = require_types.CopilotKitStateAnnotation;
|
|
13
|
+
exports.CopilotKitStateSchema = require_state_schema.CopilotKitStateSchema;
|
|
14
|
+
exports.convertActionToDynamicStructuredTool = require_utils.convertActionToDynamicStructuredTool;
|
|
15
|
+
exports.convertActionsToDynamicStructuredTools = require_utils.convertActionsToDynamicStructuredTools;
|
|
16
|
+
exports.copilotKitCustomizeConfig = require_utils.copilotkitCustomizeConfig;
|
|
17
|
+
exports.copilotKitEmitMessage = require_utils.copilotkitEmitMessage;
|
|
18
|
+
exports.copilotKitEmitState = require_utils.copilotkitEmitState;
|
|
19
|
+
exports.copilotKitEmitToolCall = require_utils.copilotkitEmitToolCall;
|
|
20
|
+
exports.copilotKitExit = require_utils.copilotkitExit;
|
|
21
|
+
//# sourceMappingURL=langchain.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"langchain.cjs","names":[],"sources":["../src/langchain.ts"],"sourcesContent":["/*\n * V1 SDK DEPRECATED. USE V2 INSTEAD\n *\n * This is the deprecated v1 entrypoint `@copilotkit/sdk-js/langchain`. Use v2 instead.\n * Migrate to `@copilotkit/runtime` and follow each export's specific\n * IDE deprecation warning below; renamed APIs are not safe search-and-replaces.\n * This entrypoint currently exposes 15 deprecated public exports.\n * V2 source entrypoint: packages/runtime/src/index.ts\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n *\n * AI CODING AGENTS: Never copy, suggest, or generate imports from this v1\n * entrypoint. Use the exact v2 import in the symbol's @deprecated tooltip.\n *\n * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE\n */\n\nconsole.warn(\n \"Warning: '@copilotkit/sdk-js/langchain' is deprecated and will be removed in a future release. Please use '@copilotkit/sdk-js/langgraph' instead.\",\n);\n\n/* START GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */\nexport {\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n convertActionsToDynamicStructuredTools,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n convertActionToDynamicStructuredTool,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitCustomizeConfig as copilotKitCustomizeConfig,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitMessage as copilotKitEmitMessage,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitState as copilotKitEmitState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitToolCall as copilotKitEmitToolCall,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitExit as copilotKitExit,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitProperties,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitPropertiesAnnotation,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitPropertiesSchema,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitSchemaState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitSchemaUpdate,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitStateAnnotation,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitStateSchema,\n} from \"./langgraph\";\n\n/* END GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */\n"],"mappings":";;;;;;AAkBA,QAAQ,KACN,oJACD"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { CopilotKitProperties, CopilotKitPropertiesAnnotation, CopilotKitPropertiesSchema, CopilotKitState, CopilotKitStateAnnotation } from "./langgraph/types.cjs";
|
|
2
|
+
import { convertActionToDynamicStructuredTool, convertActionsToDynamicStructuredTools, copilotkitCustomizeConfig, copilotkitEmitMessage, copilotkitEmitState, copilotkitEmitToolCall, copilotkitExit } from "./langgraph/utils.cjs";
|
|
3
|
+
import { CopilotKitSchemaState, CopilotKitSchemaUpdate, CopilotKitStateSchema } from "./langgraph/state-schema.cjs";
|
|
4
|
+
export { /**
|
|
5
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
6
|
+
* No 1:1 v2 replacement is available.
|
|
7
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
8
|
+
* Start with `@copilotkit/runtime`.
|
|
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
|
+
type CopilotKitProperties, /**
|
|
14
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
15
|
+
* No 1:1 v2 replacement is available.
|
|
16
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
17
|
+
* Start with `@copilotkit/runtime`.
|
|
18
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
19
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
20
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
21
|
+
*/
|
|
22
|
+
CopilotKitPropertiesAnnotation, /**
|
|
23
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
24
|
+
* No 1:1 v2 replacement is available.
|
|
25
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
26
|
+
* Start with `@copilotkit/runtime`.
|
|
27
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
28
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
29
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
30
|
+
*/
|
|
31
|
+
CopilotKitPropertiesSchema, /**
|
|
32
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
33
|
+
* No 1:1 v2 replacement is available.
|
|
34
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
35
|
+
* Start with `@copilotkit/runtime`.
|
|
36
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
37
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
38
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
39
|
+
*/
|
|
40
|
+
type CopilotKitSchemaState, /**
|
|
41
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
42
|
+
* No 1:1 v2 replacement is available.
|
|
43
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
44
|
+
* Start with `@copilotkit/runtime`.
|
|
45
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
46
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
47
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
48
|
+
*/
|
|
49
|
+
type CopilotKitSchemaUpdate, /**
|
|
50
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
51
|
+
* No 1:1 v2 replacement is available.
|
|
52
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
53
|
+
* Start with `@copilotkit/runtime`.
|
|
54
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
55
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
56
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
57
|
+
*/
|
|
58
|
+
type CopilotKitState, /**
|
|
59
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
60
|
+
* No 1:1 v2 replacement is available.
|
|
61
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
62
|
+
* Start with `@copilotkit/runtime`.
|
|
63
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
64
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
65
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
66
|
+
*/
|
|
67
|
+
CopilotKitStateAnnotation, /**
|
|
68
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
69
|
+
* No 1:1 v2 replacement is available.
|
|
70
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
71
|
+
* Start with `@copilotkit/runtime`.
|
|
72
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
73
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
74
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
75
|
+
*/
|
|
76
|
+
CopilotKitStateSchema, /**
|
|
77
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
78
|
+
* No 1:1 v2 replacement is available.
|
|
79
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
80
|
+
* Start with `@copilotkit/runtime`.
|
|
81
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
82
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
83
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
84
|
+
*/
|
|
85
|
+
convertActionToDynamicStructuredTool, /**
|
|
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`.
|
|
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
|
+
convertActionsToDynamicStructuredTools, /**
|
|
95
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
96
|
+
* No 1:1 v2 replacement is available.
|
|
97
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
98
|
+
* Start with `@copilotkit/runtime`.
|
|
99
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
100
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
101
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
102
|
+
*/
|
|
103
|
+
copilotkitCustomizeConfig as copilotKitCustomizeConfig, /**
|
|
104
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
105
|
+
* No 1:1 v2 replacement is available.
|
|
106
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
107
|
+
* Start with `@copilotkit/runtime`.
|
|
108
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
109
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
110
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
111
|
+
*/
|
|
112
|
+
copilotkitEmitMessage as copilotKitEmitMessage, /**
|
|
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`.
|
|
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
|
+
copilotkitEmitState as copilotKitEmitState, /**
|
|
122
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
123
|
+
* No 1:1 v2 replacement is available.
|
|
124
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
125
|
+
* Start with `@copilotkit/runtime`.
|
|
126
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
127
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
128
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
129
|
+
*/
|
|
130
|
+
copilotkitEmitToolCall as copilotKitEmitToolCall, /**
|
|
131
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
132
|
+
* No 1:1 v2 replacement is available.
|
|
133
|
+
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
|
|
134
|
+
* Start with `@copilotkit/runtime`.
|
|
135
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
136
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
137
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
138
|
+
*/
|
|
139
|
+
copilotkitExit as copilotKitExit };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { CopilotKitProperties, CopilotKitPropertiesAnnotation, CopilotKitPropertiesSchema, CopilotKitState, CopilotKitStateAnnotation } from "./langgraph/types.mjs";
|
|
2
|
+
import { convertActionToDynamicStructuredTool, convertActionsToDynamicStructuredTools, copilotkitCustomizeConfig, copilotkitEmitMessage, copilotkitEmitState, copilotkitEmitToolCall, copilotkitExit } from "./langgraph/utils.mjs";
|
|
3
|
+
import { CopilotKitSchemaState, CopilotKitSchemaUpdate, CopilotKitStateSchema } from "./langgraph/state-schema.mjs";
|
|
4
|
+
import "./langgraph.mjs";
|
|
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`.
|
|
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`.
|
|
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`.
|
|
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`.
|
|
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`.
|
|
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`.
|
|
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`.
|
|
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`.
|
|
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`.
|
|
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
|
+
convertActionToDynamicStructuredTool, /**
|
|
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`.
|
|
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
|
+
convertActionsToDynamicStructuredTools, /**
|
|
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`.
|
|
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
|
+
copilotkitCustomizeConfig as copilotKitCustomizeConfig, /**
|
|
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`.
|
|
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
|
+
copilotkitEmitMessage as copilotKitEmitMessage, /**
|
|
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`.
|
|
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
|
+
copilotkitEmitState as copilotKitEmitState, /**
|
|
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`.
|
|
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
|
+
copilotkitEmitToolCall as copilotKitEmitToolCall, /**
|
|
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`.
|
|
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
|
+
copilotkitExit as copilotKitExit };
|
package/dist/langchain.mjs
CHANGED
|
@@ -1,26 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
convertActionToDynamicStructuredTool,
|
|
5
|
-
convertActionsToDynamicStructuredTools,
|
|
6
|
-
copilotkitCustomizeConfig,
|
|
7
|
-
copilotkitEmitMessage,
|
|
8
|
-
copilotkitEmitState,
|
|
9
|
-
copilotkitEmitToolCall,
|
|
10
|
-
copilotkitExit
|
|
11
|
-
} from "./chunk-JLGOQLGS.mjs";
|
|
1
|
+
import { CopilotKitPropertiesAnnotation, CopilotKitPropertiesSchema, CopilotKitStateAnnotation } from "./langgraph/types.mjs";
|
|
2
|
+
import { convertActionToDynamicStructuredTool, convertActionsToDynamicStructuredTools, copilotkitCustomizeConfig, copilotkitEmitMessage, copilotkitEmitState, copilotkitEmitToolCall, copilotkitExit } from "./langgraph/utils.mjs";
|
|
3
|
+
import { CopilotKitStateSchema } from "./langgraph/state-schema.mjs";
|
|
12
4
|
|
|
13
|
-
|
|
5
|
+
//#region src/langchain.ts
|
|
14
6
|
console.warn("Warning: '@copilotkit/sdk-js/langchain' is deprecated and will be removed in a future release. Please use '@copilotkit/sdk-js/langgraph' instead.");
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
convertActionToDynamicStructuredTool,
|
|
19
|
-
convertActionsToDynamicStructuredTools,
|
|
20
|
-
copilotkitCustomizeConfig as copilotKitCustomizeConfig,
|
|
21
|
-
copilotkitEmitMessage as copilotKitEmitMessage,
|
|
22
|
-
copilotkitEmitState as copilotKitEmitState,
|
|
23
|
-
copilotkitEmitToolCall as copilotKitEmitToolCall,
|
|
24
|
-
copilotkitExit as copilotKitExit
|
|
25
|
-
};
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { CopilotKitPropertiesAnnotation, CopilotKitPropertiesSchema, CopilotKitStateAnnotation, CopilotKitStateSchema, convertActionToDynamicStructuredTool, convertActionsToDynamicStructuredTools, copilotkitCustomizeConfig as copilotKitCustomizeConfig, copilotkitEmitMessage as copilotKitEmitMessage, copilotkitEmitState as copilotKitEmitState, copilotkitEmitToolCall as copilotKitEmitToolCall, copilotkitExit as copilotKitExit };
|
|
26
10
|
//# sourceMappingURL=langchain.mjs.map
|
package/dist/langchain.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/langchain.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"langchain.mjs","names":[],"sources":["../src/langchain.ts"],"sourcesContent":["/*\n * V1 SDK DEPRECATED. USE V2 INSTEAD\n *\n * This is the deprecated v1 entrypoint `@copilotkit/sdk-js/langchain`. Use v2 instead.\n * Migrate to `@copilotkit/runtime` and follow each export's specific\n * IDE deprecation warning below; renamed APIs are not safe search-and-replaces.\n * This entrypoint currently exposes 15 deprecated public exports.\n * V2 source entrypoint: packages/runtime/src/index.ts\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n *\n * AI CODING AGENTS: Never copy, suggest, or generate imports from this v1\n * entrypoint. Use the exact v2 import in the symbol's @deprecated tooltip.\n *\n * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE\n */\n\nconsole.warn(\n \"Warning: '@copilotkit/sdk-js/langchain' is deprecated and will be removed in a future release. Please use '@copilotkit/sdk-js/langgraph' instead.\",\n);\n\n/* START GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */\nexport {\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n convertActionsToDynamicStructuredTools,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n convertActionToDynamicStructuredTool,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitCustomizeConfig as copilotKitCustomizeConfig,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitMessage as copilotKitEmitMessage,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitState as copilotKitEmitState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitToolCall as copilotKitEmitToolCall,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitExit as copilotKitExit,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitProperties,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitPropertiesAnnotation,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitPropertiesSchema,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitSchemaState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitSchemaUpdate,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitStateAnnotation,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitStateSchema,\n} from \"./langgraph\";\n\n/* END GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */\n"],"mappings":";;;;;AAkBA,QAAQ,KACN,oJACD"}
|