@blaxel/langgraph 0.2.11-dev.88 → 0.2.11-dev.89
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/tools.d.ts +2 -2
- package/dist/tools.js +4 -4
- package/package.json +2 -2
package/dist/tools.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare function blTool(name: string): Promise<import("@langchain/core/tools").DynamicStructuredTool<import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
1
|
+
export declare function blTool(name: string, ms?: number): Promise<import("@langchain/core/tools").DynamicStructuredTool<import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
}, {
|
|
4
4
|
[x: string]: any;
|
|
5
5
|
}>, unknown, {
|
|
6
6
|
[x: string]: any;
|
|
7
7
|
}, unknown>[]>;
|
|
8
|
-
export declare function blTools(names: string[]): Promise<import("@langchain/core/tools").DynamicStructuredTool<import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
8
|
+
export declare function blTools(names: string[], ms?: number): Promise<import("@langchain/core/tools").DynamicStructuredTool<import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
9
9
|
[x: string]: any;
|
|
10
10
|
}, {
|
|
11
11
|
[x: string]: any;
|
package/dist/tools.js
CHANGED
|
@@ -4,9 +4,9 @@ exports.blTool = blTool;
|
|
|
4
4
|
exports.blTools = blTools;
|
|
5
5
|
const core_1 = require("@blaxel/core");
|
|
6
6
|
const tools_1 = require("@langchain/core/tools");
|
|
7
|
-
async function blTool(name) {
|
|
7
|
+
async function blTool(name, ms) {
|
|
8
8
|
try {
|
|
9
|
-
const blaxelTool = await (0, core_1.getTool)(name);
|
|
9
|
+
const blaxelTool = await (0, core_1.getTool)(name, ms);
|
|
10
10
|
return blaxelTool.map((t) => (0, tools_1.tool)(t.call.bind(t), {
|
|
11
11
|
name: t.name,
|
|
12
12
|
description: t.description,
|
|
@@ -18,7 +18,7 @@ async function blTool(name) {
|
|
|
18
18
|
throw err;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
async function blTools(names) {
|
|
22
|
-
const toolArrays = await Promise.all(names.map(blTool));
|
|
21
|
+
async function blTools(names, ms) {
|
|
22
|
+
const toolArrays = await Promise.all(names.map((n) => blTool(n, ms)));
|
|
23
23
|
return toolArrays.flat();
|
|
24
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaxel/langgraph",
|
|
3
|
-
"version": "0.2.11-dev.
|
|
3
|
+
"version": "0.2.11-dev.89",
|
|
4
4
|
"description": "Blaxel SDK for TypeScript",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Blaxel, INC (https://blaxel.ai)",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"langchain": "^0.3.24",
|
|
66
66
|
"zod": "^3.24.3",
|
|
67
67
|
"zod-to-json-schema": "^3.24.5",
|
|
68
|
-
"@blaxel/core": "0.2.11-dev.
|
|
68
|
+
"@blaxel/core": "0.2.11-dev.89"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@eslint/js": "^9.26.0",
|