# Generable


```
@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.TYPEALIAS])
public annotation Generable
```

<br />

*** ** * ** ***

Annotates a class to indicate that a class can be used as an output class for generating content.

This is an experimental feature.

The class and its fields will be used to generate a schema that will be used for guiding the model to generate structured output.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/com/google/mlkit/genai/schema/annotations/Generable#Generable(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html description)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/android/reference/com/google/mlkit/genai/schema/annotations/Generable#getDescription()()` Description of the class used to be forwarded to the model. |

## Public constructors

### Generable

```
public Generable(@NonNull String description)
```

## Public methods

### getDescription

```
public final @NonNull String getDescription()
```

Description of the class used to be forwarded to the model.