# supports_execution

> **Function** in `deepagents`

📖 [View in docs](https://reference.langchain.com/python/deepagents/middleware/filesystem/supports_execution)

Check if a backend supports command execution.

For [`CompositeBackend`][deepagents.backends.composite.CompositeBackend],
checks if the default backend supports execution.
For other backends, checks if they implement
[`SandboxBackendProtocol`][deepagents.backends.protocol.SandboxBackendProtocol].

## Signature

```python
supports_execution(
    backend: BackendProtocol,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `backend` | `BackendProtocol` | Yes | The backend to check. |

## Returns

`bool`

True if the backend supports execution, False otherwise.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/64d45f67c86edb4df2ced0e7b82f1a8fd158ec8c/libs/deepagents/deepagents/middleware/filesystem.py#L453)