Expand description
A2UI (Agent-to-UI) extension for Tirea.
Provides a tool-based interface for agents to emit A2UI
declarative UI messages. The LLM calls A2uiRenderTool with A2UI JSON
payloads; the tool validates the structure and returns the validated payload
as its result, which flows through the AG-UI event stream to the frontend.
§Protocol overview
A2UI defines four server-to-client message types:
createSurface— initialize a rendering surfaceupdateComponents— define/update the component treeupdateDataModel— populate or change data valuesdeleteSurface— remove a surface
Each message carries "version": "v0.9" and exactly one of the above keys.
Structs§
- A2ui
Plugin - A2UI behavior plugin that injects A2UI schema and usage instructions into the system prompt before LLM inference.
- A2ui
Render Tool - Tool for rendering A2UI declarative UI.
- A2ui
Validation Error - A2UI validation error.
Functions§
- validate_
a2ui_ messages - Validate an array of A2UI messages.