langsmith 0.8.8 → 0.8.10

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 (65) hide show
  1. package/dist/_openapi_client/resources/annotation-queues/annotation-queues.cjs +10 -0
  2. package/dist/_openapi_client/resources/annotation-queues/annotation-queues.d.ts +10 -0
  3. package/dist/_openapi_client/resources/annotation-queues/annotation-queues.js +10 -0
  4. package/dist/_openapi_client/resources/annotation-queues/runs.cjs +13 -1
  5. package/dist/_openapi_client/resources/annotation-queues/runs.d.ts +13 -1
  6. package/dist/_openapi_client/resources/annotation-queues/runs.js +13 -1
  7. package/dist/_openapi_client/resources/datasets/experiment-runs.cjs +2 -0
  8. package/dist/_openapi_client/resources/datasets/experiment-runs.d.ts +2 -0
  9. package/dist/_openapi_client/resources/datasets/experiment-runs.js +2 -0
  10. package/dist/_openapi_client/resources/issues.d.ts +1 -1
  11. package/dist/_openapi_client/resources/public/runs.cjs +9 -7
  12. package/dist/_openapi_client/resources/public/runs.d.ts +8 -6
  13. package/dist/_openapi_client/resources/public/runs.js +9 -7
  14. package/dist/_openapi_client/resources/runs/runs.cjs +11 -6
  15. package/dist/_openapi_client/resources/runs/runs.d.ts +11 -6
  16. package/dist/_openapi_client/resources/runs/runs.js +11 -6
  17. package/dist/_openapi_client/resources/runs/share.cjs +4 -0
  18. package/dist/_openapi_client/resources/runs/share.d.ts +4 -0
  19. package/dist/_openapi_client/resources/runs/share.js +4 -0
  20. package/dist/_openapi_client/resources/threads.cjs +11 -8
  21. package/dist/_openapi_client/resources/threads.d.ts +11 -8
  22. package/dist/_openapi_client/resources/threads.js +11 -8
  23. package/dist/_openapi_client/resources/traces.cjs +6 -3
  24. package/dist/_openapi_client/resources/traces.d.ts +6 -3
  25. package/dist/_openapi_client/resources/traces.js +6 -3
  26. package/dist/client.cjs +295 -24
  27. package/dist/client.d.ts +63 -9
  28. package/dist/client.js +295 -24
  29. package/dist/evaluation/evaluate_comparative.cjs +7 -4
  30. package/dist/evaluation/evaluate_comparative.js +7 -4
  31. package/dist/experimental/vercel/_agent_type.cjs +30 -0
  32. package/dist/experimental/vercel/_agent_type.d.ts +5 -0
  33. package/dist/experimental/vercel/_agent_type.js +26 -0
  34. package/dist/experimental/vercel/telemetry.cjs +2 -7
  35. package/dist/experimental/vercel/telemetry.js +2 -7
  36. package/dist/experimental/vercel/wrap.cjs +5 -11
  37. package/dist/experimental/vercel/wrap.js +6 -12
  38. package/dist/index.cjs +1 -1
  39. package/dist/index.d.ts +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/sandbox/command_handle.cjs +34 -7
  42. package/dist/sandbox/command_handle.d.ts +1 -0
  43. package/dist/sandbox/command_handle.js +34 -7
  44. package/dist/sandbox/ws_execute.cjs +7 -3
  45. package/dist/sandbox/ws_execute.d.ts +4 -2
  46. package/dist/sandbox/ws_execute.js +7 -3
  47. package/dist/utils/_git.cjs +28 -1
  48. package/dist/utils/_git.js +28 -1
  49. package/dist/utils/ls_agent_type.cjs +31 -0
  50. package/dist/utils/ls_agent_type.d.ts +9 -0
  51. package/dist/utils/ls_agent_type.js +25 -0
  52. package/dist/utils/profiles.cjs +125 -1
  53. package/dist/utils/profiles.d.ts +6 -0
  54. package/dist/utils/profiles.js +124 -1
  55. package/dist/utils/v2_migration.cjs +18 -0
  56. package/dist/utils/v2_migration.d.ts +8 -0
  57. package/dist/utils/v2_migration.js +16 -0
  58. package/dist/utils/warn.cjs +30 -4
  59. package/dist/utils/warn.d.ts +4 -1
  60. package/dist/utils/warn.js +29 -4
  61. package/dist/wrappers/openai.cjs +4 -0
  62. package/dist/wrappers/openai.js +4 -0
  63. package/dist/wrappers/openai_agents.cjs +15 -12
  64. package/dist/wrappers/openai_agents.js +15 -12
  65. package/package.json +1 -1
