LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmith_openapi_clientresourcesSandboxesBoxes
Class●Since v0.8

Boxes

Copy
class Boxes

Bases

APIResource

Constructors

constructor
constructor

Properties

property
_client: Langsmith

Methods

method
create→ APIPromise<RunCreateResponse>

Add Runs To Annotation Queue

method
createSnapshot→ APIPromise<BoxCreateSnapshotResponse>

Create a snapshot by capturing the current state of a sandbox or promoting an existing checkpoint.

method
delete→ APIPromise<Rsp>
method
generateServiceURL→ APIPromise<BoxGenerateServiceURLResponse>

Create a short-lived JWT for accessing an HTTP service running on a specific port inside a sandbox. Returns a browser_url (sets auth cookie via redirect), a service_url (for use with the X-Langsmith-Sandbox-Service-Token header), the raw token, and its expiry.

method
getStatus→ APIPromise<BoxGetStatusResponse>

Retrieve the lightweight status of a sandbox for polling.

method
list→ APIPromise<RunListResponse>

Get Runs From Annotation Queue

method
retrieve→ APIPromise<DatasetShareSchema | null>

Get the state of sharing a dataset

method
start→ APIPromise<BoxStartResponse>

Start a stopped or failed sandbox. This endpoint is not idempotent.

method
stop→ APIPromise<void>

Stop a ready sandbox. This endpoint is not idempotent; the filesystem is preserved for later restart.

method
update→ APIPromise<unknown>

Update Run In Annotation Queue

View source on GitHub