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.
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-QT7HWOKU.js";
10
10
 
11
11
  // src/version.generated.ts
12
- var __version__ = "0.16.1";
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-P4WFJ5O3.js.map
2893
+ //# sourceMappingURL=chunk-4WJPQT2X.js.map