MCPcopy Create free account
hub / github.com/idank/explainshell / BatchProvider

Class BatchProvider

explainshell/extraction/llm/providers/__init__.py:54–73  ·  view source on GitHub ↗

Batch API interface (not all providers support this).

Source from the content-addressed store, hash-verified

52
53
54class 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
76def _parse_model(model: str) -> tuple[str, str | None]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected