import React, { useState } from 'react' import { motion, AnimatePresence } from 'framer-motion' import { Bot, ChevronDown, Activity, CheckCircle, Clock } from 'lucide-react' const AgentStatus = ({ status }) => { const [expanded, setExpanded] = useState(false) const agentColors = { teaching: 'from-blue-500 to-cyan-500', assessment: 'from-green-500 to-emerald-500', knowledge: 'from-purple-500 to-pink-500', tutor: 'from-orange-500 to-red-500', recommendation: 'from-indigo-500 to-violet-500' } const agentNames = { teaching: 'Teaching Agent', assessment: 'Assessment Agent', knowledge: 'Knowledge Tracker', tutor: 'Personal Tutor', recommendation: 'Path Advisor' } return (
{/* Header */}
setExpanded(!expanded)} >

AI Multi-Agent System

{Object.keys(status?.sub_agents || {}).length} agents active

{/* Coordinator Stats */}
{status?.coordinator?.tasks_coordinated || 0}
Tasks Coordinated
{status?.total_memory || 0}
Total Memory
Active
System Status
{/* Expanded Agent Details */} {expanded && (
{Object.entries(status?.sub_agents || {}).map(([key, agent], index) => (
{agentNames[key]}
{agent.state === 'completed' && ( Ready )} {agent.state === 'idle' && ( Idle )} {agent.state === 'acting' && ( Working )}
{agent.memory_size || 0}
memories
))}
)}
) } export default AgentStatus