@bitfab/sdk 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
|
@@ -419,6 +419,7 @@ __export(index_exports, {
|
|
|
419
419
|
BitfabClaudeAgentHandler: () => BitfabClaudeAgentHandler,
|
|
420
420
|
BitfabError: () => BitfabError,
|
|
421
421
|
BitfabFunction: () => BitfabFunction,
|
|
422
|
+
BitfabLangChainCallbackHandler: () => BitfabLangGraphCallbackHandler,
|
|
422
423
|
BitfabLangGraphCallbackHandler: () => BitfabLangGraphCallbackHandler,
|
|
423
424
|
BitfabOpenAITracingProcessor: () => BitfabOpenAITracingProcessor,
|
|
424
425
|
DEFAULT_SERVICE_URL: () => DEFAULT_SERVICE_URL,
|
|
@@ -432,7 +433,7 @@ __export(index_exports, {
|
|
|
432
433
|
module.exports = __toCommonJS(index_exports);
|
|
433
434
|
|
|
434
435
|
// src/version.generated.ts
|
|
435
|
-
var __version__ = "0.16.
|
|
436
|
+
var __version__ = "0.16.2";
|
|
436
437
|
|
|
437
438
|
// src/constants.ts
|
|
438
439
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -2719,6 +2720,24 @@ var Bitfab = class {
|
|
|
2719
2720
|
}
|
|
2720
2721
|
});
|
|
2721
2722
|
}
|
|
2723
|
+
/**
|
|
2724
|
+
* Get a LangChain callback handler for tracing.
|
|
2725
|
+
*
|
|
2726
|
+
* Alias of {@link getLangGraphCallbackHandler}: LangChain chains and
|
|
2727
|
+
* LangGraph graphs share the same callback system, so one handler serves
|
|
2728
|
+
* both.
|
|
2729
|
+
*
|
|
2730
|
+
* ```typescript
|
|
2731
|
+
* const handler = client.getLangChainCallbackHandler("my-chain");
|
|
2732
|
+
* const result = await chain.invoke(input, { callbacks: [handler] });
|
|
2733
|
+
* ```
|
|
2734
|
+
*
|
|
2735
|
+
* @param traceFunctionKey - Groups traces under this key in Bitfab
|
|
2736
|
+
* @returns A BitfabLangGraphCallbackHandler configured for this client
|
|
2737
|
+
*/
|
|
2738
|
+
getLangChainCallbackHandler(traceFunctionKey) {
|
|
2739
|
+
return this.getLangGraphCallbackHandler(traceFunctionKey);
|
|
2740
|
+
}
|
|
2722
2741
|
/**
|
|
2723
2742
|
* Get a Claude Agent SDK handler for tracing.
|
|
2724
2743
|
*
|
|
@@ -3298,6 +3317,7 @@ var BitfabFunction = class {
|
|
|
3298
3317
|
BitfabClaudeAgentHandler,
|
|
3299
3318
|
BitfabError,
|
|
3300
3319
|
BitfabFunction,
|
|
3320
|
+
BitfabLangChainCallbackHandler,
|
|
3301
3321
|
BitfabLangGraphCallbackHandler,
|
|
3302
3322
|
BitfabOpenAITracingProcessor,
|
|
3303
3323
|
DEFAULT_SERVICE_URL,
|