# Modality

# Modality


```
@IntDef(value = [0, 1])
@Retention(value = AnnotationRetention.SOURCE)
@Target(allowedTargets = [AnnotationTarget.TYPE])
public annotation Modality
```

<br />

*** ** * ** ***

Modalities that may be supported by an `EmbeddingModel`.

## Summary

| ### Constants |
|---|---|
| `static final int` | `IMAGE = 1` Image input modality (`ImagePart`). |
| `static final int` | `TEXT = 0` Text input modality (`TextPart`). |

| ### Public constructors |
|---|
| `Modality()` |

## Constants

### IMAGE

```
public static final int IMAGE = 1
```

Image input modality (`ImagePart`).

### TEXT

```
public static final int TEXT = 0
```

Text input modality (`TextPart`).

## Public constructors

### Modality

```
public Modality()
```