Skip to content

Interface: LLMCapabilities

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / LLMCapabilities

Defined in: src/types/llm.ts:67

LLM capabilities declare what a provider’s API supports.

These are API-level capabilities, not individual model capabilities. If a user attempts to use a feature with a model that doesn’t support it, the provider’s API will return an error.

Capabilities are static and do not vary per-request or per-model.

const capabilities: LLMCapabilities = {
streaming: true,
tools: true,
structuredOutput: true,
imageInput: true,
videoInput: false,
audioInput: false
};

audioInput: boolean

Defined in: src/types/llm.ts:87

Provider API supports audio input in messages


documentInput: boolean

Defined in: src/types/llm.ts:81

Provider API supports document input in messages (PDFs, text files)


imageInput: boolean

Defined in: src/types/llm.ts:78

Provider API supports image input in messages


optional imageOutput: boolean

Defined in: src/types/llm.ts:90

Provider API supports image generation output (via image() or built-in tools)


streaming: boolean

Defined in: src/types/llm.ts:69

Provider API supports streaming responses


structuredOutput: boolean

Defined in: src/types/llm.ts:75

Provider API supports native structured output (JSON schema)


tools: boolean

Defined in: src/types/llm.ts:72

Provider API supports tool/function calling


videoInput: boolean

Defined in: src/types/llm.ts:84

Provider API supports video input in messages