1.3 KiB
agents.py
This file contains the definition of custom agents. To create a Agent, you need to define the following:
-
Role: The role of the agent.
-
Backstory: The backstory of the agent.
-
Goal: The goal of the agent.
-
Tools: The tools that the agent has access to (optional).
-
Allow Delegation: Whether the agent can delegate tasks to other agents(optional).
task.py
This file contains the definition of custom tasks. To Create a task, you need to define the following :
-
description: A string that describes the task.
-
agent: An agent object that will be assigned to the task.
-
expected_output: The expected output of the task.
crew (main.py)
This is the main file that you will use to run your custom crew. To create a Crew , you need to define Agent ,Task and following Parameters:
-
Agent: List of agents that you want to include in the crew.
-
Task: List of tasks that you want to include in the crew.
-
verbose: If True, print the output of each task.(default is False).
-
debug: If True, print the debug logs.(default is False).