hook sendmail action
This commit is contained in:
@@ -20,6 +20,7 @@ const (
|
|||||||
ActionScraper = "scraper"
|
ActionScraper = "scraper"
|
||||||
ActionWikipedia = "wikipedia"
|
ActionWikipedia = "wikipedia"
|
||||||
ActionBrowse = "browse"
|
ActionBrowse = "browse"
|
||||||
|
ActionSendMail = "send_mail"
|
||||||
)
|
)
|
||||||
|
|
||||||
var AvailableActions = []string{
|
var AvailableActions = []string{
|
||||||
@@ -31,6 +32,7 @@ var AvailableActions = []string{
|
|||||||
ActionScraper,
|
ActionScraper,
|
||||||
ActionBrowse,
|
ActionBrowse,
|
||||||
ActionWikipedia,
|
ActionWikipedia,
|
||||||
|
ActionSendMail,
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *AgentConfig) availableActions(ctx context.Context) []Action {
|
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))
|
actions = append(actions, external.NewWikipedia(config))
|
||||||
case ActionBrowse:
|
case ActionBrowse:
|
||||||
actions = append(actions, external.NewBrowse(config))
|
actions = append(actions, external.NewBrowse(config))
|
||||||
|
case ActionSendMail:
|
||||||
|
actions = append(actions, external.NewSendMail(config))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user