Skip to main content

ui

AI Agent UI protocol integrations for exposing PraisonAI agents to frontends and other agents.
SubmoduleExportPurpose
ui.aguiAGUIAG-UI protocol (CopilotKit-compatible SSE)
ui.a2aA2AAgent-to-Agent JSON-RPC
ui.a2uiA2UIGoogle A2UI adapter (optional [a2ui] extra)
Lazy-loaded via praisonaiagents.ui or top-level:
from praisonaiagents import AGUI, A2A, A2UI
from praisonaiagents.tools.a2ui_tools import send_a2ui_messages
from praisonaiagents.ui.protocols import A2UI_MIME_TYPE, A2UIToolResultProtocol

A2UI tool contract

send_a2ui_messages returns:
{"mime_type": "application/json+a2ui", "messages": [...], "a2ui_part": ...}
AG-UI emits an additive CUSTOM event name="a2ui". A2A sync message/send can emit a DataPart with the same MIME when tool results are present in agent history. Parsing and rendering belong in your UI layer — see Integrate A2UI with Your Frontend.