Documentation
¶
Index ¶
- func ClearStored() error
- func ConfigPath() (string, error)
- func MaskAPIKey(value string) string
- func NeedsAPIKey(provider string) bool
- func NormalizeMCPProviderName(name string) string
- func ResolveRuntimeSession(provider string) (askauth.Session, string, string, error)
- func ResolveRuntimeSessionWithContext(ctx context.Context, provider string) (askauth.Session, string, string, error)
- func SaveStored(settings Settings) error
- type EffectiveSettings
- type MCP
- type MCPServer
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearStored ¶
func ClearStored() error
func ConfigPath ¶
func MaskAPIKey ¶
func NeedsAPIKey ¶
func NormalizeMCPProviderName ¶ added in v0.2.1
func ResolveRuntimeSession ¶ added in v0.2.0
func ResolveRuntimeSessionWithContext ¶ added in v0.2.2
func SaveStored ¶
Types ¶
type EffectiveSettings ¶
type EffectiveSettings struct {
Settings
APIKeySource string
OAuthTokenSource string
EndpointSource string
ProviderSource string
ModelSource string
AuthStatus string
AccountID string
LogLevel string
}
func ResolveEffective ¶
func ResolveEffective(cli Settings) (EffectiveSettings, error)
type Settings ¶
type Settings struct {
Provider string `json:"provider,omitempty"`
Model string `json:"model,omitempty"`
APIKey string `json:"apiKey,omitempty"`
OAuthToken string `json:"oauthToken,omitempty"`
Endpoint string `json:"endpoint,omitempty"`
MCP MCP `json:"mcp,omitempty"`
}
func LoadStored ¶
Click to show internal directories.
Click to hide internal directories.