model

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package model is the public, read-only discovery view of a catalogued model: its identity, capabilities, the provider that authored it, and the hosts that serve it. Resolve a model ref (bare slug, provider/model, wire name, or a declared alias) and navigate to its author and hosts; everything is plain, JSON-serializable data for rendering a catalog UI.

This is not the call path — constructing a client and making requests lives in sdk/client and is unaffected by anything here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capabilities

type Capabilities = graph.Capabilities

Model and the types reachable from it. These are aliases to the internal discovery graph, so a *Model navigates to *host.Host / *provider.Provider with no conversions.

type ContextWindow

type ContextWindow = graph.ContextWindow

Model and the types reachable from it. These are aliases to the internal discovery graph, so a *Model navigates to *host.Host / *provider.Provider with no conversions.

type Host

type Host = graph.Host

Model and the types reachable from it. These are aliases to the internal discovery graph, so a *Model navigates to *host.Host / *provider.Provider with no conversions.

type Modalities

type Modalities = graph.Modalities

Model and the types reachable from it. These are aliases to the internal discovery graph, so a *Model navigates to *host.Host / *provider.Provider with no conversions.

type Model

type Model = graph.Model

Model and the types reachable from it. These are aliases to the internal discovery graph, so a *Model navigates to *host.Host / *provider.Provider with no conversions.

func Resolve

func Resolve(ref string) (*Model, error)

Resolve returns the model for a ref, aggregating every host that serves it. Ref forms: "gpt-4o", "openai/gpt-4o", the provider wire name, or a declared alias. Unlike a call-path resolve, a model served on several hosts is one Model with several Hosts — not an ambiguity error.

type ModelHost

type ModelHost = graph.ModelHost

Model and the types reachable from it. These are aliases to the internal discovery graph, so a *Model navigates to *host.Host / *provider.Provider with no conversions.

type Provider

type Provider = graph.Provider

Model and the types reachable from it. These are aliases to the internal discovery graph, so a *Model navigates to *host.Host / *provider.Provider with no conversions.

type Rate

type Rate = graph.Rate

Model and the types reachable from it. These are aliases to the internal discovery graph, so a *Model navigates to *host.Host / *provider.Provider with no conversions.

Jump to

Keyboard shortcuts

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