Skip to content

Commit

Permalink
Merge pull request #7 from fandujar/feat/plugins
Browse files Browse the repository at this point in the history
feat: add plugins
  • Loading branch information
fandujar authored Sep 28, 2024
2 parents b4db25b + 0d9fa07 commit b02e7f3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pkg/plugins/plugins.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit b02e7f3

Please sign in to comment.