Help us shape the future of Go! Take the 2026 Go Developer Survey

slack

package
v0.4.21 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config, deps Deps) (agentkit.Platform, error)

New registers platform/slack: Slack Socket Mode; SessionID follows cc-connect slack conventions.

func ReconstructDelivery

func ReconstructDelivery(sessionKey string) (delivery, error)

ReconstructDelivery parses a cc-connect style slack session key for proactive sends.

Types

type Config

type Config struct {
	common.AgentRoutingConfig
	BotToken          string `json:"botToken"`
	BotTokenRef       string `json:"botTokenRef"`
	AppToken          string `json:"appToken"`
	AppTokenRef       string `json:"appTokenRef"`
	Domain            string `json:"domain"` // optional Slack Web API base URL override
	AllowFrom         string `json:"allowFrom"`
	AllowChannels     string `json:"allowChannels"`
	GroupReplyAll     bool   `json:"groupReplyAll"`
	DoneEmoji         string `json:"doneEmoji"`
	CancelledEmoji    string `json:"cancelledEmoji"`
	ErrorEmoji        string `json:"errorEmoji"`
	UnknownCardAction string `json:"unknownCardAction"` // forward (default) | ignore
}

func (*Config) Validate added in v0.3.48

func (c *Config) Validate() error

Validate implements pluginkit.Validator.

type Deps

type Deps struct {
	Commands     agentkit.Commands     `json:"commands,omitempty"`
	SessionStore agentkit.SessionStore `json:"sessionStore,omitempty"`
	Workspace    workspace.Service     `json:"workspace,omitempty"`
	Credentials  credentials.Store     `json:"credentials,omitempty"`
}

type Platform

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

func (*Platform) PermissionCapability

func (p *Platform) PermissionCapability() permission.Capability

func (*Platform) PlatformID

func (p *Platform) PlatformID() string

func (*Platform) ReadChatHistory added in v0.1.22

func (p *Platform) ReadChatHistory(ctx context.Context, req chathistory.Request) (chathistory.Result, error)

ReadChatHistory lists messages from a Slack channel or thread for the given delivery session.

func (*Platform) Receive

func (p *Platform) Receive(ctx context.Context) (agentkit.MessageEvent, error)

func (*Platform) ResolveChannelName

func (p *Platform) ResolveChannelName(channelID string) (string, error)

func (*Platform) Send

func (p *Platform) Send(ctx context.Context, event agentkit.OutboundEvent) error

Jump to

Keyboard shortcuts

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