Documentation
¶
Overview ¶
Package catalog is what connectors offer people to choose: the providers a harness may have and the presets, a full session config each, they show as models. The harness never reads it; it takes whatever full config a connector sends. build/ makes it from source.json and models.dev, and a workflow publishes it at URL.
Index ¶
Constants ¶
View Source
const URL = "https://dl.mainplane.ai/catalog/v1.json"
URL is the published catalog. v1 changes only with a change that breaks readers.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Cost ¶
type Cost struct {
Input float64 `json:"input"`
Output float64 `json:"output"`
CacheRead float64 `json:"cache_read"`
CacheWrite float64 `json:"cache_write"`
}
Cost is USD per million tokens.
type Preset ¶
type Preset struct {
Name string `json:"name"`
Provider string `json:"provider"`
Model string `json:"model"`
Tools string `json:"tools"`
ContextLimit int `json:"context_limit"`
Input []string `json:"input"`
Params map[string]json.RawMessage `json:"params"`
Cost Cost `json:"cost"`
Settings []Setting `json:"settings,omitempty"`
}
Preset is a full session config but its workers.
type Provider ¶
type Provider struct {
Name string `json:"name"`
Shape string `json:"shape"`
URL string `json:"url,omitempty"` // the config's url, where it is not the shape's default
Session string `json:"session,omitempty"` // the config's session header
Group string `json:"group,omitempty"` // providers that take one key, one per shape a vendor's models span: a connector asks once and sets it on each
}
Click to show internal directories.
Click to hide internal directories.