androidx.a2ui.model.catalog


Interfaces

A2uiFunction

Represents a function supported by A2UI including its definition and implementation.

A2uiFunctionCollection

An immutable, indexed collection of A2uiFunctions.

A2uiFunctionDefinition

Represents the definition and schema of a function supported by A2UI.

Enums

A2uiFunctionReturnType

The JSON-compatible return types a function can advertise to the AI agent.

Top-level functions summary

Extension functions summary

A2uiSchema

Converts this function definition into an A2uiSchema.

Top-level functions

A2uiFunctionCollection

fun A2uiFunctionCollection(functions: List<A2uiFunction> = emptyList()): A2uiFunctionCollection

Creates an immutable A2uiFunctionCollection from a list of A2uiFunctions.

Parameters
functions: List<A2uiFunction> = emptyList()

The list of functions to include.

Throws
IllegalArgumentException

If duplicate function names are detected.

Extension functions

A2uiFunctionDefinition.toSchema

fun A2uiFunctionDefinition.toSchema(): A2uiSchema

Converts this function definition into an A2uiSchema.

Returns
A2uiSchema

the A2uiSchema representation of this function definition