A2uiCatalog

@Immutable
class A2uiCatalog(val id: String, val components: Map<String, A2uiComponent>, val functions: Map<String, A2uiFunction>, val protocolVersion: String = A2ui.VERSION)(source)

A component catalog (A2UI §"The component catalog"): the component types and functions a surface may use, rendered natively. Basic is the A2UI Basic Catalog; extend adds or replaces components and functions — your design system's components, under your own catalog id.

Constructors

Link copied to clipboard
constructor(id: String, components: Map<String, A2uiComponent>, functions: Map<String, A2uiFunction>, protocolVersion: String = A2ui.VERSION)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard

The A2UI version its definitions follow; catalogs mixed on one surface must share it.

Functions

Link copied to clipboard
fun extend(id: String = this.id, components: Map<String, A2uiComponent> = emptyMap(), functions: Map<String, A2uiFunction> = emptyMap()): A2uiCatalog