@blaxel/langgraph 0.2.35-preview.78 → 0.2.35
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 -1
- package/dist/tools.js +2 -2
- package/package.json +2 -2
package/dist/tools.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ToolOptions } from "@blaxel/core/tools/mcpTool";
|
|
2
|
+
export declare function blTool(name: string, options?: ToolOptions | number): Promise<import("@langchain/core/tools").DynamicStructuredTool<import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
2
3
|
[x: string]: any;
|
|
3
4
|
}, {
|
|
4
5
|
[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, options) {
|
|
8
8
|
try {
|
|
9
|
-
const blaxelTool = await (0, core_1.getTool)(name,
|
|
9
|
+
const blaxelTool = await (0, core_1.getTool)(name, options);
|
|
10
10
|
return blaxelTool.map((t) => (0, tools_1.tool)(t.call.bind(t), {
|
|
11
11
|
name: t.name,
|
|
12
12
|
description: t.description,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaxel/langgraph",
|
|
3
|
-
"version": "0.2.35
|
|
3
|
+
"version": "0.2.35",
|
|
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.35
|
|
68
|
+
"@blaxel/core": "0.2.35"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@eslint/js": "^9.26.0",
|