Crewai Research Document
Crewai Research Document
researcher = Agent(
role="Senior Data Researcher",
goal="Uncover cutting-edge developments in AI",
backstory="A seasoned researcher with a knack for uncovering the latest
developments in AI.",
tools=[SerperDevTool()],
verbose=True
)
In this example, the researcher agent is assigned a specific role, goal, backstory, and equipped
with the SerperDevTool to enhance its research capabilities.
research_task = Task(
description="Conduct comprehensive research on the latest AI
developments.",
expected_output="A summary report highlighting key advancements in
AI.",
agent=researcher_agent,
tools=[search_tool],
async_execution=True
)
In this example, research_task is defined with a clear description, expected output, assigned
agent “researcher_agent”, a tool “search_tool”, and is set to execute asynchronously.
In CrewAI, the Crew class orchestrates the collaboration of multiple agents and tasks, enabling
the execution of complex workflows. It serves as the central component that manages the
sequence and interaction of tasks performed by various agents.
my_crew = Crew(
agents=[researcher],
tasks=[research_task],
process=Process.sequential,
verbose=True
)