# 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 | None = None,
)
```

## Constructors

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

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


## Properties

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

---

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