Skip to content

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

License

Notifications You must be signed in to change notification settings

sudhanshusinghaiml/CrewAI-Data-Analysis-Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CrewAI Data Analysis Agent Crew

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.

Installation

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.

Customizing

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

Running the Project

Poetry also allows us to run scripts within the environment:

poetry run python my_project/main.py

Building and Publishing the Project

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.

Understanding Your Crew

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published