agent

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AgentCmd = &cobra.Command{
	Use:                   "ai [OPTIONS] [@AGENT] MESSAGE...",
	Short:                 "AI Command Line Tool",
	Version:               internal.Version,
	DisableFlagsInUseLine: true,
	DisableSuggestions:    true,
	Args:                  cobra.ArbitraryArgs,
	RunE: func(cmd *cobra.Command, args []string) error {

		return nil
	},
}

Functions

func Help

func Help(ctx context.Context, cmd *cobra.Command, args []string) error

func HelpAgents

func HelpAgents(ctx context.Context, app *api.AppConfig) error

func HelpCommands

func HelpCommands(ctx context.Context) error

func HelpHistory added in v0.7.0

func HelpHistory(ctx context.Context, app *api.AppConfig) error

func HelpInfo

func HelpInfo(ctx context.Context, app *api.AppConfig) error

func HelpModels added in v0.5.0

func HelpModels(ctx context.Context, app *api.AppConfig) error

func HelpTools

func HelpTools(ctx context.Context, app *api.AppConfig) error

func Run

func Run(ctx context.Context, argv []string) error

Types

type HelpData

type HelpData struct {
	CommandPath string

	HasExample                 bool
	Example                    string
	HasAvailableLocalFlags     bool
	HasAvailableInheritedFlags bool
	LocalFlags                 *pflag.FlagSet
	InheritedFlags             *pflag.FlagSet
	EnvNames                   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL