// 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/agents"
	"github.com/enmanuel/agents/pkg/decision"
)

func init() {
	agents.Register("assistant-bot", Rules)
}

// 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{},
			}},
		},
	}
}
