# A2UI Pipeline: UI in Multi-Agent Pipelines

Demonstrates using S.to_ui() and S.from_ui() to bridge state data
between agents and A2UI surfaces.

Key concepts:
  - S.to_ui(): bridge agent state → A2UI data model
  - S.from_ui(): bridge A2UI data model → agent state
  - M.a2ui_log(): log A2UI surface operations
  - C.with_ui(): include UI surface state in context

:::{tip} What you'll learn
How to compose agents into a sequential pipeline.
:::

_Source: `74_a2ui_pipeline.py`_

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