A2uiComponentDefinition


interface A2uiComponentDefinition


Defines a single UI component and its schema.

Summary

Public properties

String

Describes the component behavior so the AI agent knows when to use it.

String

Component name that would be provided to the AI agent.

A2uiSchema

The schema of the properties of the component.

Extension functions

A2uiSchema

Converts this component definition into an A2uiSchema.

Public properties

description

Added in 1.0.0-alpha03
val description: String

Describes the component behavior so the AI agent knows when to use it.

name

Added in 1.0.0-alpha03
val name: String

Component name that would be provided to the AI agent.

propertySchema

Added in 1.0.0-alpha03
val propertySchema: A2uiSchema

The schema of the properties of the component.

Extension functions

A2uiComponentDefinition.toSchema

fun A2uiComponentDefinition.toSchema(): A2uiSchema

Converts this component definition into an A2uiSchema.

Returns
A2uiSchema

the A2uiSchema representation of this component definition