transport

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenAIHandler

type OpenAIHandler struct {
	Service *services.OpenAIService
	Tools   []openai.Tool
	Plugins []plugins.Plugin
}

func NewOpenAIHandler

func NewOpenAIHandler(service *services.OpenAIService, tools []openai.Tool, plugins []plugins.Plugin) *OpenAIHandler

func (*OpenAIHandler) RunEventLoop

func (h *OpenAIHandler) RunEventLoop()

type SlackHandler

type SlackHandler struct {
	Service *services.SlackService
}

func NewSlackHandler

func NewSlackHandler(service *services.SlackService) *SlackHandler

func (*SlackHandler) RegisterSlackHandlers

func (h *SlackHandler) RegisterSlackHandlers() *socketmode.SocketmodeHandler

func (*SlackHandler) RunEventLoop

func (h *SlackHandler) RunEventLoop()

type ThreadMessage

type ThreadMessage struct {
	Event    *slackevents.AppMentionEvent `json:"event"`
	Messages []slack.Message              `json:"messages"`
}

Jump to

Keyboard shortcuts

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