@ai-slot/a2ui
v0.1.1
Published
A2UI wire-format compatibility for ai-slot: consume A2UI agent endpoints and emit A2UI messages from ai-slot proxies.
Maintainers
Readme
@ai-slot/a2ui
A2UI wire-format compatibility for ai-slot.
- Consume — parse A2UI
messagesenvelopes (v0.9 / v0.9.1 / v1.0) into validated ai-slot component trees:a2uiWireFormat/createA2uiWireFormat({ mappings }). - Produce — rewrite ai-slot proxy responses (JSON or SSE) as A2UI messages:
withA2uiOutput(handler, { surfaceId }). - Basic Catalog — ready-made tables for the 18 standard A2UI components:
basicCatalogDomDefs(rendering) andbasicCatalogComponentDefs(validation).
All parsing failures degrade to null — the host <ai-slot> silently keeps its fallback content. See the root README for the full picture.
