feat: añadir agentes wikipedia-bot y exchange-bot

wikipedia-bot: agente GPT-4o con tool wikipedia_search para consultar
información de Wikipedia. Responde en español, tono profesional.

exchange-bot: agente GPT-4o con 4 tools de exchange rate para consultar
tasas de cambio, convertir entre monedas, listar monedas disponibles
y ver historial. Requiere EXCHANGERATE_API_KEY en .env.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-11 00:25:14 +00:00
parent f2718aa17c
commit b4d9a2b3fd
6 changed files with 447 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
// Package wikipedia implements the wikipedia-bot agent rules.
// Handles DMs and mentions by passing them to the LLM (with Wikipedia tool).
package wikipedia
import (
"github.com/enmanuel/agents/devagents"
"github.com/enmanuel/agents/pkg/decision"
)
func init() {
devagents.Register("wikipedia-bot", Rules)
}
// Rules returns the decision rules for wikipedia-bot.
// Any DM or mention is routed to the LLM which has access to wikipedia_search.
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{},
}},
},
}
}