Container for a single request in a batch
| 25 | |
| 26 | @dataclass |
| 27 | class BatchRequest: |
| 28 | """Container for a single request in a batch""" |
| 29 | request_data: Dict[str, Any] |
| 30 | future: Future |
| 31 | timestamp: float |
| 32 | model: str |
| 33 | approach: Optional[str] = None |
| 34 | |
| 35 | class BatchingError(Exception): |
| 36 | """Raised when batch processing fails""" |