TextualUIAdapter(
self,
mount_message: Callable[..., Awaitable[bool]]| Name | Type |
|---|---|
| mount_message | Callable[..., Awaitable[bool]] |
| update_status | Callable[[str], None] |
| request_approval | Callable[..., Awaitable[Any]] |
| on_auto_approve_enabled | Callable[[], Awaitable[bool] | bool | None] | None |
| on_switch_to_manual | Callable[[], Awaitable[bool] | bool] | None |
| set_spinner | Callable[[_session_stats.SpinnerStatus], Awaitable[None]] | None |
| set_active_message | Callable[[str | None], None] | None |
| on_user_visible_output_started | Callable[[], None] | None |
| sync_message_content | Callable[[str, str], None] | None |
| sync_tool_message | Callable[[ToolCallMessage], None] | None |
| request_ask_user | Callable[[list[Question]], Awaitable[asyncio.Future[AskUserWidgetResult] | None]] | None |
| on_tool_complete | Callable[[], None] | None |
| on_subagent_event | Callable[[dict[str, Any]], None] | None |
| on_auto_mode_event | Callable[[dict[str, Any]], Awaitable[None] | None] | None |
| on_approval_mode_fallback | Callable[[str], None] | None |
Adapter for rendering agent output to Textual widgets.
This adapter provides an abstraction layer between the agent execution and the Textual UI, allowing streaming output to be rendered as widgets.