mirror of
https://github.com/langchain-ai/deepagentsjs.git
synced 2026-07-20 08:58:19 -04:00
f164f992e0
## Summary Expose the new LangSmith sandbox snapshot and lifecycle APIs (landed in `langsmith@0.5.20`) through the `LangSmithSandbox` wrapper. - New methods on `LangSmithSandbox`: `start()`, `stop()`, `captureSnapshot()` - `LangSmithSandbox.create()` now accepts `snapshotId` (preferred) or `templateName` (deprecated); throws if neither is provided - Re-export upstream types as `LangSmithSnapshot`, `LangSmithCaptureSnapshotOptions`, `LangSmithStartSandboxOptions` - Bump `langsmith` peer dep to `>=0.5.20` - Update the example to boot from `LANGSMITH_SANDBOX_SNAPSHOT_ID` ## Test plan - [x] Unit tests: added coverage for `start()`, `stop()`, `captureSnapshot()`; 41/41 pass - [x] Type-check clean - [x] Dev smoke test against `dev.api.smith.langchain.com` — create from snapshot, execute, stop, start, execute after restart all working --------- Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com> Co-authored-by: Ramon Nogueira <270434257+ramon-langchain@users.noreply.github.com> Co-authored-by: Hunter Lovell <40191806+hntrl@users.noreply.github.com>