Git Product home page Git Product logo

autocrew's Introduction

Autocrew: Where AI Builds Itself

Autocrew is a Python script designed to simplify the process of generating scripts for CrewAI, a collaborative language AI platform. It automates the creation of CrewAI agent and task scripts based on your specified overall goal, and it can also rank crews based on their suitability for completing a given task.

Autocrew_logo

Autocrew Discord channel

Key Features

  • Script Generation: Autocrew can generate CrewAI agent and task scripts for a specified overall goal. It communicates with the Ollama language model to generate agent details, including roles, goals, backstories, assigned tasks, and delegation abilities. The generated scripts are ready for execution within CrewAI.

  • Ranking Mode: Autocrew can rank existing crews based on their suitability for a particular task. It collects CSV data files that represent different crews, communicates with Ollama to analyze and rank them, and provides a summary of the ranking.

  • Multiple Script Generation: You can specify the number of scripts to generate for the same overall goal, allowing you to create multiple versions of your crew for comparison or experimentation.

  • Automatic Execution: Autocrew can automatically execute the generated scripts within CrewAI, saving you time and effort.

Prerequisites

Before using Autocrew, make sure you have the following prerequisites installed:

  • Python 3.x
  • Required Python packages (install using pip):
    • argparse
    • csv
    • io
    • json
    • requests
    • crewai
    • langchain_community
  • Ollama
    • NOTE: Ollama is currently available for Linux and Mac only
    • In order to run Ollama on windows, you need to install the Ubuntu 20.04 distribution within WSL. Please see this guide for more information.

Getting Started

To get started with Autocrew, you'll need to clone the Git repository to your local machine. Follow these steps:

  1. Open your terminal or command prompt.

  2. Clone the Autocrew repository from GitHub using the following command:

git clone https://github.com/yanniedog/autocrew.git
  1. Once the repository is cloned, you can navigate into the Autocrew directory:
cd autocrew

Now you have successfully cloned the Autocrew repository to your local machine, and you can start using and contributing to the project.

If you encounter any issues, have questions, or want to contribute to Autocrew, please refer to the "Contributing" section in this README for guidelines on making changes and submitting pull requests.

Usage

Script Generation

To generate CrewAI scripts for a specified overall goal, use the following command:

python3 autocrew.py <overall_goal> [-a] [-m NUM] [-v]
  • <overall_goal>: Specify the overall goal for your crew.
  • -a (optional): Automatically run the generated script(s) after generation.
  • -m NUM (optional): Generate NUM number of scripts for the same overall goal.
  • -v (optional): Enable verbose output for detailed information.

Ranking Mode

To rank existing crews based on their suitability for a task, use the following command:

python3 autocrew.py -r <overall_goal> [-v]
  • -r: Activate ranking mode.
  • <overall_goal>: Specify the overall goal for ranking.
  • -v (optional): Enable verbose output for detailed information.

Example

Here's an example of generating CrewAI scripts for a project management task:

python3 autocrew.py "Project Management" -a -m 3 -v

This command generates three CrewAI scripts for the "Project Management" goal, automatically runs them, and provides detailed output.

Contributing

If you would like to contribute to Autocrew, please fork the repository, make your changes, and submit a pull request. We welcome contributions and suggestions.

Community

Join the Autocrew Discord channel

License

Autocrew is licensed under the MIT License.

Acknowledgments

Autocrew was created by Yanniedog. It was initially built to interact with the CrewAI platform, but compatibility with other platforms (such as Autogen) is currently in development.

CrewAI AutoCrew Script

Introduction

Welcome to the CrewAI AutoCrew Script, an innovative Python tool designed to automate the creation and evaluation of virtual agent teams. Integrating with Ollama for AI-driven decision-making, this script streamlines processes within the CrewAI framework, making it an indispensable resource for developers and researchers in AI and machine learning.

Table of Contents

Features

  • Agent Team Creation: Automates generation of agent teams with specified roles and tasks.
  • Integration with Ollama and CrewAI: Leverages Ollama for decision-making and CrewAI for agent management.
  • CSV Data Management: Facilitates agent data handling in CSV format.
  • Multiple Script Generation: Supports creation of various scripts for different objectives.
  • Team Ranking Functionality: Evaluates and ranks agent teams based on effectiveness and goal alignment.

Prerequisites

  • Python 3.x
  • OpenAI API key (for Ollama interactions)
  • Basic knowledge of Python and command-line operations.

Installation

  1. Clone the repository to your local machine.
  2. Install Python 3.x if not already installed: Python Installation Guide.
  3. Obtain an OpenAI API key from OpenAI.
  4. Install necessary dependencies:
    pip install -r requirements.txt
    

Usage

Execute the script in a terminal as follows:

python3 crewai-autocrew.py [options] "overall_goal"

Options

  • "overall_goal": Main objective for the agent crew (in quotes).
  • -a: Automatically run the generated script.
  • -m[NUM]: Create multiple crews for the same goal. Replace [NUM] with the number required.
  • -r: (experimental): Rank crews generated with the "-m" option.

Examples

Basic Command

python3 crewai-autocrew.py "create a smartphone app with a Voice Chatbot for scam calls"

Automatic Execution

python3 crewai-autocrew.py "Summarise the latest tech news" -a

Multiple Scripts

python3 crewai-autocrew.py "Develop a handheld quantum computer" -m3

Ranking Crews

python3 crewai-autocrew.py "Environmental Cleanup" -r

Troubleshooting

For common issues, refer to the Troubleshooting Guide.

FAQ

Answers to frequently asked questions can be found in the FAQ section.

Contributing

Contributions are welcome. Please fork the repository and submit pull requests for enhancements.

License

This project is under the MIT License - see the LICENSE file for details.

Acknowledgments

Special thanks to all contributors and users of the CrewAI community.

Versioning and Updates

Regular updates are made to this script. Check the Releases page for the latest version.


Disclaimer: This script is updated regularly. Ensure you're using the latest version for optimal functionality.



Please make sure to add the correct link to the CrewAI GitHub repository and any other specific links you wish to include in the README.
>>>>>>> Stashed changes

autocrew's People

Contributors

yanniedog avatar helweg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.