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.
FileUploadResponse(
self,
path: str,
error: FileOperationError | None = None
)| Name | Type |
|---|---|
| path | str |
| error | FileOperationError | None |
The file path that was requested.
Included for easy correlation when processing batch results and for clear error messages.
error: A FileOperationError literal for known conditions, or a
backend-specific error string when the failure cannot be normalized.
None on success.