# A2UI Agent Integration: Wiring UI to Agents

Demonstrates attaching UI surfaces to agents and cross-namespace integration.

Key concepts:
  - Agent.ui(): attach declarative or LLM-guided UI
  - UI.auto(): LLM-guided mode
  - T.a2ui(): A2UI toolset in tool composition
  - G.a2ui(): guard for LLM-generated UI validation
  - P.ui_schema(): inject catalog schema into prompt
  - ui_form_agent(): pattern helper

:::{tip} What you'll learn
How to attach tools to an agent using the fluent API.
:::

_Source: `71_a2ui_agent_integration.py`_

:::{seealso}
API reference: [Agent](../api/agent.md#builder-Agent)
:::
