3f6921d3fd
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.
26 lines
667 B
Go
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{},
|
|
}},
|
|
},
|
|
}
|
|
}
|