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 poetryAfter installation, ensure Poetry is available by checking the version:
poetry --versionTo start a new project, use Poetry to generate the project structure along with a pyproject.toml file:
poetry new my_projectmy_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 requestsLock the dependencies and install them by using the CLI command:
poetry lockThis will add pytest to the dev-dependencies section. Add a development dependency:
poetry add --dev pytestTo install all dependencies defined in your pyproject.toml, use:
poetry installThis 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.yamlto define your agents - Modify
crewai_data_analysis_agent/config/tasks.yamlto define your tasks - Modify
crewai_data_analysis_agent/crew.pyto add your own logic, tools and specific args - Modify
crewai_data_analysis_agent/main.pyto add custom inputs for your agents and tasks
Poetry also allows us to run scripts within the environment:
poetry run python my_project/main.pyThis command creates a distribution package in the dist/ directory. To build your project for distribution, use:
poetry buildTo publish your package to PyPI (or another repository), use:
poetry publishThis 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.