Files
agents_and_robots/agents/assistant-bot/agent.go
T
egutierrez 3f6921d3fd refactor: eliminar regla !help hardcodeada de agentes existentes
Elimina la regla MatchCommand("help") de assistant-bot y asistente-2
ya que ahora !help es un comando built-in del sistema de comandos.
Los agentes solo conservan la regla llm-all para DM/mention → LLM.
2026-03-07 01:11:33 +00:00

26 lines
667 B
Go

// Package assistant defines the pure rules for the assistant bot.
// Since this bot is primarily LLM-driven, most rules just route to the LLM.
package assistant
import (
"github.com/enmanuel/agents/pkg/decision"
)
// Rules returns the decision rules for the assistant bot.
// Note: !help is now handled by the built-in command system.
func Rules() []decision.Rule {
return []decision.Rule{
// Any DM or mention → LLM
{
Name: "llm-all",
Match: func(ctx decision.MessageContext) bool {
return ctx.IsDirectMsg || ctx.IsMention
},
Actions: []decision.Action{{
Kind: decision.ActionKindLLM,
LLM: &decision.LLMAction{},
}},
},
}
}