sandboxes
Start a streamed sandbox command
Changed onExecute a command inside a sandbox and stream stdout/stderr as Server-Sent Events with base64 payloads. Requires a sandbox on the v2 runtime. Passing a command_id reuses a running command instead of starting a second one. The response ends with an ack_required event when the sandbox's output buffer needs an ack; continue from the reported offsets with the resume endpoint.
post/api/v2/sandboxes/{sandbox_id}/execute/stream/start
Request
- Base URLhttps://api.smith.langchain.com
- URLhttps://api.smith.langchain.com/api/v2/sandboxes/{sandbox_id}/execute/stream/start
- Auth
- API key in header X-API-Key
- or API key in header X-Tenant-Id
- or HTTP bearer
Path parameters
sandbox_idstring required
Sandbox ID or name
Request body
Response
SSE event stream
Changes
- info
endpoint added
- info