Versions in this module Expand all Collapse all v0 v0.30.3 Nov 24, 2026 v0.30.2 Nov 23, 2026 v0.30.1 Nov 23, 2026 v0.30.0 Nov 16, 2026 v0.21.1 Nov 15, 2026 v0.21.0 Nov 15, 2026 v0.20.1 Nov 10, 2026 Changes in this version + var ErrEmpty = errors.New("modelref: empty ref") + func Format(provider, model, host string) (string, error) + func Includes(outer, inner Ref) bool + func MatchAny(refs []string, providerSlug, modelSlug, hostSlug string) bool + func Overlap(a, b Ref) bool + func Resolve(refs []Ref, catalog []ConcreteBinding) map[string][]ConcreteBinding + func Specificity(r Ref) int + func Validate(s string) error + type Carveout struct + Binding ConcreteBinding + Losers []O + Winner O + func AssignSpecificityWins[O comparable](groups []Group[O], catalog []ConcreteBinding) (map[O][]ConcreteBinding, []Carveout[O]) + type ConcreteBinding struct + Host string + Model string + Provider string + func OverlappingBindings(a, b Ref, catalog []ConcreteBinding) []ConcreteBinding + func (b ConcreteBinding) String() string + type Conflict struct + Binding ConcreteBinding + Losers []O + Winner O + func AssignFirstWins[O comparable](groups []Group[O], catalog []ConcreteBinding) (map[O][]ConcreteBinding, []Conflict[O]) + type Group struct + Owner O + Refs []Ref + type Kind string + const KindBinding + const KindHost + const KindModel + const KindProvider + const KindProviderOnHost + type Ref struct + Host string + HostWildcard bool + Model string + ModelWildcard bool + Provider string + ProviderWildcard bool + Raw string + func MustParse(s string) Ref + func Parse(s string) (Ref, error) + func (r Ref) Covers(b ConcreteBinding) bool + func (r Ref) Kind() Kind + func (r Ref) Matches(providerSlug, modelSlug, hostSlug string) bool + type SyntaxError struct + Raw string + Reason string + func (e *SyntaxError) Error() string