Add Counter action to count things (#38)

* add host

* fix: make user name explicit in IRC

* feat: Add counter action
This commit is contained in:
Richard Palethorpe
2025-03-11 21:54:35 +00:00
committed by GitHub
parent 3763f320b9
commit 7486e68a17
4 changed files with 104 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ const (
ActionBrowse = "browse"
ActionSendMail = "send_mail"
ActionGenerateImage = "generate_image"
ActionCounter = "counter"
)
var AvailableActions = []string{
@@ -39,6 +40,7 @@ var AvailableActions = []string{
ActionWikipedia,
ActionSendMail,
ActionGenerateImage,
ActionCounter,
}
func Actions(a *state.AgentConfig) func(ctx context.Context) []agent.Action {
@@ -80,6 +82,8 @@ func Actions(a *state.AgentConfig) func(ctx context.Context) []agent.Action {
allActions = append(allActions, actions.NewBrowse(config))
case ActionSendMail:
allActions = append(allActions, actions.NewSendMail(config))
case ActionCounter:
allActions = append(allActions, actions.NewCounter(config))
}
}