simple-chatbot-crewai/README.md
2024-12-06 13:06:17 +07:00

1.3 KiB

agents.py

This file contains the definition of custom agents. To create a Agent, you need to define the following:

  1. Role: The role of the agent.

  2. Backstory: The backstory of the agent.

  3. Goal: The goal of the agent.

  4. Tools: The tools that the agent has access to (optional).

  5. Allow Delegation: Whether the agent can delegate tasks to other agents(optional).

    More Details about Agent.

task.py

This file contains the definition of custom tasks. To Create a task, you need to define the following :

  1. description: A string that describes the task.

  2. agent: An agent object that will be assigned to the task.

  3. expected_output: The expected output of the task.

    More Details about 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:

  1. Agent: List of agents that you want to include in the crew.

  2. Task: List of tasks that you want to include in the crew.

  3. verbose: If True, print the output of each task.(default is False).

  4. debug: If True, print the debug logs.(default is False).

    More Details about Crew.