public AgentStatusResponse status() throws Exception {
        return new AgentStatusResponse(serverStartMs, workerManager.workerStates());
    }
Create a new Agent.

@param platform      The platform object to use.
@param scheduler     The scheduler to use for this Agent.
@param restServer    The REST server to use.
@param resource      The AgentRestResource to use.
trogdor/src/main/java/org/apache/kafka/trogdor/agent/Agent.java