Spaces:
Running
Running
Update crew.py
Browse files
crew.py
CHANGED
@@ -4,13 +4,13 @@ from langchain_openai import ChatOpenAI
|
|
4 |
from agents import get_researcher_agent, get_writer_agent
|
5 |
from tasks import get_research_task, get_write_task
|
6 |
|
7 |
-
def get_crew(model,
|
8 |
return Crew(
|
9 |
-
agents=[get_researcher_agent(model,
|
10 |
-
get_writer_agent(model,
|
11 |
-
tasks=[get_research_task(model,
|
12 |
-
get_write_task(model,
|
13 |
-
manager_llm=ChatOpenAI(model=model,
|
14 |
process=Process.sequential,
|
15 |
verbose=verbose
|
16 |
)
|
|
|
4 |
from agents import get_researcher_agent, get_writer_agent
|
5 |
from tasks import get_research_task, get_write_task
|
6 |
|
7 |
+
def get_crew(model, temperature, verbose):
|
8 |
return Crew(
|
9 |
+
agents=[get_researcher_agent(model, temperature, verbose),
|
10 |
+
get_writer_agent(model, temperature, verbose)],
|
11 |
+
tasks=[get_research_task(model, temperature, verbose),
|
12 |
+
get_write_task(model, temperature, verbose)],
|
13 |
+
manager_llm=ChatOpenAI(model=model, temperature=temperature),
|
14 |
process=Process.sequential,
|
15 |
verbose=verbose
|
16 |
)
|