Interface: AIAdapterCapabilityRegistry
Makaio Framework / ai-adapters-core / AIAdapterCapabilityRegistry
Interface: AIAdapterCapabilityRegistry
Section titled “Interface: AIAdapterCapabilityRegistry”Defined in: ../../../adapters/core/src/types/capabilities.ts:22
Extensible registry of all known AI adapter capabilities.
This interface can be extended by external packages (extensions) via declaration merging:
Example
Section titled “Example”// In a plugin packagedeclare module '@makaio/ai-adapters-core' { interface AIAdapterCapabilityRegistry { customAuth: { oauth: boolean; saml: boolean; }; }}
// Now these work automatically:caps.hasAll(['customAuth:oauth']) // ✅ Type-safecaps.customAuthOauth // ✅ Auto-generated propertyProperties
Section titled “Properties”chat:
object
Defined in: ../../../adapters/core/src/types/capabilities.ts:31
inTurnMessages
Section titled “inTurnMessages”inTurnMessages:
boolean
modelSwitchInSession
Section titled “modelSwitchInSession”modelSwitchInSession:
boolean
Defined in: ../../../adapters/core/src/types/capabilities.ts:34
session
Section titled “session”session:
object
Defined in: ../../../adapters/core/src/types/capabilities.ts:27
fork:
boolean
resume
Section titled “resume”resume:
boolean
streaming
Section titled “streaming”streaming:
boolean
Defined in: ../../../adapters/core/src/types/capabilities.ts:35
structuredOutput
Section titled “structuredOutput”structuredOutput:
boolean
Defined in: ../../../adapters/core/src/types/capabilities.ts:42
Adapter supports native structured output (JSON schema enforcement at the model level via response_format or equivalent).
systemPrompt
Section titled “systemPrompt”systemPrompt:
object
Defined in: ../../../adapters/core/src/types/capabilities.ts:23
append
Section titled “append”append:
boolean
override
Section titled “override”override:
boolean
tools:
boolean
Defined in: ../../../adapters/core/src/types/capabilities.ts:36
vision
Section titled “vision”vision:
boolean
Defined in: ../../../adapters/core/src/types/capabilities.ts:37