# FileUploadResponse

> **Class** in `deepagents`

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

Result of a single file upload 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
FileUploadResponse(
    self,
    path: str,
    error: FileOperationError | None = None,
)
```

## Constructors

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

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


## Properties

- `path`
- `error`

---

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