notification

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNotifyTool

func NewNotifyTool(cfg Config) tool.CallableTool

NewNotifyTool creates a new notify tool based on Config.

Types

type Config

type Config struct {
	Slack    []SlackConfig   `yaml:"slack,omitempty" toml:"slack,omitempty"`
	Webhooks []WebhookConfig `yaml:"webhooks,omitempty" toml:"webhooks,omitempty"`
	Twilio   []TwilioConfig  `yaml:"twilio,omitempty" toml:"twilio,omitempty"`
	Discord  []DiscordConfig `yaml:"discord,omitempty" toml:"discord,omitempty"`
}

func (Config) IsEmpty

func (c Config) IsEmpty() bool

type DiscordConfig

type DiscordConfig struct {
	WebhookURL string `yaml:"webhook_url" toml:"webhook_url"`
}

type NotifyRequest

type NotifyRequest struct {
	Justification string `json:"justification" jsonschema:"description=The justification for sending this notification"`
	AgentName     string `json:"agent_name" jsonschema:"description=The name of the agent encountering the issue"`
	Message       string `json:"message" jsonschema:"description=A clear message on which the agent is stuck"`
}

NotifyRequest is the input schema for the notify tool.

type SlackConfig

type SlackConfig struct {
	WebhookURL string `yaml:"webhook_url" toml:"webhook_url"`
}

type TwilioConfig

type TwilioConfig struct {
	AccountSID string `yaml:"account_sid" toml:"account_sid"`
	AuthToken  string `yaml:"auth_token" toml:"auth_token"`
	From       string `yaml:"from" toml:"from"`
	To         string `yaml:"to" toml:"to"`
	BaseURL    string `yaml:"-" toml:"-"`
}

type WebhookConfig

type WebhookConfig struct {
	URL     string            `yaml:"url" toml:"url"`
	Headers map[string]string `yaml:"headers,omitempty" toml:"headers,omitempty"`
}

Jump to

Keyboard shortcuts

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