mirror of
https://github.com/langchain-ai/deepagents.git
synced 2026-07-21 17:25:26 -04:00
04b4bb946f
Updates the deploy CLI backend handling to match the current Managed Deep Agents API shape. New scaffolded projects use `state`, and sandbox-backed projects can use `backend.type: "sandbox"` with `sandbox_config.scope`, policy IDs, and TTL fields. Existing `default`, `thread_scoped_sandbox`, `agent_scoped_sandbox`, and `backend.sandbox` configs continue to normalize for compatibility. This also updates the CLI README and example deploy project so users see the canonical `sandbox_config` form. Tests run: - `uv run --group test python -m pytest tests/unit_tests/` - `uv run --group test ruff check deepagents_cli/deploy/project.py deepagents_cli/deploy/commands.py tests/unit_tests/deploy/test_project.py tests/unit_tests/deploy/test_payload.py tests/unit_tests/deploy/test_init_command.py tests/unit_tests/deploy/test_deploy_command.py` - `uv run --group test ty check deepagents_cli/deploy/project.py` Live validation: - Created a temporary Managed Deep Agent using `backend.type: "sandbox"` and `sandbox_config.scope: "thread"`. - Confirmed the API stored `type: "sandbox"` and `sandbox_config.scope: "thread"`. - Updated the same temporary agent with `idle_ttl_seconds` and `delete_after_stop_seconds`; confirmed both fields persisted. - Deleted the temporary remote agent and verified it returned 404 afterward.