slack

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() core.Interface

Types

type Bot

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

func NewBot

func NewBot(botToken, appToken string, store *session.Store, reg *ThreadRegistry, llmClient *provider.Client, toolRegistry *tools.Registry, systemPrompt string, maxRounds int, cwd string, subagents map[string]*agent.SubagentDef) *Bot

func (*Bot) Run

func (b *Bot) Run(ctx context.Context) error

type BotAdapter

type BotAdapter struct{}

func (BotAdapter) Name

func (BotAdapter) Name() string

func (BotAdapter) Run

func (BotAdapter) Run(ctx context.Context, deps core.Deps) error

type DebouncedUpdater

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

func NewDebouncedUpdater

func NewDebouncedUpdater(client *slack.Client, channel, threadTs, msgTs string) *DebouncedUpdater

func (*DebouncedUpdater) Append

func (d *DebouncedUpdater) Append(text string)

func (*DebouncedUpdater) Finalize

func (d *DebouncedUpdater) Finalize()

func (*DebouncedUpdater) SetError

func (d *DebouncedUpdater) SetError(text string)

type ThreadRegistry

type ThreadRegistry struct {
	Threads map[string]string `json:"threads"`
	// contains filtered or unexported fields
}

func NewThreadRegistry

func NewThreadRegistry(dir string) (*ThreadRegistry, error)

func (*ThreadRegistry) Get

func (tr *ThreadRegistry) Get(threadTs string) (string, bool)

func (*ThreadRegistry) Set

func (tr *ThreadRegistry) Set(threadTs, sessionID string) error

Jump to

Keyboard shortcuts

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