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"`
}
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 WebhookConfig ¶
Click to show internal directories.
Click to hide internal directories.