Batch API interface (not all providers support this).
| 52 | |
| 53 | |
| 54 | class BatchProvider(Protocol): |
| 55 | """Batch API interface (not all providers support this).""" |
| 56 | |
| 57 | def submit_batch(self, entries: list[BatchEntry]) -> str: ... |
| 58 | |
| 59 | def make_poll_client(self) -> Any: ... |
| 60 | |
| 61 | def poll_batch( |
| 62 | self, |
| 63 | client: Any, |
| 64 | job_id: str, |
| 65 | poll_interval: int, |
| 66 | stop_event: threading.Event | None, |
| 67 | ) -> Any: ... |
| 68 | |
| 69 | def collect_results(self, job: Any) -> BatchResults: ... |
| 70 | |
| 71 | def cancel_batch(self, client: Any, job_id: str) -> None: ... |
| 72 | |
| 73 | def retrieve_batch(self, batch_id: str) -> Any: ... |
| 74 | |
| 75 | |
| 76 | def _parse_model(model: str) -> tuple[str, str | None]: |
nothing calls this directly
no outgoing calls
no test coverage detected