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"`
AppToken string `json:"appToken"`
Domain string `json:"domain"` // optional Slack Web API base URL override
AllowFrom string `json:"allowFrom"`
AllowChannels string `json:"allowChannels"`
GroupReplyAll bool `json:"groupReplyAll"`
}
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.