Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "autop [prompt]", Short: "Run a configured local LLM CLI through one facade", SilenceErrors: true, SilenceUsage: true, Args: cobra.ArbitraryArgs, RunE: runRootCommand, }
RootCmd is the top-level autop command.
View Source
var WizardCmd = &cobra.Command{ Use: "wizard", Aliases: []string{"w"}, Short: "Interactively configure an autop PM2 task", Args: cobra.NoArgs, RunE: runWizardCommand, }
WizardCmd interactively configures an autop PM2 task.
Functions ¶
func CommandExitCode ¶
CommandExitCode returns the child process exit code or the generic command error code.
Types ¶
type ClientConfig ¶
type ClientConfig = autopdriver.ClientConfig
type CredentialConfig ¶
type CredentialConfig = autopdriver.CredentialConfig
type PromptTemplate ¶
type PromptTemplate struct {
Content string `json:"content,omitempty" mapstructure:"content"`
File string `json:"file,omitempty" mapstructure:"file"`
}
PromptTemplate is an inline or file-backed Go text template.
type Settings ¶
type Settings struct {
DefaultClient string `json:"default_client" mapstructure:"default_client"`
Clients map[string]ClientConfig `json:"clients" mapstructure:"clients"`
Templates map[string]PromptTemplate `json:"templates" mapstructure:"templates"`
}
Settings is the complete runtime configuration for autop.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.