@copilotkit/intelligence-langgraph 1.72.0 → 1.73.0-rc.0
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/README.md +2 -2
- package/dist/middleware.d.cts +6 -6
- package/dist/middleware.d.cts.map +1 -1
- package/dist/middleware.d.mts +6 -6
- package/dist/middleware.d.mts.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Keep published skills from one or more Learning containers available to native TypeScript LangChain agents. The adapter adds an alphabetical catalog and two read tools; the model decides when to use a skill.
|
|
4
4
|
|
|
5
|
-
Requires Node.js 20.19+, LangChain 1.5.11+, LangGraph 1.4.14+, and LangChain core 1.2.10+ within major version 1. The Intelligence server must expose the learned-snapshot API, and the canonical Runtime client must include that operation.
|
|
5
|
+
Requires Node.js 20.19.3+ or 22.13+, LangChain 1.5.11+, LangGraph 1.4.14+, and LangChain core 1.2.10+ within major version 1. The Intelligence server must expose the learned-snapshot API, and the canonical Runtime client must include that operation.
|
|
6
6
|
|
|
7
7
|
## Setup
|
|
8
8
|
|
|
@@ -37,7 +37,7 @@ Use the wrapped agent's `invoke`, `stream`, or `streamEvents`, including native
|
|
|
37
37
|
|
|
38
38
|
## Configuration and errors
|
|
39
39
|
|
|
40
|
-
Pass an existing `CopilotKitIntelligence` client from `@copilotkit/runtime
|
|
40
|
+
Pass an existing `CopilotKitIntelligence` client from `@copilotkit/runtime` as `new SkillRegistry({ client, containerId })` to reuse its credentials and transport. Your application retains ownership of that client. Explicit options override environment values; an injected client is authoritative for connection configuration.
|
|
41
41
|
|
|
42
42
|
`freshnessWindowMs` and `requestTimeoutMs` default to 5000; `debug` defaults to false. Set `revision` or `CPK_INTELLIGENCE_SKILLS_REVISION` for an exact whole-container pin. Startup initialization is optional: the first wrapped invocation initializes automatically. Initialization and invocation errors are catchable as `SkillDeliveryError`.
|
|
43
43
|
|
package/dist/middleware.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkillRegistry } from "./intelligence-delivery-core/dist/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as zod from "zod";
|
|
3
3
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
4
4
|
import * as langchain from "langchain";
|
|
5
5
|
|
|
@@ -22,15 +22,15 @@ interface SkillRegistryMiddlewareOptions {
|
|
|
22
22
|
*/
|
|
23
23
|
declare function createSkillRegistryMiddleware({
|
|
24
24
|
registry
|
|
25
|
-
}: SkillRegistryMiddlewareOptions): langchain.AgentMiddleware<undefined, undefined, unknown, [langchain.DynamicStructuredTool<
|
|
26
|
-
skill_name:
|
|
25
|
+
}: SkillRegistryMiddlewareOptions): langchain.AgentMiddleware<undefined, undefined, unknown, [langchain.DynamicStructuredTool<zod.ZodObject<{
|
|
26
|
+
skill_name: zod.ZodString;
|
|
27
27
|
}, zod_v4_core0.$strip>, {
|
|
28
28
|
skill_name: string;
|
|
29
29
|
}, {
|
|
30
30
|
skill_name: string;
|
|
31
|
-
}, string, unknown, "copilotkit_load_skill">, langchain.DynamicStructuredTool<
|
|
32
|
-
skill_name:
|
|
33
|
-
path:
|
|
31
|
+
}, string, unknown, "copilotkit_load_skill">, langchain.DynamicStructuredTool<zod.ZodObject<{
|
|
32
|
+
skill_name: zod.ZodString;
|
|
33
|
+
path: zod.ZodString;
|
|
34
34
|
}, zod_v4_core0.$strip>, {
|
|
35
35
|
skill_name: string;
|
|
36
36
|
path: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.cts","names":[],"sources":["../src/middleware.ts"],"mappings":";;;;;;UAMiB,8BAAA;EACf,QAAA,EAAU,aAAA;AAAA;;;AADZ;;;;;AAiBA;;;;;;iBAAgB,6BAAA,CAAA;EACd;AAAA,GACC,8BAAA,aAA8B,eAAA,iCAAA,SAAA,CAAA,qBAAA,
|
|
1
|
+
{"version":3,"file":"middleware.d.cts","names":[],"sources":["../src/middleware.ts"],"mappings":";;;;;;UAMiB,8BAAA;EACf,QAAA,EAAU,aAAA;AAAA;;;AADZ;;;;;AAiBA;;;;;;iBAAgB,6BAAA,CAAA;EACd;AAAA,GACC,8BAAA,aAA8B,eAAA,iCAAA,SAAA,CAAA,qBAAA,KAAA,SAAA;cAAA,GAAA,CAAA,SAAA;AAAA;;;;;cAAA,GAAA,CAAA,SAAA;;;;;;;;;gCA4BD,KAAA,EAAS,CAAA,KAAI,CAAA;AAAA"}
|
package/dist/middleware.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SkillRegistry } from "./intelligence-delivery-core/dist/index.mjs";
|
|
2
2
|
import * as langchain from "langchain";
|
|
3
|
-
import * as
|
|
3
|
+
import * as zod from "zod";
|
|
4
4
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
5
5
|
|
|
6
6
|
//#region src/middleware.d.ts
|
|
@@ -22,15 +22,15 @@ interface SkillRegistryMiddlewareOptions {
|
|
|
22
22
|
*/
|
|
23
23
|
declare function createSkillRegistryMiddleware({
|
|
24
24
|
registry
|
|
25
|
-
}: SkillRegistryMiddlewareOptions): langchain.AgentMiddleware<undefined, undefined, unknown, [langchain.DynamicStructuredTool<
|
|
26
|
-
skill_name:
|
|
25
|
+
}: SkillRegistryMiddlewareOptions): langchain.AgentMiddleware<undefined, undefined, unknown, [langchain.DynamicStructuredTool<zod.ZodObject<{
|
|
26
|
+
skill_name: zod.ZodString;
|
|
27
27
|
}, zod_v4_core0.$strip>, {
|
|
28
28
|
skill_name: string;
|
|
29
29
|
}, {
|
|
30
30
|
skill_name: string;
|
|
31
|
-
}, string, unknown, "copilotkit_load_skill">, langchain.DynamicStructuredTool<
|
|
32
|
-
skill_name:
|
|
33
|
-
path:
|
|
31
|
+
}, string, unknown, "copilotkit_load_skill">, langchain.DynamicStructuredTool<zod.ZodObject<{
|
|
32
|
+
skill_name: zod.ZodString;
|
|
33
|
+
path: zod.ZodString;
|
|
34
34
|
}, zod_v4_core0.$strip>, {
|
|
35
35
|
skill_name: string;
|
|
36
36
|
path: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.mts","names":[],"sources":["../src/middleware.ts"],"mappings":";;;;;;UAMiB,8BAAA;EACf,QAAA,EAAU,aAAA;AAAA;;;AADZ;;;;;AAiBA;;;;;;iBAAgB,6BAAA,CAAA;EACd;AAAA,GACC,8BAAA,aAA8B,eAAA,iCAAA,SAAA,CAAA,qBAAA,
|
|
1
|
+
{"version":3,"file":"middleware.d.mts","names":[],"sources":["../src/middleware.ts"],"mappings":";;;;;;UAMiB,8BAAA;EACf,QAAA,EAAU,aAAA;AAAA;;;AADZ;;;;;AAiBA;;;;;;iBAAgB,6BAAA,CAAA;EACd;AAAA,GACC,8BAAA,aAA8B,eAAA,iCAAA,SAAA,CAAA,qBAAA,KAAA,SAAA;cAAA,GAAA,CAAA,SAAA;AAAA;;;;;cAAA,GAAA,CAAA,SAAA;;;;;;;;;gCA4BD,KAAA,EAAS,CAAA,KAAI,CAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkit/intelligence-langgraph",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.73.0-rc.0",
|
|
4
4
|
"description": "Learned skill delivery for LangGraph agents through CopilotKit Intelligence",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@copilotkit/runtime": "
|
|
28
|
+
"@copilotkit/runtime": "2.0.0-rc.52"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.15.3",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"@langchain/core": "1.2.11",
|
|
37
37
|
"@langchain/langgraph": "1.4.15",
|
|
38
38
|
"langchain": "1.5.11",
|
|
39
|
-
"zod": "4.
|
|
39
|
+
"zod": "^4.2.0",
|
|
40
40
|
"@copilotkit/typescript-config": "1.55.0-next.8",
|
|
41
41
|
"@copilotkit/intelligence-delivery-core": "0.0.0"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
|
-
"node": "
|
|
44
|
+
"node": "^20.19.3 || >=22.13.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@langchain/core": ">=1.2.10 <2",
|