bitfab 0.16.1 → 0.16.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.
- package/dist/{chunk-P4WFJ5O3.js → chunk-4WJPQT2X.js} +20 -2
- package/dist/{chunk-P4WFJ5O3.js.map → chunk-4WJPQT2X.js.map} +1 -1
- package/dist/index.cjs +21 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -2
- package/dist/index.d.ts +18 -2
- package/dist/index.js +2 -1
- package/dist/node.cjs +21 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +2 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-QT7HWOKU.js";
|
|
10
10
|
|
|
11
11
|
// src/version.generated.ts
|
|
12
|
-
var __version__ = "0.16.
|
|
12
|
+
var __version__ = "0.16.2";
|
|
13
13
|
|
|
14
14
|
// src/constants.ts
|
|
15
15
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -2284,6 +2284,24 @@ var Bitfab = class {
|
|
|
2284
2284
|
}
|
|
2285
2285
|
});
|
|
2286
2286
|
}
|
|
2287
|
+
/**
|
|
2288
|
+
* Get a LangChain callback handler for tracing.
|
|
2289
|
+
*
|
|
2290
|
+
* Alias of {@link getLangGraphCallbackHandler}: LangChain chains and
|
|
2291
|
+
* LangGraph graphs share the same callback system, so one handler serves
|
|
2292
|
+
* both.
|
|
2293
|
+
*
|
|
2294
|
+
* ```typescript
|
|
2295
|
+
* const handler = client.getLangChainCallbackHandler("my-chain");
|
|
2296
|
+
* const result = await chain.invoke(input, { callbacks: [handler] });
|
|
2297
|
+
* ```
|
|
2298
|
+
*
|
|
2299
|
+
* @param traceFunctionKey - Groups traces under this key in Bitfab
|
|
2300
|
+
* @returns A BitfabLangGraphCallbackHandler configured for this client
|
|
2301
|
+
*/
|
|
2302
|
+
getLangChainCallbackHandler(traceFunctionKey) {
|
|
2303
|
+
return this.getLangGraphCallbackHandler(traceFunctionKey);
|
|
2304
|
+
}
|
|
2287
2305
|
/**
|
|
2288
2306
|
* Get a Claude Agent SDK handler for tracing.
|
|
2289
2307
|
*
|
|
@@ -2872,4 +2890,4 @@ export {
|
|
|
2872
2890
|
Bitfab,
|
|
2873
2891
|
BitfabFunction
|
|
2874
2892
|
};
|
|
2875
|
-
//# sourceMappingURL=chunk-
|
|
2893
|
+
//# sourceMappingURL=chunk-4WJPQT2X.js.map
|