Documentation
¶
Index ¶
- func New(cfg Config, deps Deps) (agentkit.Platform, error)
- func ReconstructDelivery(sessionKey string) (delivery, error)
- type Config
- type Deps
- type Platform
- func (p *Platform) PermissionCapability() permission.Capability
- func (p *Platform) PlatformID() string
- func (p *Platform) Receive(ctx context.Context) (agentkit.MessageEvent, error)
- func (p *Platform) ResolveChannelName(channelID string) (string, error)
- func (p *Platform) Send(ctx context.Context, event agentkit.OutboundEvent) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New registers platform/slack: Slack Socket Mode; SessionID follows cc-connect slack conventions.
func ReconstructDelivery ¶
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"`
}
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 (*Platform) ResolveChannelName ¶
Click to show internal directories.
Click to hide internal directories.