@blaxel/llamaindex 0.2.0-dev2 → 0.2.0-dev20

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/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./model.js";
2
2
  export * from "./tools.js";
3
+ import "./telemetry.js";
package/dist/index.js CHANGED
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./model.js"), exports);
18
18
  __exportStar(require("./tools.js"), exports);
19
+ require("./telemetry.js");
package/dist/model.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import type { ToolCallLLM, ToolCallLLMMessageOptions } from "llamaindex";
1
+ import type { ToolCallLLM, ToolCallLLMMessageOptions } from '@llamaindex/core/llms' with { "resolution-mode": "import" };
2
2
  export declare const blModel: (model: string, options?: Record<string, unknown>) => Promise<ToolCallLLM<object, ToolCallLLMMessageOptions>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const instrumentation_1 = require("@opentelemetry/instrumentation");
4
+ const instrumentation_llamaindex_1 = require("@traceloop/instrumentation-llamaindex");
5
+ const llamaindex = new instrumentation_llamaindex_1.LlamaIndexInstrumentation();
6
+ llamaindex.enable();
7
+ (0, instrumentation_1.registerInstrumentations)({
8
+ instrumentations: [llamaindex],
9
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaxel/llamaindex",
3
- "version": "0.2.0-dev2",
3
+ "version": "0.2.0-dev20",
4
4
  "description": "Blaxel SDK for TypeScript",
5
5
  "license": "MIT",
6
6
  "author": "Blaxel, INC (https://blaxel.ai)",
@@ -54,10 +54,13 @@
54
54
  ],
55
55
  "dependencies": {
56
56
  "@llamaindex/anthropic": "^0.3.4",
57
+ "@llamaindex/core": "0.6.2",
57
58
  "@llamaindex/mistral": "^0.1.3",
58
59
  "@llamaindex/openai": "^0.3.5",
60
+ "@opentelemetry/instrumentation": "^0.200.0",
61
+ "@traceloop/instrumentation-llamaindex": "^0.13.0",
59
62
  "llamaindex": "^0.10.3",
60
- "@blaxel/core": "0.2.0-dev2"
63
+ "@blaxel/core": "0.2.0-dev20"
61
64
  },
62
65
  "devDependencies": {
63
66
  "@eslint/js": "^9.26.0",
@@ -66,6 +69,7 @@
66
69
  },
67
70
  "scripts": {
68
71
  "lint": "eslint src/",
72
+ "dev": "tsc --watch",
69
73
  "build": "tsc"
70
74
  }
71
75
  }