List agents
200:
status is one of active, idle, paused, or error.
Returns 500 with { "error": "Failed to fetch agents." } if the lookup fails.
Deploy an agent
active, zero completed tasks, and 100% uptime.
Request body:
Example:
201:
400 with { "error": "Agent name and role are required." } when name or role is missing.
Pause or resume an agent
active agent becomes paused; a paused agent becomes active. Toggling does not delete the agent or reset its task count.
Example:
200:
404 with { "error": "Agent with id <id> not found." } when no agent matches the ID.
