Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverPlugins

func DiscoverPlugins()

In Python, this dynamically imports plugins. In Go, since it is a compiled language, plugins are imported anonymously in main.go (e.g., _ "github.com/cavos-io/rtp-agent/adapter/openai"). This function exists for structural parity.

func GetDefaultPath added in v0.0.15

func GetDefaultPath() (string, error)

func RunApp

func RunApp(server *worker.AgentServer, evalRunners ...EvalRunner)

func RunAppWithOptions added in v0.1.5

func RunAppWithOptions(server *worker.AgentServer, opts ...Option)

func RunWithDevMode

func RunWithDevMode(args []string) error

Types

type CliArgs

type CliArgs struct {
	LogLevel   string
	LogFormat  string
	URL        string
	APIKey     string
	APISecret  string
	DevMode    bool
	Simulation bool
	Reload     bool
	ReloadAddr string

	// ReloadCount tracks how many times the dev-mode worker has been reloaded.
	ReloadCount int
}

type ConnectArgs added in v0.0.15

type ConnectArgs struct {
	RoomName            string
	ParticipantIdentity string
	LogLevel            string
	URL                 string
	APIKey              string
	APISecret           string
}

type ConsoleArgs added in v0.0.15

type ConsoleArgs struct {
	InputDevice  string
	OutputDevice string
	Mode         ConsoleMode
	Record       bool
	ListDevices  bool
	LogLevel     string
}

type ConsoleMode added in v0.0.15

type ConsoleMode string
const (
	ConsoleModeAudio ConsoleMode = "audio"
	ConsoleModeText  ConsoleMode = "text"
)

type EvalRunner added in v0.0.15

type EvalRunner func(context.Context) (string, error)

type ImportData added in v0.0.15

type ImportData struct {
	AppName      string
	ModuleData   ModuleData
	ImportString string
}

func GetImportData added in v0.0.15

func GetImportData(path string) (ImportData, error)

type ModuleData added in v0.0.15

type ModuleData struct {
	ModuleImportString string
	ExtraSysPath       string
	ModulePaths        []string
}

func GetModuleDataFromPath added in v0.0.15

func GetModuleDataFromPath(path string) (ModuleData, error)

type Option added in v0.1.5

type Option interface {
	// contains filtered or unexported methods
}

func WithEvalRunner added in v0.1.5

func WithEvalRunner(runner EvalRunner) Option

func WithLogger added in v0.1.5

func WithLogger(logger protologger.Logger) Option

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(paths []string, onChange func(), cliArgs ...*CliArgs) *Watcher

func (*Watcher) Reloaded added in v0.0.15

func (w *Watcher) Reloaded()

func (*Watcher) Start

func (w *Watcher) Start() error

func (*Watcher) Stop

func (w *Watcher) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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