langsmith 0.7.14 → 0.7.15

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.
Files changed (31) hide show
  1. package/dist/_openapi_client/client.cjs +8 -0
  2. package/dist/_openapi_client/client.d.ts +8 -3
  3. package/dist/_openapi_client/client.js +8 -0
  4. package/dist/_openapi_client/core/pagination.cjs +29 -1
  5. package/dist/_openapi_client/core/pagination.d.ts +11 -0
  6. package/dist/_openapi_client/core/pagination.js +27 -0
  7. package/dist/_openapi_client/resources/datasets/experiment-runs.d.ts +1 -1
  8. package/dist/_openapi_client/resources/datasets/runs.d.ts +3 -0
  9. package/dist/_openapi_client/resources/index.cjs +3 -1
  10. package/dist/_openapi_client/resources/index.d.ts +2 -1
  11. package/dist/_openapi_client/resources/index.js +1 -0
  12. package/dist/_openapi_client/resources/issues.cjs +31 -0
  13. package/dist/_openapi_client/resources/issues.d.ts +78 -0
  14. package/dist/_openapi_client/resources/issues.js +27 -0
  15. package/dist/_openapi_client/resources/runs/index.d.ts +1 -1
  16. package/dist/_openapi_client/resources/runs/runs.cjs +2 -2
  17. package/dist/_openapi_client/resources/runs/runs.d.ts +23 -23
  18. package/dist/_openapi_client/resources/runs/runs.js +2 -2
  19. package/dist/_openapi_client/resources/sessions.d.ts +1 -1
  20. package/dist/experimental/anthropic/context.cjs +1 -0
  21. package/dist/experimental/anthropic/context.js +1 -0
  22. package/dist/index.cjs +1 -1
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/utils/constants.cjs +1 -1
  26. package/dist/utils/constants.d.ts +1 -1
  27. package/dist/utils/constants.js +1 -1
  28. package/dist/utils/env.cjs +1 -1
  29. package/dist/utils/env.d.ts +0 -7
  30. package/dist/utils/env.js +1 -1
  31. package/package.json +10 -10
@@ -63,6 +63,7 @@ const Uploads = __importStar(require("./core/uploads.cjs"));
63
63
  const API = __importStar(require("./resources/index.cjs"));
64
64
  const api_promise_js_1 = require("./core/api-promise.cjs");
65
65
  const info_js_1 = require("./resources/info.cjs");
66
+ const issues_js_1 = require("./resources/issues.cjs");
66
67
  const online_evaluators_js_1 = require("./resources/online-evaluators.cjs");
67
68
  const sessions_js_1 = require("./resources/sessions.cjs");
68
69
  const datasets_js_1 = require("./resources/datasets/datasets.cjs");
@@ -188,6 +189,12 @@ class Langsmith {
188
189
  writable: true,
189
190
  value: new API.Info(this)
190
191
  });
