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
package/dist/index.cjs
CHANGED
|
@@ -428,6 +428,7 @@ __export(index_exports, {
|
|
|
428
428
|
BitfabClaudeAgentHandler: () => BitfabClaudeAgentHandler,
|
|
429
429
|
BitfabError: () => BitfabError,
|
|
430
430
|
BitfabFunction: () => BitfabFunction,
|
|
431
|
+
BitfabLangChainCallbackHandler: () => BitfabLangGraphCallbackHandler,
|
|
431
432
|
BitfabLangGraphCallbackHandler: () => BitfabLangGraphCallbackHandler,
|
|
432
433
|
BitfabOpenAITracingProcessor: () => BitfabOpenAITracingProcessor,
|
|
433
434
|
DEFAULT_SERVICE_URL: () => DEFAULT_SERVICE_URL,
|
|
@@ -441,7 +442,7 @@ __export(index_exports, {
|
|
|
441
442
|
module.exports = __toCommonJS(index_exports);
|
|
442
443
|
|
|
443
444
|
// src/version.generated.ts
|
|
444
|
-
var __version__ = "0.16.
|
|
445
|
+
var __version__ = "0.16.2";
|
|
445
446
|
|
|
446
447
|
// src/constants.ts
|
|
447
448
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -2728,6 +2729,24 @@ var Bitfab = class {
|
|
|
2728
2729
|
}
|
|
2729
2730
|
});
|
|
2730
2731
|
}
|
|
2732
|
+
/**
|
|
2733
|
+
* Get a LangChain callback handler for tracing.
|
|
2734
|
+
*
|
|
2735
|
+
* Alias of {@link getLangGraphCallbackHandler}: LangChain chains and
|
|
2736
|
+
* LangGraph graphs share the same callback system, so one handler serves
|
|
2737
|
+
* both.
|
|
2738
|
+
*
|
|
2739
|
+
* ```typescript
|
|
2740
|
+
* const handler = client.getLangChainCallbackHandler("my-chain");
|
|
2741
|
+
* const result = await chain.invoke(input, { callbacks: [handler] });
|
|
2742
|
+
* ```
|
|
2743
|
+
*
|
|
2744
|
+
* @param traceFunctionKey - Groups traces under this key in Bitfab
|
|
2745
|
+
* @returns A BitfabLangGraphCallbackHandler configured for this client
|
|
2746
|
+
*/
|
|
2747
|
+
getLangChainCallbackHandler(traceFunctionKey) {
|
|
2748
|
+
return this.getLangGraphCallbackHandler(traceFunctionKey);
|
|
2749
|
+
}
|
|
2731
2750
|
/**
|
|
2732
2751
|
* Get a Claude Agent SDK handler for tracing.
|
|
2733
2752
|
*
|
|
@@ -3307,6 +3326,7 @@ var BitfabFunction = class {
|
|
|
3307
3326
|
BitfabClaudeAgentHandler,
|
|
3308
3327
|
BitfabError,
|
|
3309
3328
|
BitfabFunction,
|
|
3329
|
+
BitfabLangChainCallbackHandler,
|
|
3310
3330
|
BitfabLangGraphCallbackHandler,
|
|
3311
3331
|
BitfabOpenAITracingProcessor,
|
|
3312
3332
|
DEFAULT_SERVICE_URL,
|