import api from "../api"; export async function agents(){ const {data}=await api.get("/api/agents"); return data; } export async function planner(task){ const {data}=await api.post("/api/agents/planner",{task}); return data; } export async function architect(task){ const {data}=await api.post("/api/agents/architect",{task}); return data; } export async function builder(task){ const {data}=await api.post("/api/agents/builder",{task}); return data; } export async function reviewer(task){ const {data}=await api.post("/api/agents/reviewer",{task}); return data; } export async function debuggerAgent(task){ const {data}=await api.post("/api/agents/debugger",{task}); return data; } export async function execute(task){ const {data}=await api.post("/api/agents/execute",{task}); return data; } export async function queue(){ const {data}=await api.get("/api/agents/queue"); return data; } export async function history(){ const {data}=await api.get("/api/agents/history"); return data; } export async function cancel(id){ const {data}=await api.delete(`/api/agents/${id}`); return data; }