[PR #4306] [MERGED] docs(langsmith): document create_snapshot_from_dockerfile for sandboxes #4290

Closed
opened 2026-06-05 19:13:24 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/4306
Author: @langchain-infra
Created: 6/4/2026
Status: Merged
Merged: 6/4/2026
Merged by: @langchain-infra

Base: mainHead: mukil/sandbox-dockerfile-snapshot-docs


📝 Commits (2)

  • e9854aa docs(langsmith): document create_snapshot_from_dockerfile for sandboxes
  • 24f742f Update src/langsmith/sandbox-snapshots.mdx

📊 Changes

1 file changed (+136 additions, -0 deletions)

View changed files

📝 src/langsmith/sandbox-snapshots.mdx (+136 -0)

📄 Description

What

Adds a "Build a snapshot from a Dockerfile" section to the LangSmith sandbox snapshots page (sandbox-snapshots.mdx), documenting create_snapshot_from_dockerfile / createSnapshotFromDockerfile — which builds a snapshot from a local Dockerfile + build context (temporary builder sandbox + BuildKit), without needing to publish to a registry first.

Coverage

  • Basic build-from-local-Dockerfile example (Python + TypeScript)
  • Build args and multi-stage target
  • Streaming build output via on_build_log / onBuildLog
  • Sizing the temporary builder sandbox with vcpus/mem_bytes to speed up cold builds (the params added in the recent SDK commits)
  • Note on async-client parity (AsyncSandboxClient)

Placed directly after the existing create_snapshot ("Build a snapshot from a Docker image") section to keep the two builders together.

Verification

  • Signatures cross-checked against langsmith-sdk (_client.py, _async_client.py, js/src/sandbox/client.ts + types.ts)
  • vale passes clean (0 errors/warnings/suggestions)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/4306 **Author:** [@langchain-infra](https://github.com/langchain-infra) **Created:** 6/4/2026 **Status:** ✅ Merged **Merged:** 6/4/2026 **Merged by:** [@langchain-infra](https://github.com/langchain-infra) **Base:** `main` ← **Head:** `mukil/sandbox-dockerfile-snapshot-docs` --- ### 📝 Commits (2) - [`e9854aa`](https://github.com/langchain-ai/docs/commit/e9854aa520f2fc74c6cb78fbe91edb7323f295f8) docs(langsmith): document create_snapshot_from_dockerfile for sandboxes - [`24f742f`](https://github.com/langchain-ai/docs/commit/24f742f46356dfd88c6e8d3a2b67728b37d85ad5) Update src/langsmith/sandbox-snapshots.mdx ### 📊 Changes **1 file changed** (+136 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/langsmith/sandbox-snapshots.mdx` (+136 -0) </details> ### 📄 Description ## What Adds a **"Build a snapshot from a Dockerfile"** section to the LangSmith sandbox snapshots page (`sandbox-snapshots.mdx`), documenting `create_snapshot_from_dockerfile` / `createSnapshotFromDockerfile` — which builds a snapshot from a local Dockerfile + build context (temporary builder sandbox + BuildKit), without needing to publish to a registry first. ## Coverage - Basic build-from-local-Dockerfile example (Python + TypeScript) - Build args and multi-stage `target` - Streaming build output via `on_build_log` / `onBuildLog` - Sizing the temporary builder sandbox with `vcpus`/`mem_bytes` to speed up cold builds (the params added in the recent SDK commits) - Note on async-client parity (`AsyncSandboxClient`) Placed directly after the existing `create_snapshot` ("Build a snapshot from a Docker image") section to keep the two builders together. ## Verification - Signatures cross-checked against `langsmith-sdk` (`_client.py`, `_async_client.py`, `js/src/sandbox/client.ts` + `types.ts`) - `vale` passes clean (0 errors/warnings/suggestions) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 19:13:24 -04:00
yindo closed this issue 2026-06-05 19:13:24 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#4290