Module a2ui_compat

Module a2ui_compat 

Source
Expand description

Google A2UI compatibility layer.

Maps CELLSTATE’s internal A2UI component catalog to the Google A2UI specification format (v0.8+). CELLSTATE’s A2UI system predates Google’s spec — this module ensures wire-format compatibility.

Google A2UI uses declarative JSON with flat component lists and ID references. CELLSTATE’s Capability Resolver already produces component metadata; this module transforms it into Google-compatible output.

Re-export path: cellstate_pipeline::pack::a2ui_compat::*

Structs§

A2uiComponent
A single A2UI component definition.
A2uiDataField
Data model field definition for A2UI data binding.
A2uiResponse
Google A2UI-compatible response payload.

Constants§

A2UI_SCHEMA_VERSION
CELLSTATE’s version stamp for emitted A2UI schema payloads.

Functions§

cellstate_to_a2ui_type
CELLSTATE internal component type → A2UI component type mapping.
generate_a2ui_schema
Generate a Google A2UI-compatible schema from CELLSTATE’s compiled config.
to_a2ui_json
Serialize A2UI response to canonical JSON.