# FileDownloadResponse

> **Class** in `deepagents`

📖 [View in docs](https://reference.langchain.com/python/deepagents/backends/protocol/FileDownloadResponse)

Result of a single file download operation.

The response is designed to allow partial success in batch operations.

The errors are standardized using `FileOperationError` literals for certain
recoverable conditions for use cases that involve LLMs performing
file operations.

## Signature

```python
FileDownloadResponse(
    self,
    path: str,
    content: bytes | None = None,
    error: FileOperationError | str | None = None,
)
```

## Constructors

```python
__init__(
    self,
    path: str,
    content: bytes | None = None,
    error: FileOperationError | str | None = None,
) -> None
```

| Name | Type |
|------|------|
| `path` | `str` |
| `content` | `bytes \| None` |
| `error` | `FileOperationError \| str \| None` |


## Properties

- `path`
- `content`
- `error`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/7e70065200007896336f38fe905803e6763e8f85/libs/deepagents/deepagents/backends/protocol.py#L70)