cli

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 32 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 RunWithDevMode

func RunWithDevMode(args []string) error

Types

type CliArgs

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

	// 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 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