daab1314c6
Agente LLM (GPT-4o) especializado en crear, listar, completar y buscar recordatorios con fechas y horarios. Almacena los datos en JSON usando file_ops (read_file/write_file) con allowlist a /tmp/reminder-bot-data/. Incluye tool_use habilitado con file_ops y current_time. System prompt con seccion de seguridad anti-injection. Registrado en el launcher. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
30 lines
733 B
Go
30 lines
733 B
Go
// Package reminder implementa las reglas de decision del agente reminder-bot.
|
|
// Archivo generado por personalize.sh — editar segun necesidades.
|
|
package reminder
|
|
|
|
import (
|
|
"github.com/enmanuel/agents/devagents"
|
|
"github.com/enmanuel/agents/pkg/decision"
|
|
)
|
|
|
|
func init() {
|
|
devagents.Register("reminder-bot", Rules)
|
|
}
|
|
|
|
// Rules devuelve las reglas de decision del agente (puras, sin side effects).
|
|
func Rules() []decision.Rule {
|
|
return []decision.Rule{
|
|
// Cualquier DM o mencion → LLM
|
|
{
|
|
Name: "llm-all",
|
|
Match: func(ctx decision.MessageContext) bool {
|
|
return ctx.IsDirectMsg || ctx.IsMention
|
|
},
|
|
Actions: []decision.Action{{
|
|
Kind: decision.ActionKindLLM,
|
|
LLM: &decision.LLMAction{},
|
|
}},
|
|
},
|
|
}
|
|
}
|