langsmith 0.1.48 → 0.1.49

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/client.cjs CHANGED
@@ -459,6 +459,11 @@ class Client {
459
459
  else {
460
460
  const sampled = [];
461
461
  for (const run of runs) {
462
+ if (run.id !== run.trace_id) {
463
+ sampled.push(run);
464
+ this.sampledPostUuids.add(run.id);
465
+ continue;
466
+ }
462
467
  if (Math.random() < this.tracingSampleRate) {
463
468
  sampled.push(run);
464
469
  this.sampledPostUuids.add(run.id);
package/dist/client.js CHANGED
@@ -432,6 +432,11 @@ export class Client {
432
432
  else {
433
433
  const sampled = [];
434
434
  for (const run of runs) {
435
+ if (run.id !== run.trace_id) {
436
+ sampled.push(run);
437
+ this.sampledPostUuids.add(run.id);
438
+ continue;
439
+ }
435
440
  if (Math.random() < this.tracingSampleRate) {
436
441
  sampled.push(run);
437
442
  this.sampledPostUuids.add(run.id);
package/dist/index.cjs CHANGED
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "Client", { enumerable: true, get: function () {
6
6
  var run_trees_js_1 = require("./run_trees.cjs");
7
7
  Object.defineProperty(exports, "RunTree", { enumerable: true, get: function () { return run_trees_js_1.RunTree; } });
8
8
  // Update using yarn bump-version
9
- exports.__version__ = "0.1.48";
9
+ exports.__version__ = "0.1.49";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { Client, type ClientConfig } from "./client.js";
2
2
  export type { Dataset, Example, TracerSession, Run, Feedback, RetrieverOutput, } from "./schemas.js";
3
3
  export { RunTree, type RunTreeConfig } from "./run_trees.js";
4
- export declare const __version__ = "0.1.48";
4
+ export declare const __version__ = "0.1.49";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export { Client } from "./client.js";
2
2
  export { RunTree } from "./run_trees.js";
3
3
  // Update using yarn bump-version
4
- export const __version__ = "0.1.48";
4
+ export const __version__ = "0.1.49";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langsmith",
3
- "version": "0.1.48",
3
+ "version": "0.1.49",
4
4
  "description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.",
5
5
  "packageManager": "yarn@1.22.19",
6
6
  "files": [