Documentation
¶
Overview ¶
Package messaging provides cross-platform messaging tools for Overkill.
Currently implements:
- send_message: send a message to any connected gateway platform (Telegram, Discord, Slack).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SendInput ¶
type SendInput struct {
Platform string `json:"platform"` // "telegram", "discord", "slack"
Target string `json:"target"` // chat ID (string form) or channel ID
Message string `json:"message"` // text to send
}
SendInput is the JSON input for send_message.
type SendMessageTool ¶
type SendMessageTool struct {
// contains filtered or unexported fields
}
SendMessageTool implements tools.Tool for cross-platform messaging. Gateway clients are created lazily — a platform client is only instantiated on the first send request for that platform.
func New ¶
func New(cfg config.GatewayConfig) *SendMessageTool
New creates a SendMessageTool backed by the gateway config.
func (*SendMessageTool) Execute ¶
func (t *SendMessageTool) Execute(ctx context.Context, input json.RawMessage) (json.RawMessage, error)
func (*SendMessageTool) Name ¶
func (t *SendMessageTool) Name() string
Click to show internal directories.
Click to hide internal directories.