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
697 B
Go
26 lines
697 B
Go
// Package asistente2 defines the pure rules for the asistente-2 bot.
|
|
// This agent uses tool_use (current_time) to demonstrate the tool-use loop.
|
|
package asistente2
|
|
|
|
import (
|
|
"github.com/enmanuel/agents/pkg/decision"
|
|
)
|
|
|
|
// 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{
|
|
// Any DM or mention → LLM (with tool-use enabled)
|
|
{
|
|
Name: "llm-all",
|
|
Match: func(ctx decision.MessageContext) bool {
|
|
return ctx.IsDirectMsg || ctx.IsMention
|
|
},
|
|
Actions: []decision.Action{{
|
|
Kind: decision.ActionKindLLM,
|
|
LLM: &decision.LLMAction{},
|
|
}},
|
|
},
|
|
}
|
|
}
|