import api from './index' export interface AgentStats { agent_id: string call_count: number current_task: string | null status: 'active' | 'idle' | 'disabled' } export interface AgentConfig { id: string name: string role: string description: string system_prompt: string enabled: boolean } export const agentApi = { async getStats(): Promise { const res = await api.get('/api/agents/stats') return res.data }, async getConfig(id: string): Promise { const res = await api.get(`/api/agents/config/${id}`) return res.data }, async updateConfig(id: string, data: Partial): Promise { const res = await api.put(`/api/agents/config/${id}`, data) return res.data }, }