Documentation
¶
Index ¶
- type AuthModelResult
- type Host
- func (h *Host) ApplyConfig(ctx context.Context, cfg RuntimeConfig)
- func (h *Host) HasScheduler() bool
- func (h *Host) ModelsForAuth(ctx context.Context, auth *coreauth.Auth) AuthModelResult
- func (h *Host) ModelsForProvider(provider string) []ModelInfo
- func (h *Host) ParseAuth(ctx context.Context, req pluginapi.AuthParseRequest) (*coreauth.Auth, bool, error)
- func (h *Host) ParseAuths(ctx context.Context, req pluginapi.AuthParseRequest) ([]*coreauth.Auth, bool, error)
- func (h *Host) PickAuth(ctx context.Context, req pluginapi.SchedulerPickRequest) (pluginapi.SchedulerPickResponse, bool, error)
- func (h *Host) PluginBusy(id string) bool
- func (h *Host) RefreshAuth(ctx context.Context, auth *coreauth.Auth) (*coreauth.Auth, bool, error)
- func (h *Host) ShutdownAll()
- func (h *Host) UnloadPlugin(id string) bool
- type ModelInfo
- type OAuthModelAlias
- type PluginInstanceConfig
- type RuntimeConfig
- type ThinkingSupport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthModelResult ¶
type AuthModelResult struct {
Provider string
Models []ModelInfo
Auth *coreauth.Auth
Handled bool
Err error
}
AuthModelResult is the public result for per-auth model discovery.
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
Host wraps the internal plugin host behind a public SDK surface.
func (*Host) ApplyConfig ¶
func (h *Host) ApplyConfig(ctx context.Context, cfg RuntimeConfig)
ApplyConfig applies plugin runtime configuration.
func (*Host) HasScheduler ¶
HasScheduler reports whether any active plugin provides a scheduler.
func (*Host) ModelsForAuth ¶
ModelsForAuth lets plugin model providers discover auth-bound models.
func (*Host) ModelsForProvider ¶
ModelsForProvider returns static models registered for a provider by plugins.
func (*Host) ParseAuth ¶
func (h *Host) ParseAuth(ctx context.Context, req pluginapi.AuthParseRequest) (*coreauth.Auth, bool, error)
ParseAuth lets plugin auth providers parse a credential payload.
func (*Host) ParseAuths ¶ added in v7.2.36
func (h *Host) ParseAuths(ctx context.Context, req pluginapi.AuthParseRequest) ([]*coreauth.Auth, bool, error)
ParseAuths lets plugin auth providers expand one credential payload into multiple auth records.
func (*Host) PickAuth ¶
func (h *Host) PickAuth(ctx context.Context, req pluginapi.SchedulerPickRequest) (pluginapi.SchedulerPickResponse, bool, error)
PickAuth lets a scheduler plugin choose an auth candidate.
func (*Host) PluginBusy ¶ added in v7.2.36
PluginBusy reports whether a plugin dynamic library is loaded or being loaded.
func (*Host) RefreshAuth ¶
RefreshAuth lets plugin auth providers refresh a credential.
func (*Host) UnloadPlugin ¶ added in v7.2.36
UnloadPlugin removes one plugin from the active runtime and closes its dynamic library.
type OAuthModelAlias ¶
OAuthModelAlias defines a model ID alias for OAuth/file-backed auth channels.
type PluginInstanceConfig ¶
PluginInstanceConfig stores host-owned plugin settings and the original plugin YAML subtree.
type RuntimeConfig ¶
type RuntimeConfig struct {
Enabled bool
Dir string
AuthDir string
ProxyURL string
ForceModelPrefix bool
OAuthModelAlias map[string][]OAuthModelAlias
OAuthExcludedModels map[string][]string
Configs map[string]PluginInstanceConfig
}
RuntimeConfig is the public plugin host configuration used by embedders.
type ThinkingSupport ¶
type ThinkingSupport = pluginapi.ThinkingSupport
ThinkingSupport describes plugin-provided thinking controls.