commands

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commands added in v0.0.10

type Commands struct {
	// contains filtered or unexported fields
}

func New

func New(
	ctx context.Context,
	config Config,
	bot *internal.Bot,
	slackIntegration slack_integration.Integration,
	llmClient llm.Client,
	docsConfig *docs.Config,
) (*Commands, error)

func (*Commands) Generate added in v0.0.23

func (c *Commands) Generate(ctx context.Context, channelID string, slackTS string, msg dto.MessageAttrs, force bool) (string, error)

func (*Commands) Name added in v0.0.10

func (c *Commands) Name() string

func (*Commands) OnMessage added in v0.0.10

func (c *Commands) OnMessage(ctx context.Context, channelID string, slackTS string, msg dto.MessageAttrs) error

func (*Commands) OnThreadMessage added in v0.0.10

func (c *Commands) OnThreadMessage(ctx context.Context, channelID string, slackTS string, parentTS string, msg dto.MessageAttrs) error

func (*Commands) Respond added in v0.0.23

func (c *Commands) Respond(ctx context.Context, channelID string, slackTS string, msg dto.MessageAttrs, force bool) error

type Config added in v0.0.23

type Config struct {
	MCPServerURLs []string `envconfig:"MCP_SERVER_URLS"`
}

Jump to

Keyboard shortcuts

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