services

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModel added in v0.5.1

func GetModel() string

func MyNameIs added in v0.2.0

func MyNameIs() string

Types

type OpenAIService

type OpenAIService struct {
	NatsClient     *nats.Conn
	OpenAIProvider *providers.OpenAIProvider
}

func NewOpenAIService

func NewOpenAIService(p *providers.OpenAIProvider, nc *nats.Conn) *OpenAIService

func (*OpenAIService) ChatCompletion

func (s *OpenAIService) ChatCompletion(messages []openai.ChatCompletionMessage, tools []openai.Tool, plugins []plugins.Plugin) (string, error)

type SlackService

type SlackService struct {
	SlackProvider *providers.SlackProvider
	NatsClient    *nats.Conn
}

func NewSlackService

func NewSlackService(slackProvider *providers.SlackProvider, natsClient *nats.Conn) *SlackService

func (*SlackService) GetAllMessagesFromThread

func (s *SlackService) GetAllMessagesFromThread(channel, threadTimestamp string) ([]slack.Message, error)

Jump to

Keyboard shortcuts

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