Documentation
¶
Overview ¶
Package capability provides a middleware that overrides a model's reported ai.Capabilities with a declarative, field-level ai.CapabilityOverride.
It exists so an application can let users declare what a model supports (for example a self-hosted vision model behind an OpenAI-compatible endpoint) without changing any provider adapter: the override is applied on top of whatever the wrapped model already reports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(override ai.CapabilityOverride) ai.Middleware
New returns an ai.Middleware that applies override to the wrapped model's capability report. The zero override returns the wrapped model unchanged, so it is safe to chain unconditionally.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.