"""Query the human peer bound to this session's Honcho enrollment.""" from typing import cast from albedo_api import Host, PythonApi class Honcho: def __init__(self, host: Host) -> None: self._host = host async def ask(self, question: str) -> str: """Ask about remembered preferences or previous conversations.""" return cast(str, await self._host("honcho.ask", {"question": question})) def setup(api: PythonApi) -> dict[str, object]: return {"honcho": Honcho(api.host), "HonchoError": api.HostError}