messaging

package
v0.11.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0, MIT Imports: 9 Imported by: 0

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

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

type SendOutput

type SendOutput struct {
	Sent      bool   `json:"sent"`
	Platform  string `json:"platform"`
	Target    string `json:"target"`
	MessageID string `json:"message_id,omitempty"`
}

SendOutput is the JSON output from send_message.

Jump to

Keyboard shortcuts

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