Welcome to the CrewAI Data Analysis Agent Crew project, powered by crewAI. This template is designed to help you set up a multi-agent AI system with ease, leveraging the powerful and flexible framework provided by crewAI. Our goal is to enable your agents to collaborate effectively on complex tasks, maximizing their collective intelligence and capabilities.
Ensure you have Python >=3.10 <3.13 installed on your system. This project uses poetry for dependency management and package handling, offering a seamless setup and execution experience.
First, if you haven't already, install poetry using below commands:
curl -sSL https://install.python-poetry.org | python3 -
or
pip install poetry
After installation, ensure Poetry is available by checking the version:
poetry --version
To start a new project, use Poetry to generate the project structure along with a pyproject.toml file:
poetry new my_project
my_project/
├── pyproject.toml
├── README.rst
├── my_project
│ └── __init__.py
└── tests
└── __init__.py
This will add requests to the dependencies section of your pyproject.toml file. Next, navigate to your project directory and add the dependencies:
poetry add requests
Lock the dependencies and install them by using the CLI command:
poetry lock
This will add pytest to the dev-dependencies section. Add a development dependency:
poetry add --dev pytest
To install all dependencies defined in your pyproject.toml, use:
poetry install
This command creates a virtual environment and installs the dependencies there.
Add your OPENAI_API_KEY
into the .env
file
- Modify
crewai_data_analysis_agent/config/agents.yaml
to define your agents - Modify
crewai_data_analysis_agent/config/tasks.yaml
to define your tasks - Modify
crewai_data_analysis_agent/crew.py
to add your own logic, tools and specific args - Modify
crewai_data_analysis_agent/main.py
to add custom inputs for your agents and tasks
Poetry also allows us to run scripts within the environment:
poetry run python my_project/main.py
This command creates a distribution package in the dist/ directory. To build your project for distribution, use:
poetry build
To publish your package to PyPI (or another repository), use:
poetry publish
This command initializes the CrewAI-Support-Data-Insights-Agent Crew, assembling the agents and assigning them tasks as defined in your configuration.
This example, unmodified, will run the create a report.md
file with the output of a research on LLMs in the root folder.
The CrewAI-Data-Analysis-Agent Crew is composed of multiple AI agents, each with unique roles, goals, and tools. These agents collaborate on a series of tasks, defined in config/tasks.yaml
, leveraging their collective skills to achieve complex objectives. The config/agents.yaml
file outlines the capabilities and configurations of each agent in your crew.