Documentation
¶
Index ¶
- func DiscoverPlugins()
- func GetDefaultPath() (string, error)
- func RunApp(server *worker.AgentServer, evalRunners ...EvalRunner)
- func RunAppWithOptions(server *worker.AgentServer, opts ...Option)
- func RunWithDevMode(args []string) error
- type CliArgs
- type ConnectArgs
- type ConsoleArgs
- type ConsoleMode
- type EvalRunner
- type ImportData
- type ModuleData
- type Option
- type Watcher
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 RunApp ¶
func RunApp(server *worker.AgentServer, evalRunners ...EvalRunner)
func RunAppWithOptions ¶ added in v0.1.5
func RunAppWithOptions(server *worker.AgentServer, opts ...Option)
func RunWithDevMode ¶
Types ¶
type ConnectArgs ¶ added in v0.0.15
type ConsoleArgs ¶ added in v0.0.15
type ConsoleMode ¶ added in v0.0.15
type ConsoleMode string
const ( ConsoleModeAudio ConsoleMode = "audio" ConsoleModeText ConsoleMode = "text" )
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
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
Click to show internal directories.
Click to hide internal directories.