The result of a single request within a completed batch.
| 69 | |
| 70 | @dataclass |
| 71 | class BatchResult: |
| 72 | """The result of a single request within a completed batch.""" |
| 73 | |
| 74 | custom_id: str |
| 75 | """The custom ID that was provided in the request.""" |
| 76 | |
| 77 | content: Optional[str] = None |
| 78 | """The response content from the LLM.""" |
| 79 | |
| 80 | error: Optional[str] = None |
| 81 | """Error message if this individual request failed.""" |
| 82 | |
| 83 | usage: Optional[Dict[str, int]] = None |
| 84 | """Token usage for this request.""" |
| 85 | |
| 86 | |
| 87 | @dataclass |
no outgoing calls