Documentation
¶
Index ¶
- func DeploymentCatalogSlug(model string) string
- func SlugCandidates(models ...string) []string
- type AuthField
- type AuthFieldType
- type AuthTypeOption
- type MCPServerCatalog
- type OptionFieldType
- type Pricing
- type PricingResolver
- type ProviderOptionField
- type ServerlessFilter
- type ServerlessFilterInput
- type Service
- type Syncer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeploymentCatalogSlug ¶
func SlugCandidates ¶
Types ¶
type AuthFieldType ¶
type AuthFieldType string
const ( AuthFieldTypeString AuthFieldType = "string" AuthFieldTypeBoolean AuthFieldType = "boolean" )
type AuthTypeOption ¶
type AuthTypeOption struct {
Type string `json:"type"`
Variant string `json:"variant,omitempty"`
Label string `json:"label"`
Description string `json:"description,omitempty"`
Fields []AuthField `json:"fields"`
}
func ProviderAuthOptions ¶
func ProviderAuthOptions(code string) []AuthTypeOption
type MCPServerCatalog ¶
func NewMCPServerCatalog ¶
func NewMCPServerCatalog() (MCPServerCatalog, error)
NewMCPServerCatalog loads the curated catalog of remote MCP servers embedded at build time. The embedded JSON is a validated build asset, so a parse failure is a programming error and surfaces at startup.
type OptionFieldType ¶
type OptionFieldType string
const ( OptionFieldTypeString OptionFieldType = "string" OptionFieldTypeEnum OptionFieldType = "enum" OptionFieldTypeMap OptionFieldType = "map" )
type PricingResolver ¶
func NewPricingResolver ¶
func NewPricingResolver(repo domain.Repository, manager *cache.TTLMapManager, logger *slog.Logger) PricingResolver
type ProviderOptionField ¶
type ProviderOptionField struct {
Key string `json:"key"`
Label string `json:"label"`
Type OptionFieldType `json:"type"`
Description string `json:"description,omitempty"`
Required bool `json:"required,omitempty"`
Default any `json:"default,omitempty"`
Enum []appplugins.EnumOption `json:"enum,omitempty"`
}
func ProviderOptions ¶
func ProviderOptions(code string) []ProviderOptionField
type ServerlessFilter ¶ added in v0.27.0
type ServerlessFilter interface {
// Filter narrows models to the ones a registry's credentials can actually
// invoke: serverless, in the registry's region, and with model access granted
// to the account.
//
// It never returns an error. Any provider other than Bedrock, any non-AWS
// auth, and any control plane failure yield the input unchanged, since a
// too-long list degrades gracefully while a spuriously empty one does not.
// A verified empty result, on the other hand, is passed through as empty.
Filter(ctx context.Context, in ServerlessFilterInput) []domain.Model
}
func NewServerlessFilter ¶ added in v0.27.0
func NewServerlessFilter( finder appregistry.Finder, client controlplane.Client, logger *slog.Logger, ) ServerlessFilter
type ServerlessFilterInput ¶ added in v0.27.0
type ServerlessFilterInput struct {
ProviderCode string
GatewayID ids.GatewayID
RegistryID ids.RegistryID
Models []domain.Model
}
ServerlessFilterInput carries what narrowing a catalog listing needs: the provider being listed, the registry whose credentials decide availability, and the models to narrow.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.