-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcrew.py
More file actions
28 lines (20 loc) · 735 Bytes
/
crew.py
File metadata and controls
28 lines (20 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""Main Crew"""
from dotenv import load_dotenv
from crewai import Crew, Process
from tasks import QueryTasks
from agents import QueryAgents
agents = QueryAgents()
tasks = QueryTasks()
crew = Crew(
tasks=[tasks.query_extraction_task(), tasks.query_construction_task()],
agents=[agents.extractor_agent(), agents.query_constructor()],
process=Process.sequential,
full_output=True,
verbose=True,
)
if __name__ == "__main__":
load_dotenv()
crew.kickoff()
#TODO: okay the crew works with the search tool as well (tavily).
# But the task is randomly generating a user query -> how do i pass the human in the loop for input?
# NOTE: what's the difference between passing the tool to the task vs the agent?