Documentation
¶
Index ¶
- type ProviderSpec
- type Registry
- func (r *Registry) ActiveSelection() (string, string)
- func (r *Registry) Models(ctx context.Context, providerID string) ([]string, error)
- func (r *Registry) Normalize(providerID string, modelID string) (core.SessionProviderOption, string, error)
- func (r *Registry) Providers() []core.SessionProviderOption
- func (r *Registry) Resolve(ctx context.Context, providerID string, modelID string) (providers.Runtime, core.SessionProviderOption, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderSpec ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func New ¶
func New(activeProviderID string, providerSpecs []ProviderSpec) *Registry
func (*Registry) ActiveSelection ¶
func (*Registry) Providers ¶
func (r *Registry) Providers() []core.SessionProviderOption
Click to show internal directories.
Click to hide internal directories.