langsmith 0.5.21 → 0.5.22
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 +60 -0
- package/dist/client.d.ts +12 -0
- package/dist/client.js +60 -0
- package/dist/experimental/sandbox/client.cjs +102 -427
- package/dist/experimental/sandbox/client.d.ts +68 -159
- package/dist/experimental/sandbox/client.js +104 -429
- package/dist/experimental/sandbox/errors.cjs +1 -2
- package/dist/experimental/sandbox/errors.d.ts +1 -2
- package/dist/experimental/sandbox/errors.js +1 -2
- package/dist/experimental/sandbox/helpers.cjs +8 -98
- package/dist/experimental/sandbox/helpers.d.ts +0 -29
- package/dist/experimental/sandbox/helpers.js +9 -95
- package/dist/experimental/sandbox/index.cjs +6 -1
- package/dist/experimental/sandbox/index.d.ts +7 -2
- package/dist/experimental/sandbox/index.js +6 -1
- package/dist/experimental/sandbox/sandbox.cjs +3 -11
- package/dist/experimental/sandbox/sandbox.d.ts +3 -5
- package/dist/experimental/sandbox/sandbox.js +3 -11
- package/dist/experimental/sandbox/types.d.ts +32 -149
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/wrappers/openai_agents.cjs +849 -0
- package/dist/wrappers/openai_agents.d.ts +92 -0
- package/dist/wrappers/openai_agents.js +845 -0
- package/package.json +19 -5
- package/wrappers/openai_agents.cjs +1 -0
- package/wrappers/openai_agents.d.cts +1 -0
- package/wrappers/openai_agents.d.ts +1 -0
- package/wrappers/openai_agents.js +1 -0
|
@@ -11,59 +11,6 @@ export interface ExecutionResult {
|
|
|
11
11
|
stderr: string;
|
|
12
12
|
exit_code: number;
|
|
13
13
|
}
|
|
14
|
-
/**
|
|
15
|
-
* Resource specification for a sandbox.
|
|
16
|
-
*/
|
|
17
|
-
export interface ResourceSpec {
|
|
18
|
-
cpu?: string;
|
|
19
|
-
memory?: string;
|
|
20
|
-
storage?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Specification for mounting a volume in a sandbox template.
|
|
24
|
-
*/
|
|
25
|
-
export interface VolumeMountSpec {
|
|
26
|
-
volume_name: string;
|
|
27
|
-
mount_path: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Represents a persistent volume.
|
|
31
|
-
*/
|
|
32
|
-
export interface Volume {
|
|
33
|
-
id?: string;
|
|
34
|
-
name: string;
|
|
35
|
-
size: string;
|
|
36
|
-
storage_class: string;
|
|
37
|
-
created_at?: string;
|
|
38
|
-
updated_at?: string;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Represents a SandboxTemplate.
|
|
42
|
-
*
|
|
43
|
-
* Templates define the image, resource limits, and volume mounts for sandboxes.
|
|
44
|
-
*/
|
|
45
|
-
export interface SandboxTemplate {
|
|
46
|
-
id?: string;
|
|
47
|
-
name: string;
|
|
48
|
-
image: string;
|
|
49
|
-
resources: ResourceSpec;
|
|
50
|
-
volume_mounts?: VolumeMountSpec[];
|
|
51
|
-
created_at?: string;
|
|
52
|
-
updated_at?: string;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Represents a Sandbox Pool for pre-provisioned sandboxes.
|
|
56
|
-
*
|
|
57
|
-
* Pools pre-provision sandboxes from a template for faster startup.
|
|
58
|
-
*/
|
|
59
|
-
export interface Pool {
|
|
60
|
-
id?: string;
|
|
61
|
-
name: string;
|
|
62
|
-
template_name: string;
|
|
63
|
-
replicas: number;
|
|
64
|
-
created_at?: string;
|
|
65
|
-
updated_at?: string;
|
|
66
|
-
}
|
|
67
14
|
/**
|
|
68
15
|
* Lightweight provisioning status for any async-created resource.
|
|
69
16
|
*/
|
|
@@ -101,7 +48,6 @@ export interface Snapshot {
|
|
|
101
48
|
export interface SandboxData {
|
|
102
49
|
id?: string;
|
|
103
50
|
name: string;
|
|
104
|
-
template_name?: string;
|
|
105
51
|
dataplane_url?: string;
|
|
106
52
|
status?: string;
|
|
107
53
|
status_message?: string;
|
|
@@ -297,10 +243,11 @@ export interface SandboxProxyConfig {
|
|
|
297
243
|
*/
|
|
298
244
|
export interface CreateSandboxOptions {
|
|
299
245
|
/**
|
|
300
|
-
* Snapshot
|
|
301
|
-
*
|
|
246
|
+
* Snapshot name to boot from. Mutually exclusive with the positional
|
|
247
|
+
* `snapshotId` argument on `createSandbox`; exactly one must be provided.
|
|
248
|
+
* Resolved server-side to a snapshot owned by the caller's tenant.
|
|
302
249
|
*/
|
|
303
|
-
|
|
250
|
+
snapshotName?: string;
|
|
304
251
|
/**
|
|
305
252
|
* Optional sandbox name (auto-generated if not provided).
|
|
306
253
|
*/
|
|
@@ -361,13 +308,39 @@ export interface CreateSnapshotOptions {
|
|
|
361
308
|
* Options for capturing a snapshot from a running sandbox.
|
|
362
309
|
*/
|
|
363
310
|
export interface CaptureSnapshotOptions {
|
|
364
|
-
/** Checkpoint timestamp to use. If omitted, creates a fresh checkpoint. */
|
|
365
|
-
checkpoint?: string;
|
|
366
311
|
/** Timeout in seconds when waiting for ready. Default: 60. */
|
|
367
312
|
timeout?: number;
|
|
368
313
|
/** AbortSignal for cancellation. */
|
|
369
314
|
signal?: AbortSignal;
|
|
370
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* Options for listing snapshots. All fields are optional and independent.
|
|
318
|
+
*
|
|
319
|
+
* The backend always paginates: when `limit` is omitted the server applies
|
|
320
|
+
* a default page size (currently 50), so a single call will not necessarily
|
|
321
|
+
* return every snapshot visible to the caller's tenant.
|
|
322
|
+
*/
|
|
323
|
+
export interface ListSnapshotsOptions {
|
|
324
|
+
/**
|
|
325
|
+
* Case-insensitive substring filter applied server-side to snapshot
|
|
326
|
+
* names.
|
|
327
|
+
*/
|
|
328
|
+
nameContains?: string;
|
|
329
|
+
/**
|
|
330
|
+
* Maximum number of snapshots to return for a single request. Must be
|
|
331
|
+
* between 1 and 500 (inclusive); the server rejects values outside that
|
|
332
|
+
* range. Defaults to 50 server-side when omitted.
|
|
333
|
+
*/
|
|
334
|
+
limit?: number;
|
|
335
|
+
/**
|
|
336
|
+
* Number of snapshots to skip before returning results. Must be `>= 0`.
|
|
337
|
+
* Useful for paginating through large result sets in combination with
|
|
338
|
+
* `limit`.
|
|
339
|
+
*/
|
|
340
|
+
offset?: number;
|
|
341
|
+
/** AbortSignal for cancellation. */
|
|
342
|
+
signal?: AbortSignal;
|
|
343
|
+
}
|
|
371
344
|
/**
|
|
372
345
|
* Options for waiting for a snapshot to become ready.
|
|
373
346
|
*/
|
|
@@ -421,93 +394,3 @@ export interface WaitForSandboxOptions {
|
|
|
421
394
|
/** AbortSignal for cancellation. */
|
|
422
395
|
signal?: AbortSignal;
|
|
423
396
|
}
|
|
424
|
-
/**
|
|
425
|
-
* Options for creating a volume.
|
|
426
|
-
*/
|
|
427
|
-
export interface CreateVolumeOptions {
|
|
428
|
-
/**
|
|
429
|
-
* Storage size (e.g., "1Gi", "10Gi").
|
|
430
|
-
*/
|
|
431
|
-
size: string;
|
|
432
|
-
/**
|
|
433
|
-
* Timeout in seconds when waiting for volume to be ready. Default: 60.
|
|
434
|
-
*/
|
|
435
|
-
timeout?: number;
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
* Options for creating a template.
|
|
439
|
-
*/
|
|
440
|
-
export interface CreateTemplateOptions {
|
|
441
|
-
/**
|
|
442
|
-
* Container image (e.g., "python:3.12-slim", "node:20-slim").
|
|
443
|
-
*/
|
|
444
|
-
image: string;
|
|
445
|
-
/**
|
|
446
|
-
* CPU limit (e.g., "500m", "1", "2"). Default: "500m".
|
|
447
|
-
*/
|
|
448
|
-
cpu?: string;
|
|
449
|
-
/**
|
|
450
|
-
* Memory limit (e.g., "256Mi", "1Gi"). Default: "512Mi".
|
|
451
|
-
*/
|
|
452
|
-
memory?: string;
|
|
453
|
-
/**
|
|
454
|
-
* Ephemeral storage limit (e.g., "1Gi"). Optional.
|
|
455
|
-
*/
|
|
456
|
-
storage?: string;
|
|
457
|
-
/**
|
|
458
|
-
* List of volumes to mount in the sandbox. Optional.
|
|
459
|
-
*/
|
|
460
|
-
volumeMounts?: VolumeMountSpec[];
|
|
461
|
-
}
|
|
462
|
-
/**
|
|
463
|
-
* Options for updating a template.
|
|
464
|
-
*/
|
|
465
|
-
export interface UpdateTemplateOptions {
|
|
466
|
-
/**
|
|
467
|
-
* New display name (optional).
|
|
468
|
-
*/
|
|
469
|
-
newName?: string;
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* Options for creating a pool.
|
|
473
|
-
*/
|
|
474
|
-
export interface CreatePoolOptions {
|
|
475
|
-
/**
|
|
476
|
-
* Name of the template to use for sandboxes in this pool.
|
|
477
|
-
*/
|
|
478
|
-
templateName: string;
|
|
479
|
-
/**
|
|
480
|
-
* Number of pre-warmed sandboxes to maintain (0-100).
|
|
481
|
-
*/
|
|
482
|
-
replicas: number;
|
|
483
|
-
/**
|
|
484
|
-
* Timeout in seconds when waiting for pool to be ready. Default: 30.
|
|
485
|
-
*/
|
|
486
|
-
timeout?: number;
|
|
487
|
-
}
|
|
488
|
-
/**
|
|
489
|
-
* Options for updating a volume.
|
|
490
|
-
*/
|
|
491
|
-
export interface UpdateVolumeOptions {
|
|
492
|
-
/**
|
|
493
|
-
* New display name (optional).
|
|
494
|
-
*/
|
|
495
|
-
newName?: string;
|
|
496
|
-
/**
|
|
497
|
-
* New storage size (must be >= current size). Optional.
|
|
498
|
-
*/
|
|
499
|
-
size?: string;
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* Options for updating a pool.
|
|
503
|
-
*/
|
|
504
|
-
export interface UpdatePoolOptions {
|
|
505
|
-
/**
|
|
506
|
-
* New display name (optional).
|
|
507
|
-
*/
|
|
508
|
-
newName?: string;
|
|
509
|
-
/**
|
|
510
|
-
* New number of replicas (0-100). Set to 0 to pause.
|
|
511
|
-
*/
|
|
512
|
-
replicas?: number;
|
|
513
|
-
}
|
package/dist/index.cjs
CHANGED
|
@@ -18,4 +18,4 @@ Object.defineProperty(exports, "PromptCache", { enumerable: true, get: function
|
|
|
18
18
|
Object.defineProperty(exports, "configureGlobalPromptCache", { enumerable: true, get: function () { return index_js_1.configureGlobalPromptCache; } });
|
|
19
19
|
Object.defineProperty(exports, "promptCacheSingleton", { enumerable: true, get: function () { return index_js_1.promptCacheSingleton; } });
|
|
20
20
|
// Update using pnpm bump-version
|
|
21
|
-
exports.__version__ = "0.5.
|
|
21
|
+
exports.__version__ = "0.5.22";
|
package/dist/index.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export { overrideFetchImplementation } from "./singletons/fetch.js";
|
|
|
5
5
|
export { getDefaultProjectName } from "./utils/project.js";
|
|
6
6
|
export { uuid7, uuid7FromTime } from "./uuid.js";
|
|
7
7
|
export { Cache, PromptCache, type CacheConfig, type CacheMetrics, configureGlobalPromptCache, promptCacheSingleton, } from "./utils/prompt_cache/index.js";
|
|
8
|
-
export declare const __version__ = "0.5.
|
|
8
|
+
export declare const __version__ = "0.5.22";
|
package/dist/index.js
CHANGED
|
@@ -5,4 +5,4 @@ export { getDefaultProjectName } from "./utils/project.js";
|
|
|
5
5
|
export { uuid7, uuid7FromTime } from "./uuid.js";
|
|
6
6
|
export { Cache, PromptCache, configureGlobalPromptCache, promptCacheSingleton, } from "./utils/prompt_cache/index.js";
|
|
7
7
|
// Update using pnpm bump-version
|
|
8
|
-
export const __version__ = "0.5.
|
|
8
|
+
export const __version__ = "0.5.22";
|