capability

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL