Skip to main content

Cutting-edge framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

Project description

CrewAI

🤖 Cutting-edge framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

Why CrewAI?

The power of AI collaboration has too much to offer. CrewAI is designed to enable AI agents to assume roles, share goals, and operate in a cohesive unit - much like a well-oiled crew. Whether you're building a smart assistant platform, an automated customer service ensemble, or a multi-agent research team, CrewAI provides the backbone for sophisticated multi-agent interactions.

Getting Started

To get started with CrewAI, follow these simple steps:

  1. Installation:
pip install crewai
  1. Setting Up Your Crew:
from crewai import Agent, Task, Crew, Process

# Define your agents with roles and goals
researcher = Agent(role='Researcher', goal='Discover new insights')
writer = Agent(role='Writer', goal='Create engaging content')

# Create tasks for your agents
task1 = Task(description='Investigate the latest AI trends', agent=researcher)
task2 = Task(description='Write a blog post on AI advancements', agent=writer)

# Instantiate your crew with a sequential process
crew = Crew(
  agents=[researcher, writer],
  tasks=[task1, task2],
  process=Process.sequential
)

# Get your crew to work!
crew.kickoff()

Key Features

  • Role-Based Agent Design: Customize agents with specific roles, goals, and tools.
  • Autonomous Inter-Agent Delegation: Agents can autonomously delegate tasks and inquire amongst themselves, enhancing problem-solving efficiency.
  • Flexible Task Management: Define tasks with customizable tools and assign them to agents dynamically.
  • Processes Driven: Currently only supports sequential task execution but more complex processes like consensual and hierarchical being worked on.

CrewAI Mind Map

How CrewAI Compares

  • Autogen: While Autogen excels in creating conversational agents capable of working together, it lacks an inherent concept of process. In Autogen, orchestrating agents' interactions requires additional programming, which can become complex and cumbersome as the scale of tasks grows.

  • ChatDev: ChatDev introduced the idea of processes into the realm of AI agents, but its implementation is quite rigid. Customizations in ChatDev are limited and not geared towards production environments, which can hinder scalability and flexibility in real-world applications.

CrewAI's Advantage: CrewAI is built with production in mind. It offers the flexibility of Autogen's conversational agents and the structured process approach of ChatDev, but without the rigidity. CrewAI's processes are designed to be dynamic and adaptable, fitting seamlessly into both development and production workflows.

Contribution

CrewAI is open-source and we welcome contributions. If you're looking to contribute, please:

  • Fork the repository.
  • Create a new branch for your feature.
  • Add your feature or improvement.
  • Send a pull request.
  • We appreciate your input!

Installing Dependencies

poetry lock
poetry install

Virtual Env

poetry shell

Running Tests

poetry run pytest

Packaging

poetry build

Installing Locally

pip install dist/*.tar.gz

License

CrewAI is released under the MIT License

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crewai-0.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

crewai-0.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file crewai-0.1.0.tar.gz.

File metadata

  • Download URL: crewai-0.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.25.1 requests-toolbelt/1.0.0 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/1.5.0 colorama/0.4.6 CPython/3.9.7

File hashes

Hashes for crewai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 46a304e97ffb01444970410f1c27fda897971b14d97423be631dbbaab61f210f
MD5 b9f83b584c469b94335dba42ace9c791
BLAKE2b-256 7a44c7ff10949eb828f87510985e14ca25b1bb90534a1bbbeb85d710c4bd1b18

See more details on using hashes here.

File details

Details for the file crewai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: crewai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.25.1 requests-toolbelt/1.0.0 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/1.5.0 colorama/0.4.6 CPython/3.9.7

File hashes

Hashes for crewai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89589e3f58950a8eb2e8612b0f9d6ce12be293a64fb5108f8b99aad7c8ccfa72
MD5 1af33e0d9106103a831b8b5a99828c30
BLAKE2b-256 c1492cea28b2a3cb8a61828161dcb297fe1983bec43e01904b5231cbf11bde10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page