Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLIConfigPatch ¶
type CLIConfigPatch struct {
DefaultModel *string
DefaultProvider *string
DefaultAltModel *string
DefaultAltProvider *string
DefaultAutocompleteModel *string
DefaultAutocompleteProvider *string
DefaultMaxTokens *string
DefaultThink *string
DefaultChain *string
HITLPolicyName *string
TelemetryEnabled *string
UpdateCheck *string
DefaultMissionAgent *string
DefaultMissionPolicy *string
}
type CLIConfigSnapshot ¶
type CLIConfigSnapshot struct {
DefaultModel string
DefaultProvider string
DefaultAltModel string
DefaultAltProvider string
DefaultAutocompleteModel string
DefaultAutocompleteProvider string
DefaultMaxTokens string
DefaultThink string
DefaultChain string
HITLPolicyName string
TelemetryEnabled string
UpdateCheck string
DefaultMissionAgent string
DefaultMissionPolicy string
ResolvedFrom map[string]string
Present map[string]bool
}
type RuntimeDefaults ¶ added in v0.33.0
type RuntimeDefaults struct {
ChainRef string
FIMChainRef string
Model string
Provider string
AltModel string
AltProvider string
AutocompleteModel string
AutocompleteProvider string
MaxTokens string
Think string
}
func ResolveRuntimeDefaults ¶ added in v0.33.0
func ResolveRuntimeDefaults(ctx context.Context, service Service, fallback RuntimeDefaults) RuntimeDefaults
func (RuntimeDefaults) TemplateVars ¶ added in v0.33.0
func (d RuntimeDefaults) TemplateVars() map[string]string
func (RuntimeDefaults) Trimmed ¶ added in v0.33.0
func (d RuntimeDefaults) Trimmed() RuntimeDefaults
func (RuntimeDefaults) WithCLIConfig ¶ added in v0.33.0
func (d RuntimeDefaults) WithCLIConfig(snap CLIConfigSnapshot) RuntimeDefaults
type Service ¶
type Service interface {
Get(ctx context.Context) ([]statetype.BackendRuntimeState, error)
SetupStatus(ctx context.Context) (setupcheck.Result, error)
Refresh(ctx context.Context) (setupcheck.Result, error)
CLIConfig(ctx context.Context) (CLIConfigSnapshot, error)
SetCLIConfig(ctx context.Context, patch CLIConfigPatch) (CLIConfigSnapshot, error)
}
func WithActivityTracker ¶
func WithActivityTracker(service Service, tracker libtracker.ActivityTracker) Service
Click to show internal directories.
Click to hide internal directories.