from api_client import APIClientProtocol class DocumentService: def __init__(self, api_client: APIClientProtocol): self._api = api_client async def ingest(self, file_path: str) -> dict: return await self._api.ingest(file_path) async def list_documents(self) -> list[str]: return await self._api.list_documents() async def delete_document(self, source: str) -> None: await self._api.delete_document(source)