Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix recruitment workflow dev #1305

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions superagi/agent/workflow_seed.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
step1 = AgentWorkflowStep.find_or_create_tool_workflow_step(session, agent_workflow.id,
str(agent_workflow.id) + "_step1",
ListFileTool().name,
"Read files from the resource manager",
"List the files from the resource manager",
step_type="TRIGGER")

# task queue ends when the elements gets over
Expand All @@ -125,29 +125,28 @@
step3 = AgentWorkflowStep.find_or_create_tool_workflow_step(session, agent_workflow.id,
str(agent_workflow.id) + "_step3",
ReadFileTool().name,
"Read the resume from above input")
"Read the resume from above input",
"Check if the resume matches High-Level GOAL")

step4 = AgentWorkflowStep.find_or_create_tool_workflow_step(session, agent_workflow.id,
str(agent_workflow.id) + "_step4",
ReadFileTool().name,
"Read the job description from file mentioned in High-Level GOAL",
"Check if the resume matches the job description in goal")
SendEmailTool().name,
"Write a custom acceptance Email to the candidates")

step5 = AgentWorkflowStep.find_or_create_tool_workflow_step(session, agent_workflow.id,
str(agent_workflow.id) + "_step5",
SendEmailTool().name,
"Write a custom Email the candidates for job profile based on their experience")
"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, step4.id)
AgentWorkflowStep.add_next_workflow_step(session, step4.id, step5.id, "YES")
AgentWorkflowStep.add_next_workflow_step(session, step4.id, step2.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)
session.commit()


@classmethod
def build_coding_workflow(cls, session):
agent_workflow = AgentWorkflow.find_or_create_by_name(session, "SuperCoder", "SuperCoder")
Expand Down
Loading