@eggjs/langchain-plugin 4.0.2-beta.1 → 4.0.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,6 +8,7 @@ import { DynamicStructuredTool } from "langchain";
|
|
|
8
8
|
import * as z from "zod/v4";
|
|
9
9
|
import { EggPrototypeCreatorFactory, EggPrototypeFactory, ProtoDescriptorHelper } from "@eggjs/metadata";
|
|
10
10
|
import assert from "node:assert";
|
|
11
|
+
import { NameUtil } from "@eggjs/tegg-common-util";
|
|
11
12
|
|
|
12
13
|
//#region src/lib/graph/GraphLoadUnitHook.ts
|
|
13
14
|
var GraphLoadUnitHook = class {
|
|
@@ -24,7 +25,7 @@ var GraphLoadUnitHook = class {
|
|
|
24
25
|
const clazzList = await ctx.loader.load();
|
|
25
26
|
for (const clazz of clazzList) {
|
|
26
27
|
if (this.clazzMap.get(clazz)) {
|
|
27
|
-
const protoName =
|
|
28
|
+
const protoName = NameUtil.getClassName(clazz);
|
|
28
29
|
const graphMetadata = GraphInfoUtil.getGraphMetadata(clazz);
|
|
29
30
|
assert(graphMetadata, `${clazz.name} graphMetadata should not be null`);
|
|
30
31
|
const proto = new CompiledStateGraphProto(loadUnit, `compiled${protoName.replace(protoName[0], protoName[0].toUpperCase())}`, protoName, graphMetadata);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/langchain-plugin",
|
|
3
|
-
"version": "4.0.2-beta.
|
|
3
|
+
"version": "4.0.2-beta.2",
|
|
4
4
|
"description": "langchain for egg",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"egg",
|
|
@@ -54,32 +54,32 @@
|
|
|
54
54
|
"langchain": "^1.1.2",
|
|
55
55
|
"urllib": "^4.8.2",
|
|
56
56
|
"zod": "^4.0.0",
|
|
57
|
-
"@eggjs/
|
|
58
|
-
"@eggjs/
|
|
59
|
-
"@eggjs/
|
|
60
|
-
"@eggjs/
|
|
61
|
-
"@eggjs/
|
|
62
|
-
"@eggjs/
|
|
63
|
-
"@eggjs/tegg-
|
|
64
|
-
"@eggjs/tegg-types": "4.0.2-beta.
|
|
57
|
+
"@eggjs/langchain-decorator": "4.0.2-beta.2",
|
|
58
|
+
"@eggjs/metadata": "4.0.2-beta.2",
|
|
59
|
+
"@eggjs/tegg": "4.0.2-beta.2",
|
|
60
|
+
"@eggjs/mcp-client": "4.0.2-beta.2",
|
|
61
|
+
"@eggjs/tegg-common-util": "4.0.2-beta.2",
|
|
62
|
+
"@eggjs/module-common": "4.0.2-beta.2",
|
|
63
|
+
"@eggjs/tegg-runtime": "4.0.2-beta.2",
|
|
64
|
+
"@eggjs/tegg-types": "4.0.2-beta.2"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@modelcontextprotocol/sdk": "^1.23.0",
|
|
68
68
|
"@types/node": "^24.10.2",
|
|
69
69
|
"typescript": "^5.9.3",
|
|
70
|
-
"@eggjs/
|
|
71
|
-
"@eggjs/
|
|
72
|
-
"@eggjs/
|
|
70
|
+
"@eggjs/controller-plugin": "4.0.2-beta.2",
|
|
71
|
+
"@eggjs/mcp-client-plugin": "4.0.2-beta.2",
|
|
72
|
+
"@eggjs/mock": "7.0.2-beta.2",
|
|
73
|
+
"@eggjs/router": "4.0.2-beta.2",
|
|
74
|
+
"@eggjs/tegg-config": "4.0.2-beta.2",
|
|
73
75
|
"@eggjs/module-test-util": "4.0.0-beta.29",
|
|
74
|
-
"@eggjs/
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"@eggjs/tracer": "4.0.2-beta.1",
|
|
78
|
-
"@eggjs/tegg-config": "4.0.2-beta.1"
|
|
76
|
+
"@eggjs/tracer": "4.0.2-beta.2",
|
|
77
|
+
"egg": "4.1.2-beta.2",
|
|
78
|
+
"@eggjs/tegg-plugin": "4.0.2-beta.2"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@eggjs/tegg-plugin": "4.0.2-beta.
|
|
82
|
-
"egg": "4.1.2-beta.
|
|
81
|
+
"@eggjs/tegg-plugin": "4.0.2-beta.2",
|
|
82
|
+
"egg": "4.1.2-beta.2"
|
|
83
83
|
},
|
|
84
84
|
"engines": {
|
|
85
85
|
"node": ">=22.18.0"
|