Files
agents_and_robots/agents/asistente-2/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
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{},
}},
},
}
}