Versions in this module Expand all Collapse all v0 v0.0.4 Nov 26, 2026 Changes in this version + var ErrInvalidConfig = errors.New("models: invalid configuration") + func RankMatch(rawQuery string, m Model) (tier, score int, ok bool) + func SuggestClosest(listed []Model, requested string, limit int) []string + func ToAPIThinkingValues(kind string, values []string) []api.ThinkingValue + type Capabilities struct + Attachment *bool + Completion *bool + Decision *bool + Dimensions []int + Embedding *bool + StructuredOutput *bool + Temperature *bool + Thinking []ThinkingOption + Tools *bool + func (c Capabilities) SupportsCompletion() bool + func (c Capabilities) SupportsDecision() bool + func (c Capabilities) SupportsEmbedding() bool + func (c Capabilities) SupportsTools() bool + type Catalog struct + func Build(cat WorkspaceCatalog, profiles profile.Provider) (*Catalog, error) + func BuildContext(ctx context.Context, cat WorkspaceCatalog, profiles profile.Provider) (*Catalog, error) + func (c *Catalog) Get(id ID) (Model, bool) + func (c *Catalog) GetContext(ctx context.Context, id ID) (Model, bool) + func (c *Catalog) List() []Model + func (c *Catalog) Resolve(role Role, explicit ...string) (Model, bool) + func (c *Catalog) ResolveContext(ctx context.Context, role Role, explicit ...string) (Model, bool) + func (c *Catalog) ResolveDecisionCandidates(ctx context.Context, refs ...string) []Model + type ID string + func Normalize(provider, model string) ID + func (id ID) Name() string + func (id ID) Provider() string + func (id ID) String() string + func (id ID) Valid() bool + type Limits struct + Context int + Dimensions int + Output int + type Modalities struct + Input []string + Output []string + type Model struct + Aliases []string + Capabilities Capabilities + Description string + ID ID + Label string + Limits Limits + Modalities Modalities + Name string + Pricing *api.ModelPricing + ProviderType string + QuotaBilled bool + Source Source + func Merge(id ID, providerType string, manifest *warp.ProviderModel, ...) Model + func (m Model) AliasRefs() []string + func (m Model) Clone() Model + func (m Model) Configure(s Settings) (llm.ModelConfig, []api.SessionDiagnostic, error) + func (m Model) DefaultThinking() *api.ThinkingSetting + func (m Model) EffectiveThinking(session, agent *api.ThinkingSetting) *api.ThinkingSetting + func (m Model) Profile() profile.Profile + func (m Model) SupportsCompletion() bool + func (m Model) SupportsInputModality(mod string) bool + func (m Model) SupportsThinking(setting *api.ThinkingSetting) bool + func (m Model) ToAPI() api.Model + type QuotaCapability interface + QuotaCapable func(m Model) bool + type Role string + const RoleCompletion + const RoleDecision + const RoleEmbedding + type Settings struct + StrictThinking bool + Temperature *float32 + Thinking *api.ThinkingSetting + type Source struct + BuiltIn bool + Manifest bool + type ThinkingOption struct + Default string + IsDefault bool + Max int + Min int + Type string + Values []string + type WorkspaceCatalog interface + Providers func() []*warp.ModelProvider + ResolveModels func(role warp.ModelRole, explicit ...string) []warp.ResolvedModel + WorkspaceSpec func() *warp.Workspace