Documentation
¶
Overview ¶
Package catalogembed composes manifest YAML into the SDK catalog embed schema. Server-module only — imports app/* and writes sdk/catalog/catalog.json.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var SDKAdapters = map[string]struct{}{
"openai": {},
"openai_responses": {},
"anthropic": {},
"gemini": {},
}
SDKAdapters is the adapter-name set the public SDK client supports today.
Functions ¶
func Compose ¶
Compose loads manifest documents into a catalog snapshot and flattens it to the SDK embed schema. Cross-refs resolve via minted ids (no Postgres).
func FlattenScoped ¶ added in v0.11.5
func FlattenScoped(snap *catalog.Snapshot, at time.Time, keep func(*model.Model, *binding.Binding) bool) *sdkcatalog.Catalog
FlattenScoped projects the snapshot into the SDK catalog schema, keeping only the enabled bindings keep accepts; nil keep keeps all. Hosts left without a binding and sidecars for unserved slugs drop out, so a scoped document never names what keep refused.
func MarshalJSON ¶
func MarshalJSON(c *sdkcatalog.Catalog) ([]byte, error)
MarshalJSON encodes c deterministically (sorted hosts and bindings).
func ValidateAdapters ¶
func ValidateAdapters(c *sdkcatalog.Catalog) error
ValidateAdapters returns an error if any binding uses an adapter name outside SDKAdapters.
Types ¶
This section is empty.