192
+ Object.defineProperty(this, "issues", {
193
+ enumerable: true,
194
+ configurable: true,
195
+ writable: true,
196
+ value: new API.Issues(this)
197
+ });
191
198
  Object.defineProperty(this, "sandboxes", {
192
199
  enumerable: true,
193
200
  configurable: true,
@@ -739,4 +746,5 @@ Langsmith.Datasets = datasets_js_1.Datasets;
739
746
  Langsmith.Runs = runs_js_1.Runs;
740
747
  Langsmith.OnlineEvaluators = online_evaluators_js_1.OnlineEvaluators;
741
748
  Langsmith.Info = info_js_1.Info;
749
+ Langsmith.Issues = issues_js_1.Issues;
742
750
  Langsmith.Sandboxes = sandboxes_js_1.Sandboxes;
@@ -4,15 +4,16 @@ export type { Logger, LogLevel } from './internal/utils/log.js';
4
4
  import * as Opts from './internal/request-options.js';
5
5
  import * as Errors from './core/error.js';
6
6
  import * as Pagination from './core/pagination.js';
7
- import { type CursorPaginationParams, CursorPaginationResponse, type ItemsCursorGetPaginationParams, ItemsCursorGetPaginationResponse, type ItemsCursorPostPaginationParams, ItemsCursorPostPaginationResponse, type OffsetPaginationCommitsParams, OffsetPaginationCommitsResponse, type OffsetPaginationInsightsClusteringJobsParams, OffsetPaginationInsightsClusteringJobsResponse, type OffsetPaginationOnlineEvaluatorsParams, OffsetPaginationOnlineEvaluatorsResponse, type OffsetPaginationReposParams, OffsetPaginationReposResponse, type OffsetPaginationTopLevelArrayParams, OffsetPaginationTopLevelArrayResponse } from './core/pagination.js';
7
+ import { type CursorPaginationParams, CursorPaginationResponse, type ItemsCursorGetPaginationParams, ItemsCursorGetPaginationResponse, type ItemsCursorPostPaginationParams, ItemsCursorPostPaginationResponse, type OffsetPaginationCommitsParams, OffsetPaginationCommitsResponse, type OffsetPaginationInsightsClusteringJobsParams, OffsetPaginationInsightsClusteringJobsResponse, type OffsetPaginationIssuesParams, OffsetPaginationIssuesResponse, type OffsetPaginationOnlineEvaluatorsParams, OffsetPaginationOnlineEvaluatorsResponse, type OffsetPaginationReposParams, OffsetPaginationReposResponse, type OffsetPaginationTopLevelArrayParams, OffsetPaginationTopLevelArrayResponse } from './core/pagination.js';
8
8
  import * as Uploads from './core/uploads.js';
9
9
  import * as API from './resources/index.js';
10
10
  import { APIPromise } from './core/api-promise.js';
11
11
  import { Info, InfoListResponse } from './resources/info.js';
12
+ import { Issue, IssueListParams, Issues, IssuesOffsetPaginationIssues } from './resources/issues.js';
12
13
  import { BulkDeleteEvaluatorFailedItem, BulkDeleteEvaluatorsResponse, CreateOnlineCodeEvaluatorRequest, CreateOnlineEvaluatorRequest, CreateOnlineEvaluatorResponse, CreateOnlineLlmEvaluatorRequest, GetOnlineEvaluatorSpendResponse, OnlineCodeEvaluator, OnlineEvaluator, OnlineEvaluatorBulkDeleteParams, OnlineEvaluatorCreateParams, OnlineEvaluatorDeleteParams, OnlineEvaluatorListParams, OnlineEvaluatorRunRule, OnlineEvaluatorSpendDay, OnlineEvaluatorSpendGroup, OnlineEvaluatorSpendParams, OnlineEvaluatorType, OnlineEvaluatorUpdateParams, OnlineEvaluators, OnlineEvaluatorsOffsetPaginationOnlineEvaluators, OnlineLlmEvaluator, OnlineSpendLimit, UpdateOnlineCodeEvaluatorRequest, UpdateOnlineEvaluatorRequest, UpdateOnlineEvaluatorResponse, UpdateOnlineLlmEvaluatorRequest } from './resources/online-evaluators.js';
13
14
  import { CustomChartsSection, CustomChartsSectionRequest, RunStatsGroupBy, SessionCreateParams, SessionDeleteResponse, SessionListParams, SessionRetrieveParams, SessionSortableColumns, SessionUpdateParams, Sessions, TimedeltaInput, TracerSession, TracerSessionWithoutVirtualFields, TracerSessionsOffsetPaginationTopLevelArray } from './resources/sessions.js';
14
15
  import { DataType, Dataset, DatasetCloneParams, DatasetCloneResponse, DatasetCreateParams, DatasetDeleteResponse, DatasetListParams, DatasetRetrieveCsvParams, DatasetRetrieveCsvResponse, DatasetRetrieveJSONLParams, DatasetRetrieveJSONLResponse, DatasetRetrieveOpenAIFtParams, DatasetRetrieveOpenAIFtResponse, DatasetRetrieveOpenAIParams, DatasetRetrieveOpenAIResponse, DatasetRetrieveVersionParams, DatasetTransformation, DatasetUpdateParams, DatasetUpdateResponse, DatasetUpdateTagsParams, DatasetUploadParams, DatasetVersion, Datasets, DatasetsOffsetPaginationTopLevelArray, FeedbackCreateCoreSchema, Missing, SortByDatasetColumn } from './resources/datasets/datasets.js';
15
- import { QueryRunResponse, QueryRunResponsesItemsCursorPostPagination, ResponseBodyForRunsGenerateQuery, Run, RunQueryParams, RunQueryV2Params, RunRetrieveParams, RunRetrieveV2Params, RunSchema, RunStatsQueryParams, RunTypeEnum, Runs, RunsFilterDataSourceTypeEnum } from './resources/runs/runs.js';
16
+ import { ResponseBodyForRunsGenerateQuery, Run, RunIngest, RunQueryParams, RunQueryV2Params, RunRetrieveParams, RunRetrieveV2Params, RunSchema, RunStatsQueryParams, RunTypeEnum, Runs, RunsFilterDataSourceTypeEnum, RunsItemsCursorPostPagination } from './resources/runs/runs.js';
16
17
  import { SandboxListResponse, SandboxResponse, SandboxStatusResponse, Sandboxes, ServiceURLResponse, SnapshotListResponse, SnapshotResponse } from './resources/sandboxes/sandboxes.js';
17
18
  import { type Fetch } from './internal/builtin-types.js';
18
19
  import { HeadersLike, NullableHeaders } from './internal/headers.js';
@@ -191,12 +192,15 @@ export declare class Langsmith {
191
192
  runs: API.Runs;
192
193
  onlineEvaluators: API.OnlineEvaluators;
193
194
  info: API.Info;
195
+ issues: API.Issues;
194
196
  sandboxes: API.Sandboxes;
195
197
  }
196
198
  export declare namespace Langsmith {
197
199
  export type RequestOptions = Opts.RequestOptions;
198
200
  export import OffsetPaginationTopLevelArray = Pagination.OffsetPaginationTopLevelArray;
199
201
  export { type OffsetPaginationTopLevelArrayParams as OffsetPaginationTopLevelArrayParams, type OffsetPaginationTopLevelArrayResponse as OffsetPaginationTopLevelArrayResponse, };
202
+ export import OffsetPaginationIssues = Pagination.OffsetPaginationIssues;
203
+ export { type OffsetPaginationIssuesParams as OffsetPaginationIssuesParams, type OffsetPaginationIssuesResponse as OffsetPaginationIssuesResponse, };
200
204
  export import OffsetPaginationRepos = Pagination.OffsetPaginationRepos;
201
205
  export { type OffsetPaginationReposParams as OffsetPaginationReposParams, type OffsetPaginationReposResponse as OffsetPaginationReposResponse, };
202
206
  export import OffsetPaginationCommits = Pagination.OffsetPaginationCommits;
@@ -213,8 +217,9 @@ export declare namespace Langsmith {
213
217
  export { type ItemsCursorGetPaginationParams as ItemsCursorGetPaginationParams, type ItemsCursorGetPaginationResponse as ItemsCursorGetPaginationResponse, };
214
218
  export { Sessions as Sessions, type CustomChartsSection as CustomChartsSection, type CustomChartsSectionRequest as CustomChartsSectionRequest, type RunStatsGroupBy as RunStatsGroupBy, type SessionSortableColumns as SessionSortableColumns, type TimedeltaInput as TimedeltaInput, type TracerSession as TracerSession, type TracerSessionWithoutVirtualFields as TracerSessionWithoutVirtualFields, type SessionDeleteResponse as SessionDeleteResponse, type TracerSessionsOffsetPaginationTopLevelArray as TracerSessionsOffsetPaginationTopLevelArray, type SessionCreateParams as SessionCreateParams, type SessionRetrieveParams as SessionRetrieveParams, type SessionUpdateParams as SessionUpdateParams, type SessionListParams as SessionListParams, };
215
219
  export { Datasets as Datasets, type DataType as DataType, type Dataset as Dataset, type DatasetTransformation as DatasetTransformation, type DatasetVersion as DatasetVersion, type FeedbackCreateCoreSchema as FeedbackCreateCoreSchema, type Missing as Missing, type SortByDatasetColumn as SortByDatasetColumn, type DatasetUpdateResponse as DatasetUpdateResponse, type DatasetDeleteResponse as DatasetDeleteResponse, type DatasetCloneResponse as DatasetCloneResponse, type DatasetRetrieveCsvResponse as DatasetRetrieveCsvResponse, type DatasetRetrieveJSONLResponse as DatasetRetrieveJSONLResponse, type DatasetRetrieveOpenAIResponse as DatasetRetrieveOpenAIResponse, type DatasetRetrieveOpenAIFtResponse as DatasetRetrieveOpenAIFtResponse, type DatasetsOffsetPaginationTopLevelArray as DatasetsOffsetPaginationTopLevelArray, type DatasetCreateParams as DatasetCreateParams, type DatasetUpdateParams as DatasetUpdateParams, type DatasetListParams as DatasetListParams, type DatasetCloneParams as DatasetCloneParams, type DatasetRetrieveCsvParams as DatasetRetrieveCsvParams, type DatasetRetrieveJSONLParams as DatasetRetrieveJSONLParams, type DatasetRetrieveOpenAIParams as DatasetRetrieveOpenAIParams, type DatasetRetrieveOpenAIFtParams as DatasetRetrieveOpenAIFtParams, type DatasetRetrieveVersionParams as DatasetRetrieveVersionParams, type DatasetUpdateTagsParams as DatasetUpdateTagsParams, type DatasetUploadParams as DatasetUploadParams, };
216
- export { Runs as Runs, type QueryRunResponse as QueryRunResponse, type ResponseBodyForRunsGenerateQuery as ResponseBodyForRunsGenerateQuery, type Run as Run, type RunSchema as RunSchema, type RunStatsQueryParams as RunStatsQueryParams, type RunTypeEnum as RunTypeEnum, type RunsFilterDataSourceTypeEnum as RunsFilterDataSourceTypeEnum, type QueryRunResponsesItemsCursorPostPagination as QueryRunResponsesItemsCursorPostPagination, type RunQueryV2Params as RunQueryV2Params, type RunRetrieveV2Params as RunRetrieveV2Params, type RunRetrieveParams as RunRetrieveParams, type RunQueryParams as RunQueryParams, };
220
+ export { Runs as Runs, type ResponseBodyForRunsGenerateQuery as ResponseBodyForRunsGenerateQuery, type Run as Run, type RunIngest as RunIngest, type RunSchema as RunSchema, type RunStatsQueryParams as RunStatsQueryParams, type RunTypeEnum as RunTypeEnum, type RunsFilterDataSourceTypeEnum as RunsFilterDataSourceTypeEnum, type RunsItemsCursorPostPagination as RunsItemsCursorPostPagination, type RunQueryV2Params as RunQueryV2Params, type RunRetrieveV2Params as RunRetrieveV2Params, type RunRetrieveParams as RunRetrieveParams, type RunQueryParams as RunQueryParams, };
217
221
  export { OnlineEvaluators as OnlineEvaluators, type BulkDeleteEvaluatorFailedItem as BulkDeleteEvaluatorFailedItem, type BulkDeleteEvaluatorsResponse as BulkDeleteEvaluatorsResponse, type CreateOnlineCodeEvaluatorRequest as CreateOnlineCodeEvaluatorRequest, type CreateOnlineEvaluatorRequest as CreateOnlineEvaluatorRequest, type CreateOnlineEvaluatorResponse as CreateOnlineEvaluatorResponse, type CreateOnlineLlmEvaluatorRequest as CreateOnlineLlmEvaluatorRequest, type GetOnlineEvaluatorSpendResponse as GetOnlineEvaluatorSpendResponse, type OnlineCodeEvaluator as OnlineCodeEvaluator, type OnlineEvaluator as OnlineEvaluator, type OnlineEvaluatorRunRule as OnlineEvaluatorRunRule, type OnlineEvaluatorSpendDay as OnlineEvaluatorSpendDay, type OnlineEvaluatorSpendGroup as OnlineEvaluatorSpendGroup, type OnlineEvaluatorType as OnlineEvaluatorType, type OnlineLlmEvaluator as OnlineLlmEvaluator, type OnlineSpendLimit as OnlineSpendLimit, type UpdateOnlineCodeEvaluatorRequest as UpdateOnlineCodeEvaluatorRequest, type UpdateOnlineEvaluatorRequest as UpdateOnlineEvaluatorRequest, type UpdateOnlineEvaluatorResponse as UpdateOnlineEvaluatorResponse, type UpdateOnlineLlmEvaluatorRequest as UpdateOnlineLlmEvaluatorRequest, type OnlineEvaluatorsOffsetPaginationOnlineEvaluators as OnlineEvaluatorsOffsetPaginationOnlineEvaluators, type OnlineEvaluatorCreateParams as OnlineEvaluatorCreateParams, type OnlineEvaluatorUpdateParams as OnlineEvaluatorUpdateParams, type OnlineEvaluatorListParams as OnlineEvaluatorListParams, type OnlineEvaluatorDeleteParams as OnlineEvaluatorDeleteParams, type OnlineEvaluatorBulkDeleteParams as OnlineEvaluatorBulkDeleteParams, type OnlineEvaluatorSpendParams as OnlineEvaluatorSpendParams, };
218
222
  export { Info as Info, type InfoListResponse as InfoListResponse };
223
+ export { Issues as Issues, type Issue as Issue, type IssuesOffsetPaginationIssues as IssuesOffsetPaginationIssues, type IssueListParams as IssueListParams, };
219
224
  export { Sandboxes as Sandboxes, type SandboxListResponse as SandboxListResponse, type SandboxResponse as SandboxResponse, type SandboxStatusResponse as SandboxStatusResponse, type ServiceURLResponse as ServiceURLResponse, type SnapshotListResponse as SnapshotListResponse, type SnapshotResponse as SnapshotResponse, };
220
225
  }
@@ -27,6 +27,7 @@ import * as Uploads from './core/uploads.js';
27
27
  import * as API from './resources/index.js';
28
28
  import { APIPromise } from './core/api-promise.js';
29
29
  import { Info } from './resources/info.js';
30
+ import { Issues } from './resources/issues.js';
30
31
  import { OnlineEvaluators, } from './resources/online-evaluators.js';
31
32
  import { Sessions, } from './resources/sessions.js';
32
33
  import { Datasets, } from './resources/datasets/datasets.js';
@@ -152,6 +153,12 @@ export class Langsmith {
152
153
  writable: true,
153
154
  value: new API.Info(this)
154
155
  });
156
+ Object.defineProperty(this, "issues", {
157
+ enumerable: true,
158
+ configurable: true,
159
+ writable: true,
160
+ value: new API.Issues(this)
161
+ });
155
162
  Object.defineProperty(this, "sandboxes", {
156
163
  enumerable: true,
157
164
  configurable: true,
@@ -702,4 +709,5 @@ Langsmith.Datasets = Datasets;
702
709
  Langsmith.Runs = Runs;
703
710
  Langsmith.OnlineEvaluators = OnlineEvaluators;
704
711
  Langsmith.Info = Info;
712
+ Langsmith.Issues = Issues;
705
713
  Langsmith.Sandboxes = Sandboxes;
@@ -14,7 +14,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
14
14
  };
15
15
  var _AbstractPage_client;
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ItemsCursorGetPagination = exports.ItemsCursorPostPagination = exports.CursorPagination = exports.OffsetPaginationInsightsClusteringJobs = exports.OffsetPaginationOnlineEvaluators = exports.OffsetPaginationCommits = exports.OffsetPaginationRepos = exports.OffsetPaginationTopLevelArray = exports.PagePromise = exports.AbstractPage = void 0;
17
+ exports.ItemsCursorGetPagination = exports.ItemsCursorPostPagination = exports.CursorPagination = exports.OffsetPaginationInsightsClusteringJobs = exports.OffsetPaginationOnlineEvaluators = exports.OffsetPaginationCommits = exports.OffsetPaginationRepos = exports.OffsetPaginationIssues = exports.OffsetPaginationTopLevelArray = exports.PagePromise = exports.AbstractPage = void 0;
18
18
  const error_js_1 = require("./error.cjs");
19
19
  const parse_js_1 = require("../internal/parse.cjs");
20
20
  const api_promise_js_1 = require("./api-promise.cjs");
@@ -131,6 +131,34 @@ class OffsetPaginationTopLevelArray extends AbstractPage {
131
131
  }
132
132
  }
133
133
  exports.OffsetPaginationTopLevelArray = OffsetPaginationTopLevelArray;
134
+ class OffsetPaginationIssues extends AbstractPage {
135
+ constructor(client, response, body, options) {
136
+ super(client, response, body, options);
137
+ Object.defineProperty(this, "items", {
138
+ enumerable: true,
139
+ configurable: true,
140
+ writable: true,
141
+ value: void 0
142
+ });
143
+ this.items = body || [];
144
+ }
145
+ getPaginatedItems() {
146
+ return this.items ?? [];
147
+ }
148
+ nextPageRequestOptions() {
149
+ const offset = this.options.query.offset ?? 0;
150
+ const length = this.getPaginatedItems().length;
151
+ const currentCount = offset + length;
152
+ return {
153
+ ...this.options,
154
+ query: {
155
+ ...(0, values_js_1.maybeObj)(this.options.query),
156
+ offset: currentCount,
157
+ },
158
+ };
159
+ }
160
+ }
161
+ exports.OffsetPaginationIssues = OffsetPaginationIssues;
134
162
  class OffsetPaginationRepos extends AbstractPage {
135
163
  constructor(client, response, body, options) {
136
164
  super(client, response, body, options);
@@ -47,6 +47,17 @@ export declare class OffsetPaginationTopLevelArray<Item> extends AbstractPage<It
47
47
  getPaginatedItems(): Item[];
48
48
  nextPageRequestOptions(): PageRequestOptions | null;
49
49
  }
50
+ export type OffsetPaginationIssuesResponse<Item> = Item[];
51
+ export interface OffsetPaginationIssuesParams {
52
+ offset?: number;
53
+ limit?: number;
54
+ }
55
+ export declare class OffsetPaginationIssues<Item> extends AbstractPage<Item> {
56
+ items: Array<Item>;
57
+ constructor(client: Langsmith, response: Response, body: OffsetPaginationIssuesResponse<Item>, options: FinalRequestOptions);
58
+ getPaginatedItems(): Item[];
59
+ nextPageRequestOptions(): PageRequestOptions | null;
60
+ }
50
61
  export interface OffsetPaginationReposResponse<Item> {
51
62
  repos: Array<Item>;
52
63
  total: number;
@@ -125,6 +125,33 @@ export class OffsetPaginationTopLevelArray extends AbstractPage {
125
125
  };
126
126
  }
127
127
  }
128
+ export class OffsetPaginationIssues extends AbstractPage {
129
+ constructor(client, response, body, options) {
130
+ super(client, response, body, options);
131
+ Object.defineProperty(this, "items", {
132
+ enumerable: true,
133
+ configurable: true,
134
+ writable: true,
135
+ value: void 0
136
+ });
137
+ this.items = body || [];
138
+ }
139
+ getPaginatedItems() {
140
+ return this.items ?? [];
141
+ }
142
+ nextPageRequestOptions() {
143
+ const offset = this.options.query.offset ?? 0;
144
+ const length = this.getPaginatedItems().length;
145
+ const currentCount = offset + length;
146
+ return {
147
+ ...this.options,
148
+ query: {
149
+ ...maybeObj(this.options.query),
150
+ offset: currentCount,
151
+ },
152
+ };
153
+ }
154
+ }
128
155
  export class OffsetPaginationRepos extends AbstractPage {
129
156
  constructor(client, response, body, options) {
130
157
  super(client, response, body, options);
@@ -50,7 +50,7 @@ export interface ExperimentRunCreateResponse {
50
50
  /**
51
51
  * `runs` is the list of experiment runs produced for this example.
52
52
  */
53
- runs?: Array<RunsAPI.QueryRunResponse>;
53
+ runs?: Array<RunsAPI.Run>;
54
54
  /**
55
55
  * `source_run_id` is the run UUID the example was created from, if any.
56
56
  */
@@ -37,6 +37,9 @@ export interface ExampleWithRunsCh {
37
37
  [key: string]: unknown;
38
38
  } | null;
39
39
  source_run_id?: string | null;
40
+ source_run_start_time?: string | null;
41
+ source_session_id?: string | null;
42
+ source_trace_id?: string | null;
40
43
  }
41
44
  export declare namespace ExampleWithRunsCh {
42
45
  /**
@@ -2,11 +2,13 @@
2
2
  // @ts-nocheck
3
3
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.Sessions = exports.Sandboxes = exports.Runs = exports.OnlineEvaluators = exports.Info = exports.Datasets = void 0;
5
+ exports.Sessions = exports.Sandboxes = exports.Runs = exports.OnlineEvaluators = exports.Issues = exports.Info = exports.Datasets = void 0;
6
6
  var datasets_js_1 = require("./datasets/datasets.cjs");
7
7
  Object.defineProperty(exports, "Datasets", { enumerable: true, get: function () { return datasets_js_1.Datasets; } });
8
8
  var info_js_1 = require("./info.cjs");
9
9
  Object.defineProperty(exports, "Info", { enumerable: true, get: function () { return info_js_1.Info; } });
10
+ var issues_js_1 = require("./issues.cjs");
11
+ Object.defineProperty(exports, "Issues", { enumerable: true, get: function () { return issues_js_1.Issues; } });
10
12
  var online_evaluators_js_1 = require("./online-evaluators.cjs");
11
13
  Object.defineProperty(exports, "OnlineEvaluators", { enumerable: true, get: function () { return online_evaluators_js_1.OnlineEvaluators; } });
12
14
  var runs_js_1 = require("./runs/runs.cjs");
@@ -1,6 +1,7 @@
1
1
  export { Datasets, type DataType, type Dataset, type DatasetTransformation, type DatasetVersion, type FeedbackCreateCoreSchema, type Missing, type SortByDatasetColumn, type DatasetUpdateResponse, type DatasetDeleteResponse, type DatasetCloneResponse, type DatasetRetrieveCsvResponse, type DatasetRetrieveJSONLResponse, type DatasetRetrieveOpenAIResponse, type DatasetRetrieveOpenAIFtResponse, type DatasetCreateParams, type DatasetUpdateParams, type DatasetListParams, type DatasetCloneParams, type DatasetRetrieveCsvParams, type DatasetRetrieveJSONLParams, type DatasetRetrieveOpenAIParams, type DatasetRetrieveOpenAIFtParams, type DatasetRetrieveVersionParams, type DatasetUpdateTagsParams, type DatasetUploadParams, type DatasetVersionsOffsetPaginationTopLevelArray, type DatasetsOffsetPaginationTopLevelArray, } from './datasets/datasets.js';
2
2
  export { Info, type InfoListResponse } from './info.js';
3
+ export { Issues, type Issue, type IssueListParams, type IssuesOffsetPaginationIssues } from './issues.js';
3
4
  export { OnlineEvaluators, type BulkDeleteEvaluatorFailedItem, type BulkDeleteEvaluatorsResponse, type CreateOnlineCodeEvaluatorRequest, type CreateOnlineEvaluatorRequest, type CreateOnlineEvaluatorResponse, type CreateOnlineLlmEvaluatorRequest, type GetOnlineEvaluatorSpendResponse, type OnlineCodeEvaluator, type OnlineEvaluator, type OnlineEvaluatorRunRule, type OnlineEvaluatorSpendDay, type OnlineEvaluatorSpendGroup, type OnlineEvaluatorType, type OnlineLlmEvaluator, type OnlineSpendLimit, type UpdateOnlineCodeEvaluatorRequest, type UpdateOnlineEvaluatorRequest, type UpdateOnlineEvaluatorResponse, type UpdateOnlineLlmEvaluatorRequest, type OnlineEvaluatorCreateParams, type OnlineEvaluatorUpdateParams, type OnlineEvaluatorListParams, type OnlineEvaluatorDeleteParams, type OnlineEvaluatorBulkDeleteParams, type OnlineEvaluatorSpendParams, type OnlineEvaluatorsOffsetPaginationOnlineEvaluators, } from './online-evaluators.js';
4
- export { Runs, type QueryRunResponse, type ResponseBodyForRunsGenerateQuery, type Run, type RunSchema, type RunStatsQueryParams, type RunTypeEnum, type RunsFilterDataSourceTypeEnum, type RunQueryV2Params, type RunRetrieveV2Params, type RunRetrieveParams, type RunQueryParams, type QueryRunResponsesItemsCursorPostPagination, } from './runs/runs.js';
5
+ export { Runs, type ResponseBodyForRunsGenerateQuery, type Run, type RunIngest, type RunSchema, type RunStatsQueryParams, type RunTypeEnum, type RunsFilterDataSourceTypeEnum, type RunQueryV2Params, type RunRetrieveV2Params, type RunRetrieveParams, type RunQueryParams, type RunsItemsCursorPostPagination, } from './runs/runs.js';
5
6
  export { Sandboxes, type SandboxListResponse, type SandboxResponse, type SandboxStatusResponse, type ServiceURLResponse, type SnapshotListResponse, type SnapshotResponse, } from './sandboxes/sandboxes.js';
6
7
  export { Sessions, type CustomChartsSection, type CustomChartsSectionRequest, type RunStatsGroupBy, type SessionSortableColumns, type TimedeltaInput, type TracerSession, type TracerSessionWithoutVirtualFields, type SessionDeleteResponse, type SessionCreateParams, type SessionRetrieveParams, type SessionUpdateParams, type SessionListParams, type TracerSessionsOffsetPaginationTopLevelArray, } from './sessions.js';
@@ -2,6 +2,7 @@
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  export { Datasets, } from './datasets/datasets.js';
4
4
  export { Info } from './info.js';
5
+ export { Issues } from './issues.js';
5
6
  export { OnlineEvaluators, } from './online-evaluators.js';
6
7
  export { Runs, } from './runs/runs.js';
7
8
  export { Sandboxes, } from './sandboxes/sandboxes.js';
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Issues = void 0;
6
+ const resource_js_1 = require("../core/resource.cjs");
7
+ const pagination_js_1 = require("../core/pagination.cjs");
8
+ const path_js_1 = require("../internal/utils/path.cjs");
9
+ class Issues extends resource_js_1.APIResource {
10
+ /**
11
+ * **Beta:** This endpoint is in active development and may change without notice.
12
+ *
13
+ * Returns one issue for the authenticated tenant.
14
+ */
15
+ retrieve(id, options) {
16
+ return this._client.get((0, path_js_1.path) `/v1/platform/issues/${id}`, options);
17
+ }
18
+ /**
19
+ * **Beta:** This endpoint is in active development and may change without notice.
20
+ *
21
+ * Returns issues for the authenticated tenant, optionally filtered by session,
22
+ * status, severity, tag, or last modified time.
23
+ */
24
+ list(query = {}, options) {
25
+ return this._client.getAPIList('/v1/platform/issues', (pagination_js_1.OffsetPaginationIssues), {
26
+ query,
27
+ ...options,
28
+ });
29
+ }
30
+ }
31
+ exports.Issues = Issues;
@@ -0,0 +1,78 @@
1
+ import { APIResource } from '../core/resource.js';
2
+ import { APIPromise } from '../core/api-promise.js';
3
+ import { OffsetPaginationIssues, type OffsetPaginationIssuesParams, PagePromise } from '../core/pagination.js';
4
+ import { RequestOptions } from '../internal/request-options.js';
5
+ export declare class Issues extends APIResource {
6
+ /**
7
+ * **Beta:** This endpoint is in active development and may change without notice.
8
+ *
9
+ * Returns one issue for the authenticated tenant.
10
+ */
11
+ retrieve(id: string, options?: RequestOptions): APIPromise<Issue>;
12
+ /**
13
+ * **Beta:** This endpoint is in active development and may change without notice.
14
+ *
15
+ * Returns issues for the authenticated tenant, optionally filtered by session,
16
+ * status, severity, tag, or last modified time.
17
+ */
18
+ list(query?: IssueListParams | null | undefined, options?: RequestOptions): PagePromise<IssuesOffsetPaginationIssues, Issue>;
19
+ }
20
+ export type IssuesOffsetPaginationIssues = OffsetPaginationIssues<Issue>;
21
+ export interface Issue {
22
+ id?: string;
23
+ actions?: unknown;
24
+ created_at?: string;
25
+ description?: string;
26
+ first_seen_at?: string;
27
+ fix_branch?: string;
28
+ fix_dispatched_at?: string;
29
+ fix_pr_number?: number;
30
+ fix_prompt?: string;
31
+ fix_verification?: unknown;
32
+ last_seen_at?: string;
33
+ name?: string;
34
+ proposed_context_fixes?: Array<unknown>;
35
+ proposed_examples?: Array<unknown>;
36
+ proposed_fix?: string;
37
+ proposed_prompt_fixes?: Array<unknown>;
38
+ session_id?: string;
39
+ severity?: 0 | 1 | 2 | 3;
40
+ status?: 'open' | 'completed' | 'ignored';
41
+ tags?: Array<string>;
42
+ tenant_id?: string;
43
+ traces?: unknown;
44
+ updated_at?: string;
45
+ }
46
+ export interface IssueListParams extends OffsetPaginationIssuesParams {
47
+ /**
48
+ * Filter by session ID (UUID)
49
+ */
50
+ session_id?: string;
51
+ /**
52
+ * Filter by session name (exact match)
53
+ */
54
+ session_name?: string;
55
+ /**
56
+ * Filter by severity
57
+ */
58
+ severity?: 0 | 1 | 2 | 3;
59
+ /**
60
+ * Sort field
61
+ */
62
+ sort_by?: 'created_at' | 'updated_at' | 'severity';
63
+ /**
64
+ * Filter by status
65
+ */
66
+ status?: 'open' | 'completed' | 'ignored';
67
+ /**
68
+ * Filter by tag (exact match)
69
+ */
70
+ tag?: string;
71
+ /**
72
+ * Return only issues updated at or after this RFC3339 timestamp
73
+ */
74
+ updated_at?: string;
75
+ }
76
+ export declare namespace Issues {
77
+ export { type Issue as Issue, type IssuesOffsetPaginationIssues as IssuesOffsetPaginationIssues, type IssueListParams as IssueListParams, };
78
+ }
@@ -0,0 +1,27 @@
1
+ // @ts-nocheck
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ import { APIResource } from '../core/resource.js';
4
+ import { OffsetPaginationIssues } from '../core/pagination.js';
5
+ import { path } from '../internal/utils/path.js';
6
+ export class Issues extends APIResource {
7
+ /**
8
+ * **Beta:** This endpoint is in active development and may change without notice.
9
+ *
10
+ * Returns one issue for the authenticated tenant.
11
+ */
12
+ retrieve(id, options) {
13
+ return this._client.get(path `/v1/platform/issues/${id}`, options);
14
+ }
15
+ /**
16
+ * **Beta:** This endpoint is in active development and may change without notice.
17
+ *
18
+ * Returns issues for the authenticated tenant, optionally filtered by session,
19
+ * status, severity, tag, or last modified time.
20
+ */
21
+ list(query = {}, options) {
22
+ return this._client.getAPIList('/v1/platform/issues', (OffsetPaginationIssues), {
23
+ query,
24
+ ...options,
25
+ });
26
+ }
27
+ }
@@ -1,2 +1,2 @@
1
1
  export { Rules } from './rules.js';
2
- export { Runs, type QueryRunResponse, type ResponseBodyForRunsGenerateQuery, type Run, type RunSchema, type RunStatsQueryParams, type RunTypeEnum, type RunsFilterDataSourceTypeEnum, type RunQueryV2Params, type RunRetrieveV2Params, type RunRetrieveParams, type RunQueryParams, type QueryRunResponsesItemsCursorPostPagination, } from './runs.js';
2
+ export { Runs, type ResponseBodyForRunsGenerateQuery, type Run, type RunIngest, type RunSchema, type RunStatsQueryParams, type RunTypeEnum, type RunsFilterDataSourceTypeEnum, type RunQueryV2Params, type RunRetrieveV2Params, type RunRetrieveParams, type RunQueryParams, type RunsItemsCursorPostPagination, } from './runs.js';
@@ -72,7 +72,7 @@ class Runs extends resource_js_1.APIResource {
72
72
  * @example
73
73
  * ```ts
74
74
  * // Automatically fetches more pages as needed.
75
- * for await (const queryRunResponse of client.runs.queryV2()) {
75
+ * for await (const run of client.runs.queryV2()) {
76
76
  * // ...
77
77
  * }
78
78
  * ```
@@ -93,7 +93,7 @@ class Runs extends resource_js_1.APIResource {
93
93
  *
94
94
  * @example
95
95
  * ```ts
96
- * const queryRunResponse = await client.runs.retrieveV2(
96
+ * const run = await client.runs.retrieveV2(
97
97
  * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
98
98
  * {
99
99
  * project_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
@@ -15,12 +15,12 @@ export declare class Runs extends APIResource {
15
15
  * @example
16
16
  * ```ts
17
17
  * // Automatically fetches more pages as needed.
18
- * for await (const queryRunResponse of client.runs.queryV2()) {
18
+ * for await (const run of client.runs.queryV2()) {
19
19
  * // ...
20
20
  * }
21
21
  * ```
22
22
  */
23
- queryV2(params: RunQueryV2Params, options?: RequestOptions): PagePromise<QueryRunResponsesItemsCursorPostPagination, QueryRunResponse>;
23
+ queryV2(params: RunQueryV2Params, options?: RequestOptions): PagePromise<RunsItemsCursorPostPagination, Run>;
24
24
  /**
25
25
  * **Alpha:** The request and response contract may change; Returns one run by ID
26
26
  * for the given session and start_time. Use the `selects` query parameter
@@ -28,7 +28,7 @@ export declare class Runs extends APIResource {
28
28
  *
29
29
  * @example
30
30
  * ```ts
31
- * const queryRunResponse = await client.runs.retrieveV2(
31
+ * const run = await client.runs.retrieveV2(
32
32
  * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
33
33
  * {
34
34
  * project_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
@@ -37,12 +37,18 @@ export declare class Runs extends APIResource {
37
37
  * );
38
38
  * ```
39
39
  */
40
- retrieveV2(runID: string, params: RunRetrieveV2Params, options?: RequestOptions): APIPromise<QueryRunResponse>;
41
- retrieve: (runID: string, params: RunRetrieveV2Params, options?: RequestOptions) => APIPromise<QueryRunResponse>;
42
- query: (params: RunQueryV2Params, options?: RequestOptions) => PagePromise<QueryRunResponsesItemsCursorPostPagination, QueryRunResponse>;
40
+ retrieveV2(runID: string, params: RunRetrieveV2Params, options?: RequestOptions): APIPromise<Run>;
41
+ retrieve: (runID: string, params: RunRetrieveV2Params, options?: RequestOptions) => APIPromise<Run>;
42
+ query: (params: RunQueryV2Params, options?: RequestOptions) => PagePromise<RunsItemsCursorPostPagination, Run>;
43
43
  }
44
- export type QueryRunResponsesItemsCursorPostPagination = ItemsCursorPostPagination<QueryRunResponse>;
45
- export interface QueryRunResponse {
44
+ export type RunsItemsCursorPostPagination = ItemsCursorPostPagination<Run>;
45
+ export interface ResponseBodyForRunsGenerateQuery {
46
+ feedback_urls: {
47
+ [key: string]: string;
48
+ };
49
+ filter: string;
50
+ }
51
+ export interface Run {
46
52
  /**
47
53
  * `id` is this run's UUID.
48
54
  */
@@ -67,13 +73,13 @@ export interface QueryRunResponse {
67
73
  * `completion_cost`. Categories mirror `completion_token_details`. Returned only
68
74
  * when the `COMPLETION_COST_DETAILS` field is requested.
69
75
  */
70
- completion_cost_details?: QueryRunResponse.CompletionCostDetails;
76
+ completion_cost_details?: Run.CompletionCostDetails;
71
77
  /**
72
78
  * `completion_token_details` is the per-category breakdown of `completion_tokens`.
73
79
  * Category names are model-specific (for example `reasoning`, `audio`). Returned
74
80
  * only when the `COMPLETION_TOKEN_DETAILS` field is requested.
75
81
  */
76
- completion_token_details?: QueryRunResponse.CompletionTokenDetails;
82
+ completion_token_details?: Run.CompletionTokenDetails;
77
83
  /**
78
84
  * `completion_tokens` is the completion-side token count.
79
85
  */
@@ -98,7 +104,7 @@ export interface QueryRunResponse {
98
104
  /**
99
105
  * `events` is the ordered list of run events (for example streaming tokens).
100
106
  */
101
- events?: Array<QueryRunResponse.Event>;
107
+ events?: Array<Run.Event>;
102
108
  /**
103
109
  * `extra` is additional runtime JSON attached to the run.
104
110
  */
@@ -107,7 +113,7 @@ export interface QueryRunResponse {
107
113
  * `feedback_stats` aggregates feedback scores keyed by feedback key.
108
114
  */
109
115
  feedback_stats?: {
110
- [key: string]: QueryRunResponse.FeedbackStats;
116
+ [key: string]: Run.FeedbackStats;
111
117
  };
112
118
  /**
113
119
  * `first_token_time` is when the first output token was produced (RFC3339
@@ -179,13 +185,13 @@ export interface QueryRunResponse {
179
185
  * Categories mirror `prompt_token_details`. Returned only when the
180
186
  * `PROMPT_COST_DETAILS` field is requested.
181
187
  */
182
- prompt_cost_details?: QueryRunResponse.PromptCostDetails;
188
+ prompt_cost_details?: Run.PromptCostDetails;
183
189
  /**
184
190
  * `prompt_token_details` is the per-category breakdown of `prompt_tokens`.
185
191
  * Category names are model-specific (for example `cache_read`, `cache_write`).
186
192
  * Returned only when the `PROMPT_TOKEN_DETAILS` field is requested.
187
193
  */
188
- prompt_token_details?: QueryRunResponse.PromptTokenDetails;
194
+ prompt_token_details?: Run.PromptTokenDetails;
189
195
  /**
190
196
  * `prompt_tokens` is the prompt-side token count.
191
197
  */
@@ -249,7 +255,7 @@ export interface QueryRunResponse {
249
255
  */
250
256
  trace_id?: string;
251
257
  }
252
- export declare namespace QueryRunResponse {
258
+ export declare namespace Run {
253
259
  /**
254
260
  * `completion_cost_details` is the per-category USD breakdown of
255
261
  * `completion_cost`. Categories mirror `completion_token_details`. Returned only
@@ -389,13 +395,7 @@ export declare namespace QueryRunResponse {
389
395
  };
390
396
  }
391
397
  }
392
- export interface ResponseBodyForRunsGenerateQuery {
393
- feedback_urls: {
394
- [key: string]: string;
395
- };
396
- filter: string;
397
- }
398
- export interface Run {
398
+ export interface RunIngest {
399
399
  id?: string;
400
400
  dotted_order?: string;
401
401
  end_time?: string;
@@ -795,6 +795,6 @@ export interface RunQueryParams extends ItemsCursorPostPaginationParams {
795
795
  Accept?: string;
796
796
  }
797
797
  export declare namespace Runs {
798
- export { type QueryRunResponse as QueryRunResponse, type ResponseBodyForRunsGenerateQuery as ResponseBodyForRunsGenerateQuery, type Run as Run, type RunSchema as RunSchema, type RunStatsQueryParams as RunStatsQueryParams, type RunTypeEnum as RunTypeEnum, type RunsFilterDataSourceTypeEnum as RunsFilterDataSourceTypeEnum, type QueryRunResponsesItemsCursorPostPagination as QueryRunResponsesItemsCursorPostPagination, type RunQueryV2Params as RunQueryV2Params, type RunRetrieveV2Params as RunRetrieveV2Params, type RunRetrieveParams as RunRetrieveParams, type RunQueryParams as RunQueryParams, };
798
+ export { type ResponseBodyForRunsGenerateQuery as ResponseBodyForRunsGenerateQuery, type Run as Run, type RunIngest as RunIngest, type RunSchema as RunSchema, type RunStatsQueryParams as RunStatsQueryParams, type RunTypeEnum as RunTypeEnum, type RunsFilterDataSourceTypeEnum as RunsFilterDataSourceTypeEnum, type RunsItemsCursorPostPagination as RunsItemsCursorPostPagination, type RunQueryV2Params as RunQueryV2Params, type RunRetrieveV2Params as RunRetrieveV2Params, type RunRetrieveParams as RunRetrieveParams, type RunQueryParams as RunQueryParams, };
799
799
  export { Rules as Rules };
800
800
  }
@@ -36,7 +36,7 @@ export class Runs extends APIResource {
36
36
  * @example
37
37
  * ```ts
38
38
  * // Automatically fetches more pages as needed.
39
- * for await (const queryRunResponse of client.runs.queryV2()) {
39
+ * for await (const run of client.runs.queryV2()) {
40
40
  * // ...
41
41
  * }
42
42
  * ```
@@ -57,7 +57,7 @@ export class Runs extends APIResource {
57
57
  *
58
58
  * @example
59
59
  * ```ts
60
- * const queryRunResponse = await client.runs.retrieveV2(
60
+ * const run = await client.runs.retrieveV2(
61
61
  * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
62
62
  * {
63
63
  * project_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
@@ -381,7 +381,7 @@ export interface RunStatsGroupBy {
381
381
  max_groups?: number;
382
382
  path?: string | null;
383
383
  }
384
- export type SessionSortableColumns = 'name' | 'start_time' | 'last_run_start_time' | 'latency_p50' | 'latency_p99' | 'error_rate' | 'feedback' | 'runs_count';
384
+ export type SessionSortableColumns = 'name' | 'start_time' | 'last_run_start_time' | 'latency_p50' | 'latency_p99' | 'error_rate' | 'feedback';
385
385
  /**
386
386
  * Timedelta input.
387
387
  */
@@ -144,6 +144,7 @@ class StreamManager {
144
144
  this.namespaces["root"].extra.metadata.is_error = message.is_error;
145
145
  this.namespaces["root"].extra.metadata.num_turns = message.num_turns;
146
146
  this.namespaces["root"].extra.metadata.session_id = message.session_id;
147
+ this.namespaces["root"].extra.metadata.thread_id = message.session_id;
147
148
  this.namespaces["root"].extra.metadata.duration_ms = message.duration_ms;
148
149
  this.namespaces["root"].extra.metadata.duration_api_ms =
149
150
  message.duration_api_ms;
@@ -141,6 +141,7 @@ export class StreamManager {
141
141
  this.namespaces["root"].extra.metadata.is_error = message.is_error;
142
142
  this.namespaces["root"].extra.metadata.num_turns = message.num_turns;
143
143
  this.namespaces["root"].extra.metadata.session_id = message.session_id;
144
+ this.namespaces["root"].extra.metadata.thread_id = message.session_id;
144
145
  this.namespaces["root"].extra.metadata.duration_ms = message.duration_ms;
145
146
  this.namespaces["root"].extra.metadata.duration_api_ms =
146
147
  message.duration_api_ms;
package/dist/index.cjs CHANGED
@@ -20,6 +20,6 @@ Object.defineProperty(exports, "PromptCache", { enumerable: true, get: function
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
22
  // Update using pnpm bump-version
23
- exports.__version__ = "0.7.14";
23
+ exports.__version__ = "0.7.15";
24
24
  // Metadata key to hide a traced run from LangSmith's Messages View.
25
25
  exports.LS_MESSAGE_VIEW_EXCLUDE = "ls_message_view_exclude";
package/dist/index.d.ts CHANGED
@@ -6,5 +6,5 @@ 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.14";
9
+ export declare const __version__ = "0.7.15";
10
10
  export declare const LS_MESSAGE_VIEW_EXCLUDE: "ls_message_view_exclude";
package/dist/index.js CHANGED
@@ -6,6 +6,6 @@ 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
8
  // Update using pnpm bump-version
9
- export const __version__ = "0.7.14";
9
+ export const __version__ = "0.7.15";
10
10
  // Metadata key to hide a traced run from LangSmith's Messages View.
11
11
  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.6rc1";
4
+ exports._MIN_BACKEND_VERSION = "0.16.10rc1";
@@ -1 +1 @@
1
- export declare const _MIN_BACKEND_VERSION = "0.16.6rc1";
1
+ export declare const _MIN_BACKEND_VERSION = "0.16.10rc1";
@@ -1 +1 @@
1
- export const _MIN_BACKEND_VERSION = "0.16.6rc1";
1
+ export const _MIN_BACKEND_VERSION = "0.16.10rc1";
@@ -24,7 +24,7 @@ const isJsDom = () => (typeof window !== "undefined" && window.name === "nodejs"
24
24
  exports.isJsDom = isJsDom;
25
25
  // Supabase Edge Function provides a `Deno` global object
26
26
  // without `version` property
27
- const isDeno = () => typeof Deno !== "undefined";
27
+ const isDeno = () => typeof globalThis.Deno !== "undefined";
28
28
  exports.isDeno = isDeno;
29
29
  // Mark not-as-node if in Supabase Edge Function
30
30
  const isNode = () => typeof process !== "undefined" &&
@@ -1,10 +1,3 @@
1
- declare global {
2
- const Deno: {
3
- version: {
4
- deno: string;
5
- };
6
- } | undefined;
7
- }
8
1
  export declare const isBrowser: () => boolean;
9
2
  export declare const isWebWorker: () => boolean;
10
3
  export declare const isJsDom: () => boolean;
package/dist/utils/env.js CHANGED
@@ -9,7 +9,7 @@ export const isJsDom = () => (typeof window !== "undefined" && window.name === "
9
9
  (typeof navigator !== "undefined" && navigator.userAgent.includes("jsdom"));
10
10
  // Supabase Edge Function provides a `Deno` global object
11
11
  // without `version` property
12
- export const isDeno = () => typeof Deno !== "undefined";
12
+ export const isDeno = () => typeof globalThis.Deno !== "undefined";
13
13
  // Mark not-as-node if in Supabase Edge Function
14
14
  export const isNode = () => typeof process !== "undefined" &&
15
15
  typeof process.versions !== "undefined" &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langsmith",
3
- "version": "0.7.14",
3
+ "version": "0.7.15",
4
4
  "description": "Client library to connect to the LangSmith Observability and Evaluation Platform.",
5
5
  "packageManager": "pnpm@10.33.0",
6
6
  "files": [
@@ -156,12 +156,12 @@
156
156
  "p-queue": "6.6.2"
157
157
  },
158
158
  "devDependencies": {
159
- "@ai-sdk/openai": "4.0.0-beta.74",
160
- "@ai-sdk/provider": "4.0.0-beta.19",
159
+ "@ai-sdk/openai": "4.0.4",
160
+ "@ai-sdk/provider": "4.0.1",
161
161
  "@ai-sdk/anthropic": "4.0.0-beta.67",
162
162
  "@anthropic-ai/claude-agent-sdk": "^0.3.150",
163
163
  "@anthropic-ai/sdk": "^0.98.0",
164
- "@babel/preset-env": "^7.22.4",
164
+ "@babel/preset-env": "^8.0.2",
165
165
  "@faker-js/faker": "^8.4.1",
166
166
  "@google/genai": "^2.0.1",
167
167
  "@jest/globals": "^30.4.1",
@@ -169,11 +169,11 @@
169
169
  "@langchain/core": "^0.3.72",
170
170
  "@langchain/langgraph": "^0.3.6",
171
171
  "@langchain/openai": "^0.6.17",
172
- "@openai/agents": "^0.11.5",
172
+ "@openai/agents": "^0.12.0",
173
173
  "@opentelemetry/api": "^1.9.0",
174
- "@opentelemetry/auto-instrumentations-node": "^0.76.0",
174
+ "@opentelemetry/auto-instrumentations-node": "^0.77.0",
175
175
  "@opentelemetry/context-async-hooks": "^2.6.1",
176
- "@opentelemetry/sdk-node": "^0.218.0",
176
+ "@opentelemetry/sdk-node": "^0.219.0",
177
177
  "@opentelemetry/sdk-trace-base": "^2.0.0",
178
178
  "@opentelemetry/sdk-trace-node": "^2.0.0",
179
179
  "@tsconfig/recommended": "^1.0.2",
@@ -182,8 +182,8 @@
182
182
  "@types/node-fetch": "^2.6.12",
183
183
  "@types/semver": "^7.7.1",
184
184
  "@types/ws": "^8.18.1",
185
- "@typescript-eslint/eslint-plugin": "^5.59.8",
186
- "@typescript-eslint/parser": "^5.59.8",
185
+ "@typescript-eslint/eslint-plugin": "^8.62.1",
186
+ "@typescript-eslint/parser": "^8.62.1",
187
187
  "ai": "7.0.0-beta.178",
188
188
  "babel-jest": "^30.2.0",
189
189
  "cross-env": "^10.1.0",
@@ -194,7 +194,7 @@
194
194
  "msw": "^2.11.2",
195
195
  "node-fetch": "^3.3.2",
196
196
  "openai": "^6.18.0",
197
- "oxfmt": "^0.47.0",
197
+ "oxfmt": "^0.57.0",
198
198
  "oxlint": "^1.62.0",
199
199
  "semver": "^7.7.4",
200
200
  "ts-jest": "^29.1.0",