@blaxel/llamaindex 0.2.35-preview.78 → 0.2.35-preview.79

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 CHANGED
@@ -1,2 +1,3 @@
1
- export declare const blTool: (name: string, ms?: number) => Promise<import("llamaindex").FunctionTool<unknown, import("llamaindex").JSONValue | Promise<import("llamaindex").JSONValue>, object>[]>;
1
+ import { ToolOptions } from "@blaxel/core/tools/mcpTool";
2
+ export declare const blTool: (name: string, options?: ToolOptions | number) => Promise<import("llamaindex").FunctionTool<unknown, import("llamaindex").JSONValue | Promise<import("llamaindex").JSONValue>, object>[]>;
2
3
  export declare const blTools: (names: string[], ms?: number) => Promise<import("llamaindex").FunctionTool<unknown, import("llamaindex").JSONValue | Promise<import("llamaindex").JSONValue>, object>[]>;
package/dist/tools.js CHANGED
@@ -4,9 +4,9 @@ exports.blTools = exports.blTool = void 0;
4
4
  // @ts-ignore - Required for build time due to missing types in 'llamaindex'
5
5
  const core_1 = require("@blaxel/core");
6
6
  const llamaindex_1 = require("llamaindex");
7
- const blTool = async (name, ms) => {
7
+ const blTool = async (name, options) => {
8
8
  try {
9
- const blaxelTool = await (0, core_1.getTool)(name, ms);
9
+ const blaxelTool = await (0, core_1.getTool)(name, options);
10
10
  const tools = blaxelTool.map((t) => {
11
11
  // @ts-ignore - Required for build time due to missing types in 'llamaindex'
12
12
  return (0, llamaindex_1.tool)(t.call.bind(t), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaxel/llamaindex",
3
- "version": "0.2.35-preview.78",
3
+ "version": "0.2.35-preview.79",
4
4
  "description": "Blaxel SDK for TypeScript",
5
5
  "license": "MIT",
6
6
  "author": "Blaxel, INC (https://blaxel.ai)",
@@ -61,7 +61,7 @@
61
61
  "@opentelemetry/instrumentation": "^0.203.0",
62
62
  "@traceloop/instrumentation-llamaindex": "^0.14.0",
63
63
  "llamaindex": "^0.11.13",
64
- "@blaxel/core": "0.2.35-preview.78"
64
+ "@blaxel/core": "0.2.35-preview.79"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@eslint/js": "^9.30.1",