> Documentation index: https://developer.android.com/reference/llms.txt

# A2uiComponentDefinition

Artifact: [androidx.a2ui:a2ui-model](https://developer.android.com/jetpack/androidx/releases/a2ui.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/a2ui/model/catalog/A2uiComponentDefinition.kt+class:androidx.a2ui.model.catalog.A2uiComponentDefinition) Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/a2ui.md.txt#1.0.0-alpha03)

*** ** * ** ***


```
interface A2uiComponentDefinition
```

<br />

*** ** * ** ***

Defines a single UI component and its schema.

## Summary

| ### Public properties |
|---|---|
| `String` | `description` Describes the component behavior so the AI agent knows when to use it. |
| `String` | `name` Component name that would be provided to the AI agent. |
| `A2uiSchema` | `propertySchema` The schema of the properties of the component. |

| ### Extension functions |
|---|---|
| `A2uiSchema` | `A2uiComponentDefinition.toSchema()` Converts this component definition into an `A2uiSchema`. |

## Public properties

### description

Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/a2ui.md.txt#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](https://developer.android.com/jetpack/androidx/releases/a2ui.md.txt#1.0.0-alpha03)

```
val name: String
```

Component name that would be provided to the AI agent.

### propertySchema

Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/a2ui.md.txt#1.0.0-alpha03)

```
val propertySchema: A2uiSchema
```

The schema of the properties of the component.

## Extension functions

### A2uiComponentDefinition.toSchema

Artifact: [androidx.a2ui:a2ui-model](https://developer.android.com/jetpack/androidx/releases/a2ui.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/a2ui/model/catalog/A2uiComponentDefinition.kt+function:toSchema)

```
fun A2uiComponentDefinition.toSchema(): A2uiSchema
```

Converts this component definition into an `A2uiSchema`.

| Returns |
|---|---|
| `A2uiSchema` | the `A2uiSchema` representation of this component definition |