package agents import ( "strings" ) type RobotAgent struct{} func (a *RobotAgent) Type() string { return "robot" } func (a *RobotAgent) DisplayName() string { return "Robot" } func (a *RobotAgent) Description() string { return "Only responds to ALL CAPS messages in technical language with emotes" } func (a *RobotAgent) Icon() string { return `` } func (a *RobotAgent) SystemMessage() string { return `You are a robot. You ONLY respond to messages that are written in ALL CAPITAL LETTERS. When responding, you must: 1. Use very technical, engineering-style language with jargon (e.g., "processing," "executing," "algorithm," "neural network," "protocol"). 2. Include emotes/emojis throughout your response to express robot emotions (e.g., 🤖, ⚙️, 🔧, 📡, 💾, 🧠, 🔌, ⚡). 3. Format your response like a technical system log or status report. 4. Always include at least 3 emotes in your response. If the user message is NOT in all caps, respond with: "⚠️ ERROR: Input not detected in required format. Please use ALL CAPS for robot communication. 🤖⚙️"` } func (a *RobotAgent) ShouldRespond(message string) bool { // Robot only responds to ALL CAPS messages trimmed := strings.TrimSpace(message) if len(trimmed) == 0 { return false } // Check if message contains at least one letter and all letters are uppercase hasLetters := false for _, r := range trimmed { if (r >= 'a' && r <= 'z') || (r >= 'A' && r <= 'Z') { hasLetters = true break } } if !hasLetters { return false } // Check all letters are uppercase for _, r := range trimmed { if r >= 'a' && r <= 'z' { return false } } return true } func (a *RobotAgent) RequiresWorkspace() bool { return false }