Skip to content

Commit

Permalink
rename step5 to step4 and step6 to step5
Browse files Browse the repository at this point in the history
  • Loading branch information
Fluder-Paradyne committed Oct 3, 2023
1 parent d57f107 commit c2241d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions superagi/agent/workflow_seed.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,23 +128,23 @@ 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")

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)

Check warning on line 146 in superagi/agent/workflow_seed.py

View check run for this annotation

Codecov / codecov/patch

superagi/agent/workflow_seed.py#L144-L146

Added lines #L144 - L146 were not covered by tests
AgentWorkflowStep.add_next_workflow_step(session, step5.id, step2.id)
AgentWorkflowStep.add_next_workflow_step(session, step6.id, step2.id)
session.commit()

@classmethod
Expand Down

0 comments on commit c2241d9

Please sign in to comment.