modelcapability

package
v0.28.14 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const KeyPrefix = "model-capability:"

Variables

This section is empty.

Functions

func Key

func Key(provider, model string) (string, string, string, error)

Types

type Override

type Override struct {
	Provider string `json:"provider"`
	Model    string `json:"model"`
	CanThink *bool  `json:"canThink,omitempty"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(store runtimetypes.Store) Service

func (Service) Get

func (s Service) Get(ctx context.Context, provider, model string) (*Override, bool, error)

func (Service) SetThink

func (s Service) SetThink(ctx context.Context, provider, model string, canThink bool) (*Override, error)

func (Service) Unset

func (s Service) Unset(ctx context.Context, provider, model string) (bool, error)

Jump to

Keyboard shortcuts

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