// Package meteorologo defines the pure rules for the meteorologo bot.
// This agent uses tool_use (get_weather) to provide weather information.
package meteorologo

import (
	"github.com/enmanuel/agents/agents"
	"github.com/enmanuel/agents/pkg/decision"
)

func init() {
	agents.Register("meteorologo", Rules)
}

// Rules returns the decision rules for the meteorologo bot.
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{},
			}},
		},
	}
}
