plugins

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin interface {
	GetTools(log zerolog.Logger) []openai.Tool
	RunTool(log zerolog.Logger, toolName string, parameters string, messages []openai.ChatCompletionMessage, tools []openai.Tool) (string, error)
	RunEventLoop(log zerolog.Logger, natsClient *nats.Conn)
}

func LoadPlugins added in v0.3.0

func LoadPlugins() ([]Plugin, error)

type PluginConfig

type PluginConfig struct {
	Name       string
	NatsClient *nats.Conn
}

Jump to

Keyboard shortcuts

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