plugin

package
v0.0.0-...-2144169 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO make this configurable
	PluginSourcePath  = "./module/plugin/source"
	PluginCompilePath = "./module/plugin/compiled"
)
View Source
var ErrPluginCompilePathMissing = errors.New("plugin compiled path is missing")
View Source
var ErrPluginSourcePathMissing = errors.New("plugin source path is missing")

Functions

func CheckPaths

func CheckPaths() error

Types

type Module

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

func (*Module) Execute

func (m *Module) Execute(args, body string) (string, error)

func (*Module) ID

func (m *Module) ID() string

func (*Module) Load

func (m *Module) Load(cfg config.Config, client *openai.Client) error

func (*Module) Prompt

func (m *Module) Prompt() string

func (*Module) UpdateConfig

func (m *Module) UpdateConfig(cfg config.Config)

Jump to

Keyboard shortcuts

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