From 45c6076a24177b8a59d0ec43f8d7723c6c2be03f Mon Sep 17 00:00:00 2001 From: rakesh-krishna-a-s Date: Tue, 3 Oct 2023 17:15:28 +0530 Subject: [PATCH] rename step5 to step4 and step6 to step5 --- superagi/agent/workflow_seed.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/superagi/agent/workflow_seed.py b/superagi/agent/workflow_seed.py index 18a135906..21f1f42e6 100644 --- a/superagi/agent/workflow_seed.py +++ b/superagi/agent/workflow_seed.py @@ -128,12 +128,12 @@ def build_recruitment_workflow(cls, session): "Read the resume from above input", "Check if the resume matches High-Level GOAL") - step5 = AgentWorkflowStep.find_or_create_tool_workflow_step(session, agent_workflow.id, + step4 = AgentWorkflowStep.find_or_create_tool_workflow_step(session, agent_workflow.id, str(agent_workflow.id) + "_step5", SendEmailTool().name, "Write a custom acceptance Email to the candidates") - step6 = AgentWorkflowStep.find_or_create_tool_workflow_step(session, agent_workflow.id, + step5 = AgentWorkflowStep.find_or_create_tool_workflow_step(session, agent_workflow.id, str(agent_workflow.id) + "_step6", SendEmailTool().name, "Write a custom Reject Email to the candidates") @@ -141,10 +141,10 @@ def build_recruitment_workflow(cls, session): AgentWorkflowStep.add_next_workflow_step(session, step1.id, step2.id) AgentWorkflowStep.add_next_workflow_step(session, step2.id, step3.id) AgentWorkflowStep.add_next_workflow_step(session, step2.id, -1, "COMPLETE") - AgentWorkflowStep.add_next_workflow_step(session, step3.id, step5.id, "YES") - AgentWorkflowStep.add_next_workflow_step(session, step3.id, step6.id, "NO") + AgentWorkflowStep.add_next_workflow_step(session, step3.id, step4.id, "YES") + AgentWorkflowStep.add_next_workflow_step(session, step3.id, step5.id, "NO") + AgentWorkflowStep.add_next_workflow_step(session, step4.id, step2.id) AgentWorkflowStep.add_next_workflow_step(session, step5.id, step2.id) - AgentWorkflowStep.add_next_workflow_step(session, step6.id, step2.id) session.commit() @classmethod