> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ui • AI Agent SDK

> UI Integrations for PraisonAI Agents

# ui

<Badge color="blue">AI Agent</Badge>

UI protocol integrations for exposing PraisonAI agents to frontends and other agents.

| Submodule | Export | Purpose                                       |
| --------- | ------ | --------------------------------------------- |
| `ui.agui` | `AGUI` | AG-UI protocol (CopilotKit-compatible SSE)    |
| `ui.a2a`  | `A2A`  | Agent-to-Agent JSON-RPC                       |
| `ui.a2ui` | `A2UI` | Google A2UI adapter (optional `[a2ui]` extra) |

Lazy-loaded via `praisonaiagents.ui` or top-level:

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
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:

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{"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](/docs/features/integrate-a2ui-frontend).

## Related

* [A2UI Protocol](/docs/features/a2ui)
* [A2A Protocol](/docs/features/a2a)
* [AG-UI server](/docs/deploy/servers/agui)
