Interface: LLMCapabilities
@providerprotocol/ai / @providerprotocol/ai / LLMCapabilities
Interface: LLMCapabilities
Section titled “Interface: 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.
Example
Section titled “Example”const capabilities: LLMCapabilities = { streaming: true, tools: true, structuredOutput: true, imageInput: true, videoInput: false, audioInput: false};Properties
Section titled “Properties”audioInput
Section titled “audioInput”audioInput:
boolean
Defined in: src/types/llm.ts:87
Provider API supports audio input in messages
documentInput
Section titled “documentInput”documentInput:
boolean
Defined in: src/types/llm.ts:81
Provider API supports document input in messages (PDFs, text files)
imageInput
Section titled “imageInput”imageInput:
boolean
Defined in: src/types/llm.ts:78
Provider API supports image input in messages
imageOutput?
Section titled “imageOutput?”
optionalimageOutput:boolean
Defined in: src/types/llm.ts:90
Provider API supports image generation output (via image() or built-in tools)
streaming
Section titled “streaming”streaming:
boolean
Defined in: src/types/llm.ts:69
Provider API supports streaming responses
structuredOutput
Section titled “structuredOutput”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
Section titled “videoInput”videoInput:
boolean
Defined in: src/types/llm.ts:84
Provider API supports video input in messages