Skip to content

QuietEvents

🛈 DocStrings

AgentEvents that ignore everything and refuse interactive requests.

Source code in src/acptui/headless.py
class QuietEvents:
    """AgentEvents that ignore everything and refuse interactive requests."""

    def session_update(self, notification: UpdateSessionNotification) -> None:
        pass

    async def request_permission(
        self, request: RequestPermissionRequest
    ) -> RequestPermissionResponse:
        from acptui.ui.screens.permission import cancelled

        return cancelled()

    async def create_elicitation(
        self, request: CreateElicitationRequest
    ) -> CreateElicitationResponse:
        from aclientp.schema.v2 import DeclineElicitationResponse

        return DeclineElicitationResponse()

    def complete_elicitation(self, notification: CompleteElicitationNotification) -> None:
        pass

    def auth_status_update(self, notification: AuthStatusUpdateNotification) -> None:
        pass

    def ext_notification(self, method: str, params: JsonValue) -> None:
        pass

    def stderr_line(self, line: str) -> None:
        pass

    def traffic(self, direction: str, text: str) -> None:
        pass

:fa-brands-github: Show source on GitHub