Update crew.py
Browse files
crew.py
CHANGED
@@ -43,29 +43,29 @@ def run_crew(question):
|
|
43 |
youtube_search_agent = Agent(
|
44 |
role="YouTube Search Agent",
|
45 |
goal="Search a YouTube video for question \"{topic}\".",
|
46 |
-
backstory="As an expert YouTube search assistant, you search a YouTube video.",
|
47 |
allow_delegation=False,
|
48 |
max_iter=1,
|
49 |
-
tools=[
|
50 |
verbose=True
|
51 |
)
|
52 |
|
53 |
web_search = Task(
|
54 |
agent=web_search_agent,
|
55 |
description="Search the web for question \"{topic}\" and scrape the most relevant web page.",
|
56 |
-
expected_output="Content to help answer the question."
|
57 |
)
|
58 |
|
59 |
youtube_search = Task(
|
60 |
agent=youtube_search_agent,
|
61 |
description="Search a YouTube video for question \"{topic}\"",
|
62 |
-
expected_output="Content to help answer the question."
|
63 |
)
|
64 |
|
65 |
crew = Crew(
|
66 |
agents=[web_search_agent, youtube_search_agent],
|
67 |
-
planning=True,
|
68 |
-
planning_llm=PLANNING_MODEL,
|
69 |
process=Process.sequential,
|
70 |
tasks=[web_search, youtube_search],
|
71 |
verbose=True
|
|
|
43 |
youtube_search_agent = Agent(
|
44 |
role="YouTube Search Agent",
|
45 |
goal="Search a YouTube video for question \"{topic}\".",
|
46 |
+
backstory="As an expert YouTube search assistant, you search a YouTube video for the question.",
|
47 |
allow_delegation=False,
|
48 |
max_iter=1,
|
49 |
+
tools=[youtube_search_tool],
|
50 |
verbose=True
|
51 |
)
|
52 |
|
53 |
web_search = Task(
|
54 |
agent=web_search_agent,
|
55 |
description="Search the web for question \"{topic}\" and scrape the most relevant web page.",
|
56 |
+
expected_output="Content to help answer the web related question."
|
57 |
)
|
58 |
|
59 |
youtube_search = Task(
|
60 |
agent=youtube_search_agent,
|
61 |
description="Search a YouTube video for question \"{topic}\"",
|
62 |
+
expected_output="Content to help answer the YouTube related question."
|
63 |
)
|
64 |
|
65 |
crew = Crew(
|
66 |
agents=[web_search_agent, youtube_search_agent],
|
67 |
+
#planning=True,
|
68 |
+
#planning_llm=PLANNING_MODEL,
|
69 |
process=Process.sequential,
|
70 |
tasks=[web_search, youtube_search],
|
71 |
verbose=True
|