Spaces:
Running
Running
File size: 490 Bytes
93e5d93 add33ab 074a596 c971397 e8f9166 7fe612b 230d3a2 c971397 a5f9d4e 3788cc0 e8f9166 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from crewai import Crew, Process
from langchain_openai import ChatOpenAI
from agents import get_researcher_agent, get_author_agent
from tasks import get_researcher_task, get_author_task
def get_crew(model):
return Crew(
agents=[get_researcher_agent(model), get_author_agent(model)],
tasks=[get_researcher_task(model), get_author_task(model)],
manager_llm=ChatOpenAI(model=model, temperature=0.7),
process=Process.sequential,
verbose=False
) |