/** * Create a response * * @param response response from an agent */ public Response(AgentResponse response) { this.type = response.getType(); this.text = response.getText(); this.payload = response.getPayload(); this.status = response.getStatus(); }