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.
This commit is contained in:
@@ -7,23 +7,9 @@ import (
|
||||
)
|
||||
|
||||
// Rules returns the decision rules for the asistente-2 bot.
|
||||
// Note: !help is now handled by the built-in command system.
|
||||
func Rules() []decision.Rule {
|
||||
return []decision.Rule{
|
||||
// !help — explicit help command
|
||||
{
|
||||
Name: "help",
|
||||
Match: decision.MatchCommand("help"),
|
||||
Actions: []decision.Action{{
|
||||
Kind: decision.ActionKindReply,
|
||||
Reply: &decision.ReplyAction{
|
||||
Content: "Soy asistente-2. Puedo responder preguntas y además consultar la hora actual.\n" +
|
||||
"- Pregúntame cualquier cosa\n" +
|
||||
"- Puedo decirte la fecha y hora actual\n\n" +
|
||||
"Escríbeme directamente lo que necesitas.",
|
||||
},
|
||||
}},
|
||||
},
|
||||
|
||||
// Any DM or mention → LLM (with tool-use enabled)
|
||||
{
|
||||
Name: "llm-all",
|
||||
|
||||
@@ -7,25 +7,10 @@ import (
|
||||
)
|
||||
|
||||
// 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{
|
||||
// !help — explicit help command
|
||||
{
|
||||
Name: "help",
|
||||
Match: decision.MatchCommand("help"),
|
||||
Actions: []decision.Action{{
|
||||
Kind: decision.ActionKindReply,
|
||||
Reply: &decision.ReplyAction{
|
||||
Content: "Soy tu asistente. Escríbeme directamente lo que necesitas:\n" +
|
||||
"- Preguntas, explicaciones, resúmenes\n" +
|
||||
"- Ayuda con código\n" +
|
||||
"- Redacción de textos",
|
||||
},
|
||||
}},
|
||||
},
|
||||
|
||||
// Any DM or mention → LLM
|
||||
// This is the catch-all: if the message is a DM or a mention, send to LLM.
|
||||
{
|
||||
Name: "llm-all",
|
||||
Match: func(ctx decision.MessageContext) bool {
|
||||
|
||||
Reference in New Issue
Block a user