After creating a new langchain project using langgraph cli, I’m getting an error on the basic deepagent project which is provided as a template.
```
File “/Users/me/Local/Code/deepagent/agent/src/deep_agent/sandbox.py”, line 120, in _ensure_template
await client.get_template(template_name)
^^^^^^^^^^^^^^^^^^^
AttributeError: ‘AsyncSandboxClient’ object has no attribute ‘get_template’
```
Langsmith studio suggested me to upgrade langgraph-api in order fix any sort of issue:
```
Current Server Version: 0.7.103
Latest Server Version: 0.10.0
Seeing issues? Try upgrading your server by running pip install -U langgraph-api.
```
I’m using UV package manager and attempted to upgrade the langggraph-api, but it’s not working due to project’s default uv.lock and myproject.toml files.
Hello @encryptman1,
This is a langsmith SDK mismatch, not a langgraph-api issue.
The deep-agent template’s sandbox.py calls AsyncSandboxClient.get_template(), but that method was removed from langsmith in April 2026 when sandbox templates were replaced by snapshots. Upgrading langgraph-api won’t fix it, the error is in your app code calling a method that no longer exists.
Why pip install -U langgraph-api didn’t help: With uv, deps come from pyproject.toml / uv.lock. Use uv to manage upgrades:
cd your-project
uv sync --dev -U
Quick workaround (temporary — pins deprecated API):
uv add "langsmith[sandbox]>=0.7.24,<0.7.34"
uv sync --dev
Proper fix: Update sandbox.py to use the snapshot API instead of get_template / create_template. See the Sandbox SDK docs, create sandboxes with snapshot_name or snapshot_id, not template_name.
Also make sure LANGSMITH_API_KEY is set in your environment.
The template code is ahead of (or behind) the current SDK, this should be fixed in the template itself. Until then, pin old langsmith or migrate sandbox.py to snapshots.