From 1fc0db18cda9ff7728a30f3cdd3e46582992c397 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Sun, 21 Apr 2024 00:43:43 +0200 Subject: [PATCH] hook sendmail action --- example/webui/actions.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/webui/actions.go b/example/webui/actions.go index d0fd4c0..703ae25 100644 --- a/example/webui/actions.go +++ b/example/webui/actions.go @@ -20,6 +20,7 @@ const ( ActionScraper = "scraper" ActionWikipedia = "wikipedia" ActionBrowse = "browse" + ActionSendMail = "send_mail" ) var AvailableActions = []string{ @@ -31,6 +32,7 @@ var AvailableActions = []string{ ActionScraper, ActionBrowse, ActionWikipedia, + ActionSendMail, } func (a *AgentConfig) availableActions(ctx context.Context) []Action { @@ -60,6 +62,8 @@ func (a *AgentConfig) availableActions(ctx context.Context) []Action { actions = append(actions, external.NewWikipedia(config)) case ActionBrowse: actions = append(actions, external.NewBrowse(config)) + case ActionSendMail: + actions = append(actions, external.NewSendMail(config)) } }