langsmith 0.7.17 → 0.8.1

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
@@ -986,6 +986,14 @@ class Client {
986
986
  get datasets() {
987
987
  return this.openAPIClient.datasets;
988
988
  }
989
+ /** Access the threads resource (query, stats, listTraces). */
990
+ get threads() {
991
+ return this.openAPIClient.threads;
992
+ }
993
+ /** Access the traces resource (query, listRuns). */
994
+ get traces() {
995
+ return this.openAPIClient.traces;
996
+ }
989
997
  async processInputs(inputs) {
990
998
  if (this.hideInputs === false) {
991
999
  return inputs;
package/dist/client.d.ts CHANGED
@@ -7,6 +7,8 @@ import { OnlineEvaluators as Evaluators } from "./_openapi_client/resources/onli
7
7
  import { Runs as OpenAPIRuns } from "./_openapi_client/resources/runs.js";
8
8
  import { Sandboxes } from "./_openapi_client/resources/sandboxes/sandboxes.js";
9
9
  import { Datasets } from "./_openapi_client/resources/datasets/datasets.js";
10
+ import { Threads } from "./_openapi_client/resources/threads.js";
11
+ import { Traces } from "./_openapi_client/resources/traces.js";
10
12
  import { PromptCache } from "./utils/prompt_cache/index.js";
11
13
  import { ProfileAuth } from "./utils/profiles.js";
12
14
  export interface ClientConfig {
@@ -519,6 +521,10 @@ export declare class Client implements LangSmithTracingClientInterface {
519
521
  get sandboxes(): Sandboxes;
520
522
  /** Access the v2 datasets resource (experimentRuns, etc.). */
521
523
  get datasets(): Datasets;
524
+ /** Access the threads resource (query, stats, listTraces). */
525
+ get threads(): Threads;
526
+ /** Access the traces resource (query, listRuns). */
527
+ get traces(): Traces;
522
528
  private processInputs;
523
529
  private processOutputs;
524
530
  private processMetadata;
package/dist/client.js CHANGED
@@ -947,6 +947,14 @@ export class Client {
947
947
  get datasets() {
948
948
  return this.openAPIClient.datasets;
949
949
  }
950
+ /** Access the threads resource (query, stats, listTraces). */
951
+ get threads() {
952
+ return this.openAPIClient.threads;
953
+ }
954
+ /** Access the traces resource (query, listRuns). */
955
+ get traces() {
956
+ return this.openAPIClient.traces;
957
+ }
950
958
  async processInputs(inputs) {
951
959
  if (this.hideInputs === false) {
952
960
  return inputs;
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LS_MESSAGE_VIEW_EXCLUDE = exports.__version__ = exports.promptCacheSingleton = exports.configureGlobalPromptCache = exports.PromptCache = exports.Cache = exports.isTracingEnabled = exports.uuid7FromTime = exports.uuid7 = exports.getDefaultProjectName = exports.overrideFetchImplementation = exports.RunTree = exports.Client = void 0;
3
+ exports.LS_MESSAGE_VIEW_EXCLUDE = exports.__version__ = exports.InternalServerError = exports.RateLimitError = exports.UnprocessableEntityError = exports.ConflictError = exports.NotFoundError = exports.PermissionDeniedError = exports.AuthenticationError = exports.BadRequestError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIUserAbortError = exports.APIError = exports.LangsmithError = exports.promptCacheSingleton = exports.configureGlobalPromptCache = exports.PromptCache = exports.Cache = exports.isTracingEnabled = exports.uuid7FromTime = exports.uuid7 = exports.getDefaultProjectName = exports.overrideFetchImplementation = exports.RunTree = exports.Client = void 0;
4
4
  var client_js_1 = require("./client.cjs");
5
5
  Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return client_js_1.Client; } });
6
6
  var run_trees_js_1 = require("./run_trees.cjs");
@@ -19,7 +19,21 @@ Object.defineProperty(exports, "Cache", { enumerable: true, get: function () { r
19
19
  Object.defineProperty(exports, "PromptCache", { enumerable: true, get: function () { return index_js_1.PromptCache; } });
20
20
  Object.defineProperty(exports, "configureGlobalPromptCache", { enumerable: true, get: function () { return index_js_1.configureGlobalPromptCache; } });
21
21
  Object.defineProperty(exports, "promptCacheSingleton", { enumerable: true, get: function () { return index_js_1.promptCacheSingleton; } });
22
+ var error_js_1 = require("./_openapi_client/core/error.cjs");
23
+ Object.defineProperty(exports, "LangsmithError", { enumerable: true, get: function () { return error_js_1.LangsmithError; } });
24
+ Object.defineProperty(exports, "APIError", { enumerable: true, get: function () { return error_js_1.APIError; } });
25
+ Object.defineProperty(exports, "APIUserAbortError", { enumerable: true, get: function () { return error_js_1.APIUserAbortError; } });
26
+ Object.defineProperty(exports, "APIConnectionError", { enumerable: true, get: function () { return error_js_1.APIConnectionError; } });
27
+ Object.defineProperty(exports, "APIConnectionTimeoutError", { enumerable: true, get: function () { return error_js_1.APIConnectionTimeoutError; } });
28
+ Object.defineProperty(exports, "BadRequestError", { enumerable: true, get: function () { return error_js_1.BadRequestError; } });
29
+ Object.defineProperty(exports, "AuthenticationError", { enumerable: true, get: function () { return error_js_1.AuthenticationError; } });
30
+ Object.defineProperty(exports, "PermissionDeniedError", { enumerable: true, get: function () { return error_js_1.PermissionDeniedError; } });
31
+ Object.defineProperty(exports, "NotFoundError", { enumerable: true, get: function () { return error_js_1.NotFoundError; } });
32
+ Object.defineProperty(exports, "ConflictError", { enumerable: true, get: function () { return error_js_1.ConflictError; } });
33
+ Object.defineProperty(exports, "UnprocessableEntityError", { enumerable: true, get: function () { return error_js_1.UnprocessableEntityError; } });
34
+ Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return error_js_1.RateLimitError; } });
35
+ Object.defineProperty(exports, "InternalServerError", { enumerable: true, get: function () { return error_js_1.InternalServerError; } });
22
36
  // Update using pnpm bump-version
23
- exports.__version__ = "0.7.17";
37
+ exports.__version__ = "0.8.1";
24
38
  // Metadata key to hide a traced run from LangSmith's Messages View.
25
39
  exports.LS_MESSAGE_VIEW_EXCLUDE = "ls_message_view_exclude";
package/dist/index.d.ts CHANGED
@@ -6,5 +6,6 @@ export { getDefaultProjectName } from "./utils/project.js";
6
6
  export { uuid7, uuid7FromTime } from "./uuid.js";
7
7
  export { isTracingEnabled } from "./utils/guard.js";
8
8
  export { Cache, PromptCache, type CacheConfig, type CacheMetrics, configureGlobalPromptCache, promptCacheSingleton, } from "./utils/prompt_cache/index.js";
9
- export declare const __version__ = "0.7.17";
9
+ export { LangsmithError, APIError, APIUserAbortError, APIConnectionError, APIConnectionTimeoutError, BadRequestError, AuthenticationError, PermissionDeniedError, NotFoundError, ConflictError, UnprocessableEntityError, RateLimitError, InternalServerError, } from "./_openapi_client/core/error.js";
10
+ export declare const __version__ = "0.8.1";
10
11
  export declare const LS_MESSAGE_VIEW_EXCLUDE: "ls_message_view_exclude";
package/dist/index.js CHANGED
@@ -5,7 +5,8 @@ export { getDefaultProjectName } from "./utils/project.js";
5
5
  export { uuid7, uuid7FromTime } from "./uuid.js";
6
6
  export { isTracingEnabled } from "./utils/guard.js";
7
7
  export { Cache, PromptCache, configureGlobalPromptCache, promptCacheSingleton, } from "./utils/prompt_cache/index.js";
8
+ export { LangsmithError, APIError, APIUserAbortError, APIConnectionError, APIConnectionTimeoutError, BadRequestError, AuthenticationError, PermissionDeniedError, NotFoundError, ConflictError, UnprocessableEntityError, RateLimitError, InternalServerError, } from "./_openapi_client/core/error.js";
8
9
  // Update using pnpm bump-version
9
- export const __version__ = "0.7.17";
10
+ export const __version__ = "0.8.1";
10
11
  // Metadata key to hide a traced run from LangSmith's Messages View.
11
12
  export const LS_MESSAGE_VIEW_EXCLUDE = "ls_message_view_exclude";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._MIN_BACKEND_VERSION = void 0;
4
- exports._MIN_BACKEND_VERSION = "0.16.10rc1";
4
+ exports._MIN_BACKEND_VERSION = "0.16.12rc1";
@@ -1 +1 @@
1
- export declare const _MIN_BACKEND_VERSION = "0.16.10rc1";
1
+ export declare const _MIN_BACKEND_VERSION = "0.16.12rc1";
@@ -1 +1 @@
1
- export const _MIN_BACKEND_VERSION = "0.16.10rc1";
1
+ export const _MIN_BACKEND_VERSION = "0.16.12rc1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langsmith",
3
- "version": "0.7.17",
3
+ "version": "0.8.1",
4
4
  "description": "Client library to connect to the LangSmith Observability and Evaluation Platform.",
5
5
  "packageManager": "pnpm@10.33.0",
6
6
  "files": [