1089d0e765
Agente con LLM (GPT-4o) y personalidad de pirata espacial exagerada. System prompt diseñado para generar keywords detectables en tests: "arrr", "cosmonauta", "estelar", "marea", "nave", emojis pirata/cohete. Archivos: - agents/test-personality/agent.go — regla llm-all (DM + mencion → LLM) - agents/test-personality/config.yaml — GPT-4o, E2EE habilitado - agents/test-personality/prompts/system.md — Capitan Nebulosa - cmd/launcher/main.go — blank import añadido Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
28 lines
602 B
Go
28 lines
602 B
Go
// Package test_personality define el agente pirata espacial para E2E tests.
|
|
package test_personality
|
|
|
|
import (
|
|
"github.com/enmanuel/agents/agents"
|
|
"github.com/enmanuel/agents/pkg/decision"
|
|
)
|
|
|
|
func init() {
|
|
agents.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{},
|
|
}},
|
|
},
|
|
}
|
|
}
|