langsmith 0.7.14 → 0.7.16

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 (61) hide show
  1. package/dist/_openapi_client/client.cjs +9 -1
  2. package/dist/_openapi_client/client.d.ts +10 -5
  3. package/dist/_openapi_client/client.js +9 -1
  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/datasets.cjs +0 -130
  8. package/dist/_openapi_client/resources/datasets/datasets.d.ts +3 -271
  9. package/dist/_openapi_client/resources/datasets/datasets.js +0 -130
  10. package/dist/_openapi_client/resources/datasets/experiment-runs.cjs +1 -1
  11. package/dist/_openapi_client/resources/datasets/experiment-runs.d.ts +9 -9
  12. package/dist/_openapi_client/resources/datasets/experiment-runs.js +1 -1
  13. package/dist/_openapi_client/resources/index.cjs +4 -2
  14. package/dist/_openapi_client/resources/index.d.ts +3 -2
  15. package/dist/_openapi_client/resources/index.js +2 -1
  16. package/dist/_openapi_client/resources/issues.cjs +31 -0
  17. package/dist/_openapi_client/resources/issues.d.ts +78 -0
  18. package/dist/_openapi_client/resources/issues.js +27 -0
  19. package/dist/_openapi_client/resources/runs.cjs +69 -15
  20. package/dist/_openapi_client/resources/runs.d.ts +806 -1
  21. package/dist/_openapi_client/resources/runs.js +67 -1
  22. package/dist/_openapi_client/resources/sessions.d.ts +1 -1
  23. package/dist/client.cjs +1 -5
  24. package/dist/client.d.ts +2 -5
  25. package/dist/client.js +1 -5
  26. package/dist/experimental/anthropic/context.cjs +1 -0
  27. package/dist/experimental/anthropic/context.js +1 -0
  28. package/dist/index.cjs +1 -1
  29. package/dist/index.d.ts +1 -1
  30. package/dist/index.js +1 -1
  31. package/dist/utils/constants.cjs +1 -1
  32. package/dist/utils/constants.d.ts +1 -1
  33. package/dist/utils/constants.js +1 -1
  34. package/dist/utils/env.cjs +1 -1
  35. package/dist/utils/env.d.ts +0 -7
  36. package/dist/utils/env.js +1 -1
  37. package/package.json +10 -10
  38. package/dist/_openapi_client/resources/datasets/comparative.cjs +0 -22
  39. package/dist/_openapi_client/resources/datasets/comparative.d.ts +0 -55
  40. package/dist/_openapi_client/resources/datasets/comparative.js +0 -18
  41. package/dist/_openapi_client/resources/datasets/runs.cjs +0 -22
  42. package/dist/_openapi_client/resources/datasets/runs.d.ts +0 -172
  43. package/dist/_openapi_client/resources/datasets/runs.js +0 -18
  44. package/dist/_openapi_client/resources/datasets/share.cjs +0 -32
  45. package/dist/_openapi_client/resources/datasets/share.d.ts +0 -28
  46. package/dist/_openapi_client/resources/datasets/share.js +0 -28
  47. package/dist/_openapi_client/resources/datasets/splits.cjs +0 -22
  48. package/dist/_openapi_client/resources/datasets/splits.d.ts +0 -30
  49. package/dist/_openapi_client/resources/datasets/splits.js +0 -18
  50. package/dist/_openapi_client/resources/datasets/versions.cjs +0 -23
  51. package/dist/_openapi_client/resources/datasets/versions.d.ts +0 -36
  52. package/dist/_openapi_client/resources/datasets/versions.js +0 -19
  53. package/dist/_openapi_client/resources/runs/index.cjs +0 -9
  54. package/dist/_openapi_client/resources/runs/index.d.ts +0 -2
  55. package/dist/_openapi_client/resources/runs/index.js +0 -4
  56. package/dist/_openapi_client/resources/runs/rules.cjs +0 -9
  57. package/dist/_openapi_client/resources/runs/rules.d.ts +0 -3
  58. package/dist/_openapi_client/resources/runs/rules.js +0 -5
  59. package/dist/_openapi_client/resources/runs/runs.cjs +0 -115
  60. package/dist/_openapi_client/resources/runs/runs.d.ts +0 -800
  61. package/dist/_openapi_client/resources/runs/runs.js +0 -78
@@ -1,78 +0,0 @@
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 * as RulesAPI from './rules.js';
5
- import { Rules } from './rules.js';
6
- import { ItemsCursorPostPagination, } from '../../core/pagination.js';
7
- import { buildHeaders } from '../../internal/headers.js';
8
- import { path } from '../../internal/utils/path.js';
9
- export class Runs extends APIResource {
10
- constructor() {
11
- super(...arguments);
12
- Object.defineProperty(this, "rules", {
13
- enumerable: true,
14
- configurable: true,
15
- writable: true,
16
- value: new RulesAPI.Rules(this._client)
17
- });
18
- Object.defineProperty(this, "retrieve", {
19
- enumerable: true,
20
- configurable: true,
21
- writable: true,
22
- value: this.retrieveV2
23
- });
24
- Object.defineProperty(this, "query", {
25
- enumerable: true,
26
- configurable: true,
27
- writable: true,
28
- value: this.queryV2
29
- });
30
- }
31
- /**
32
- * **Alpha:** The request and response contract may change; Returns a paginated
33
- * list of runs for the given projects within min/max start_time. Supports filters,
34
- * cursor pagination, and `selects` to select fields to return.
35
- *
36
- * @example
37
- * ```ts
38
- * // Automatically fetches more pages as needed.
39
- * for await (const queryRunResponse of client.runs.queryV2()) {
40
- * // ...
41
- * }
42
- * ```
43
- */
44
- queryV2(params, options) {
45
- const { Accept, ...body } = params;
46
- return this._client.getAPIList('/v2/runs/query', (ItemsCursorPostPagination), {
47
- body,
48
- method: 'post',
49
- ...options,
50
- headers: buildHeaders([{ ...(Accept != null ? { Accept: Accept } : undefined) }, options?.headers]),
51
- });
52
- }
53
- /**
54
- * **Alpha:** The request and response contract may change; Returns one run by ID
55
- * for the given session and start_time. Use the `selects` query parameter
56
- * (repeatable) to select fields to return.
57
- *
58
- * @example
59
- * ```ts
60
- * const queryRunResponse = await client.runs.retrieveV2(
61
- * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
62
- * {
63
- * project_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
64
- * start_time: '2019-12-27T18:11:19.117Z',
65
- * },
66
- * );
67
- * ```
68
- */
69
- retrieveV2(runID, params, options) {
70
- const { Accept, ...query } = params;
71
- return this._client.get(path `/v2/runs/${runID}`, {
72
- query,
73
- ...options,
74
- headers: buildHeaders([{ ...(Accept != null ? { Accept: Accept } : undefined) }, options?.headers]),
75
- });
76
- }
77
- }
78
- Runs.Rules = Rules;