Documentation
¶
Index ¶
- func BuildAppOptions(mcpConfig *config.Config, modelName string, serverNames, toolNames []string) app.Options
- func CollectAgentMetadata(k *kit.Kit, mcpConfig *config.Config) (provider, modelName string, serverNames, toolNames []string, ...)
- func DisplayDebugConfig(cli *ui.CLI, k *kit.Kit, mcpConfig *config.Config, provider string)
- func GetRootCommand(v string) *cobra.Command
- func InitConfig()
- func LoadConfigWithEnvSubstitution(configPath string) error
- func SetupCLIForNonInteractive(k *kit.Kit) (*ui.CLI, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAppOptions ¶
func BuildAppOptions(mcpConfig *config.Config, modelName string, serverNames, toolNames []string) app.Options
BuildAppOptions constructs the app.Options struct from the current state.
func CollectAgentMetadata ¶
func CollectAgentMetadata(k *kit.Kit, mcpConfig *config.Config) (provider, modelName string, serverNames, toolNames []string, mcpToolCount, extensionToolCount int)
CollectAgentMetadata extracts model display info and tool/server name lists from the Kit instance, used to populate app.Options and UI setup. It also returns the number of MCP tools and extension tools separately.
func DisplayDebugConfig ¶
DisplayDebugConfig builds and displays the debug configuration map through the CLI for non-interactive mode.
func GetRootCommand ¶
GetRootCommand returns the root command with the version set. This function is the main entry point for the KIT CLI and should be called from main.go with the appropriate version string.
func InitConfig ¶
func InitConfig()
InitConfig initializes the configuration for KIT by loading config files, environment variables. It delegates to the SDK's InitConfig, injecting the CLI-specific configFile flag and debug mode. This function is automatically called by cobra before command execution.
func LoadConfigWithEnvSubstitution ¶
LoadConfigWithEnvSubstitution loads a config file with environment variable substitution. Delegates to the SDK implementation.
Types ¶
This section is empty.