"""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})) async def status(self) -> dict[str, object]: """This session's enrollment, pending deliveries, and pause reason.""" return cast(dict[str, object], await self._host("honcho.status", {})) def setup(api: PythonApi) -> dict[str, object]: return {"honcho": Honcho(api.host), "HonchoError": api.HostError}