---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/litert_lm/exceptions/variables/E_UNSUPPORTED_MEDIA_MODALITY.md
description: >-
  Raised when a {@link @nhtio/adk!Media} instance whose modality cannot be
  represented for the LiteRT-LM model reaches the adapter under
  `unsupportedMediaPolicy: 'throw'`.
---

# Variable: E\_UNSUPPORTED\_MEDIA\_MODALITY

```ts
const E_UNSUPPORTED_MEDIA_MODALITY: CreatedException<[string, string, string]>;
```

Defined in: [src/batteries/llm/litert\_lm/exceptions.ts:86](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/litert_lm/exceptions.ts#L86)

Raised when a [@nhtio/adk!Media](../../../../../common/classes/Media.md) instance whose modality cannot be represented for the
LiteRT-LM model reaches the adapter under `unsupportedMediaPolicy: 'throw'`.

## Remarks

The `@litert-lm/core` types expose `audioModalityEnabled` / `visionModalityEnabled`, but the
preview `.litertlm` models are text-in/text-out today. Media this adapter cannot map (or that the
configured model does not accept) triggers this under the `'throw'` policy; switch to
`'fallback-stash'` or `'synthetic-description'` to degrade to a text representation instead.

Printf args: `[kind, mimeType, filename]`.
