// Package exchange implements the exchange-bot agent for currency exchange rate queries. // Rules are pure: no I/O, no side effects. package exchange import ( "github.com/enmanuel/agents/devagents" "github.com/enmanuel/agents/pkg/decision" ) func init() { devagents.Register("exchange-bot", Rules) } // Rules returns the decision rules for exchange-bot. // Any direct message or mention is forwarded to the LLM with exchange rate tools. 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{}, }}, }, } }