// Package test_personality define el agente pirata espacial para E2E tests.
package test_personality

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

func init() {
	devagents.Register("test-personality", Rules)
}

// Rules routes all DMs and mentions to the LLM.
func Rules() []decision.Rule {
	return []decision.Rule{
		{
			Name: "llm-all",
			Match: func(ctx decision.MessageContext) bool {
				return ctx.IsDirectMsg || ctx.IsMention
			},
			Actions: []decision.Action{{
				Kind: decision.ActionKindLLM,
				LLM:  &decision.LLMAction{},
			}},
		},
	}
}
