diff --git a/pkg/plugins/plugins.go b/pkg/plugins/plugins.go new file mode 100644 index 0000000..f6ae438 --- /dev/null +++ b/pkg/plugins/plugins.go @@ -0,0 +1,18 @@ +package plugins + +import ( + "github.com/nats-io/nats.go" + "github.com/sashabaranov/go-openai" +) + +type Plugin interface { + New(config *PluginConfig) (Plugin, error) + GetName() string + GetTools() []openai.Tool + RunEventLoop() +} + +type PluginConfig struct { + Name string + NatsClient *nats.Conn +}