@@ -4,8 +4,9 @@ import { ItemsCursorGetPagination, type ItemsCursorGetPaginationParams, ItemsCur
4
4
  import { RequestOptions } from '../internal/request-options.js';
5
5
  export declare class Threads extends APIResource {
6
6
  /**
7
- * **Alpha:** The request and response contract may change; Retrieve all traces
8
- * belonging to a specific thread within a project.
7
+ * Retrieve all traces belonging to a specific thread within a project.
8
+ *
9
+ * Self-hosted deployments require LangSmith `v0.16` or later.
9
10
  *
10
11
  * @example
11
12
  * ```ts
@@ -20,9 +21,10 @@ export declare class Threads extends APIResource {
20
21
  */
21
22
  listTraces(threadID: string, query: ThreadListTracesParams, options?: RequestOptions): PagePromise<ThreadTracesItemsCursorGetPagination, ThreadTrace>;
22
23
  /**
23
- * **Alpha:** The request and response contract may change; Query threads within a
24
- * project (session), with cursor-based pagination. Returns threads matching the
25
- * given time range and optional filter.
24
+ * Query threads within a project (session), with cursor-based pagination. Returns
25
+ * threads matching the given time range and optional filter.
26
+ *
27
+ * Self-hosted deployments require LangSmith `v0.16` or later.
26
28
  *
27
29
  * @example
28
30
  * ```ts
@@ -34,9 +36,10 @@ export declare class Threads extends APIResource {
34
36
  */
35
37
  query(body: ThreadQueryParams, options?: RequestOptions): PagePromise<ThreadsItemsCursorPostPagination, Thread>;
36
38
  /**
37
- * **Alpha:** The request and response contract may change; Compute aggregate stats
38
- * for a single thread (turn count, latency percentiles, token/cost sums, and
39
- * detail breakdowns) within a project.
39
+ * Compute aggregate stats for a single thread (turn count, latency percentiles,
40
+ * token/cost sums, and detail breakdowns) within a project.
41
+ *
42
+ * Self-hosted deployments require LangSmith `v0.16` or later.
40
43
  *
41
44
  * @example
42
45
  * ```ts
@@ -5,8 +5,9 @@ import { ItemsCursorGetPagination, ItemsCursorPostPagination, } from '../core/pa
5
5
  import { path } from '../internal/utils/path.js';
6
6
  export class Threads extends APIResource {
7
7
  /**
8
- * **Alpha:** The request and response contract may change; Retrieve all traces
9
- * belonging to a specific thread within a project.
8
+ * Retrieve all traces belonging to a specific thread within a project.
9
+ *
10
+ * Self-hosted deployments require LangSmith `v0.16` or later.
10
11
  *
11
12
  * @example
12
13
  * ```ts
@@ -23,9 +24,10 @@ export class Threads extends APIResource {
23
24
  return this._client.getAPIList(path `/api/v2/threads/${threadID}/traces`, (ItemsCursorGetPagination), { query, ...options });
24
25
  }
25
26
  /**
26
- * **Alpha:** The request and response contract may change; Query threads within a
27
- * project (session), with cursor-based pagination. Returns threads matching the
28
- * given time range and optional filter.
27
+ * Query threads within a project (session), with cursor-based pagination. Returns
28
+ * threads matching the given time range and optional filter.
29
+ *
30
+ * Self-hosted deployments require LangSmith `v0.16` or later.
29
31
  *
30
32
  * @example
31
33
  * ```ts
@@ -43,9 +45,10 @@ export class Threads extends APIResource {
43
45
  });
44
46
  }
45
47
  /**
46
- * **Alpha:** The request and response contract may change; Compute aggregate stats
47
- * for a single thread (turn count, latency percentiles, token/cost sums, and
48
- * detail breakdowns) within a project.
48
+ * Compute aggregate stats for a single thread (turn count, latency percentiles,
49
+ * token/cost sums, and detail breakdowns) within a project.
50
+ *
51
+ * Self-hosted deployments require LangSmith `v0.16` or later.
49
52
  *
50
53
  * @example
51
54
  * ```ts
@@ -9,9 +9,10 @@ const headers_js_1 = require("../internal/headers.cjs");
9
9
  const path_js_1 = require("../internal/utils/path.cjs");
10
10
  class Traces extends resource_js_1.APIResource {
11
11
  /**
12
- * **Alpha:** The request and response contract may change; Returns runs for a
13
- * trace ID within min/max start time. Optional `filter`; repeatable `selects` to
14
- * select fields to return.
12
+ * Returns runs for a trace ID within min/max start time. Optional `filter`;
13
+ * repeatable `selects` to select fields to return.
14
+ *
15
+ * Self-hosted deployments require LangSmith `v0.16` or later.
15
16
  *
16
17
  * @example
17
18
  * ```ts
@@ -42,6 +43,8 @@ class Traces extends resource_js_1.APIResource {
42
43
  * Supports filters (`trace_filter`, `tree_filter`), cursor pagination (`cursor`),
43
44
  * and field projection (`selects`).
44
45
  *
46
+ * Self-hosted deployments require LangSmith `v0.16` or later.
47
+ *
45
48
  * @example
46
49
  * ```ts
47
50
  * // Automatically fetches more pages as needed.
@@ -5,9 +5,10 @@ import { ItemsCursorPostPagination, type ItemsCursorPostPaginationParams, PagePr
5
5
  import { RequestOptions } from '../internal/request-options.js';
6
6
  export declare class Traces extends APIResource {
7
7
  /**
8
- * **Alpha:** The request and response contract may change; Returns runs for a
9
- * trace ID within min/max start time. Optional `filter`; repeatable `selects` to
10
- * select fields to return.
8
+ * Returns runs for a trace ID within min/max start time. Optional `filter`;
9
+ * repeatable `selects` to select fields to return.
10
+ *
11
+ * Self-hosted deployments require LangSmith `v0.16` or later.
11
12
  *
12
13
  * @example
13
14
  * ```ts
@@ -31,6 +32,8 @@ export declare class Traces extends APIResource {
31
32
  * Supports filters (`trace_filter`, `tree_filter`), cursor pagination (`cursor`),
32
33
  * and field projection (`selects`).
33
34
  *
35
+ * Self-hosted deployments require LangSmith `v0.16` or later.
36
+ *
34
37
  * @example
35
38
  * ```ts
36
39
  * // Automatically fetches more pages as needed.
@@ -6,9 +6,10 @@ import { buildHeaders } from '../internal/headers.js';
6
6
  import { path } from '../internal/utils/path.js';
7
7
  export class Traces extends APIResource {
8
8
  /**
9
- * **Alpha:** The request and response contract may change; Returns runs for a
10
- * trace ID within min/max start time. Optional `filter`; repeatable `selects` to
11
- * select fields to return.
9
+ * Returns runs for a trace ID within min/max start time. Optional `filter`;
10
+ * repeatable `selects` to select fields to return.
11
+ *
12
+ * Self-hosted deployments require LangSmith `v0.16` or later.
12
13
  *
13
14
  * @example
14
15
  * ```ts
@@ -39,6 +40,8 @@ export class Traces extends APIResource {
39
40
  * Supports filters (`trace_filter`, `tree_filter`), cursor pagination (`cursor`),
40
41
  * and field projection (`selects`).
41
42
  *
43
+ * Self-hosted deployments require LangSmith `v0.16` or later.
44
+ *
42
45
  * @example
43
46
  * ```ts
44
47
  * // Automatically fetches more pages as needed.