Skip to content
1 min read · 71 words

Variable: E_UNSUPPORTED_MEDIA_MODALITY

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

Raised when a @nhtio/adk!Media instance whose modality cannot be natively represented in the OpenAI Chat Completions wire format reaches the adapter under unsupportedMediaPolicy: 'throw'.

Remarks

Today only kind: 'video' triggers this — Chat Completions natively supports image, audio, and document content blocks but has no video block. Consumers can opt out of the throw by switching to 'fallback-stash' or 'synthetic-description' (see @nhtio/adk/batteries/llm/openai_chat_completions/types!UnsupportedMediaPolicy).

Printf args: [kind, mimeType, filename].