A2uiCoreComponentDefinition


interface A2uiCoreComponentDefinition


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-alpha01
val descriptionString

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

name

Added in 1.0.0-alpha01
val nameString

Component name that would be provided to the AI agent.

propertySchema

Added in 1.0.0-alpha01
val propertySchemaA2uiSchema

The schema of the properties of the component.

Extension functions

A2uiCoreComponentDefinition.toSchema

fun A2uiCoreComponentDefinition.toSchema(): A2uiSchema

Converts this component definition into an A2uiSchema.

Returns
A2uiSchema

the A2uiSchema representation of this component definition