Git Product home page Git Product logo
CrewAI Hierarchical Tutorial
Overview
This repository hosts the updated CrewAI tutorial, showcasing advanced AI-powered automation through hierarchical, asynchronous tasks with callbacks and predefined expected outputs. It is designed to illustrate an enhanced workflow for building AI-driven newsletter automation tools.

Features
Hierarchical Task Management: Leverage the power of structured task execution to maintain a clean and scalable codebase.
Asynchronous Tasks: Improve performance with non-blocking operations, allowing tasks to run concurrently.
Callbacks: Ensure that each task can trigger subsequent actions upon completion, enabling a reactive task flow.
Expected Outputs: Define the anticipated results for each task, streamlining debugging and ensuring quality control.
Installation
To get started with the CrewAI Hierarchical Tutorial, clone the repository and install the necessary dependencies.

bash
Copy code
git clone https://github.com/your-github-username/crewai-hierarchical-tutorial.git
cd crewai-hierarchical-tutorial
pip install -r requirements.txt
Usage
To run the CrewAI tutorial, execute the main script after setting up your environment variables and configuration.

bash
Copy code
python main.py
Structure
main.py: The entry point script that initializes the agents and tasks, and forms the AI crew.
agents.py: Defines various agents like the editor, news fetcher, news analyzer, and newsletter compiler.
tasks.py: Contains the task definitions that are used by the agents to perform specific operations.
file_io.py: Manages file input/output operations, crucial for handling the async flow of data.
Crew Formation
The crew is composed of multiple agents and tasks orchestrated to perform complex newsletter automation.

python
Copy code
crew = Crew(
    agents=[editor, news_fetcher, news_analyzer, newsletter_compiler],
    tasks=[fetch_news_task, analyze_news_task, compile_newsletter_task],
    process=Process.hierarchical,
    manager=lm=OpenAIGPT4,
    verbose=2
)
Contributing
Contributions to the CrewAI Hierarchical Tutorial are welcome. Please feel free to fork the repository, make your changes, and submit a pull request.

Questions & Support
For questions and support, please open an issue in the repository, and we will be happy to assist you.

Henry Prestwood's Projects

aerostack2 icon aerostack2

Aerostack2 is a ROS 2 framework developed to create autonomous multi-aerial-robots systems in an easy and powerful way.

agency-swarm icon agency-swarm

An opensource agent orchestration framework built on top of the latest OpenAI Assistants API.

alexa-cookbook icon alexa-cookbook

A series of sample code projects to be used for educational purposes during Alexa hackathons and workshops, and as a reference for tutorials and blog posts.

alexa-for-business icon alexa-for-business

This repository holds sample Alexa skill templates for use in enterprise scenarios and in particular for use with Alexa for Business (aws.amazon.com/a4b). Some samples are more complete, such as the Help Desk skill, but others will be smaller in scope, focusing on specific use cases or integrations.

amazon-chime-sdk-js icon amazon-chime-sdk-js

A JavaScript client library for integrating multi-party communications powered by the Amazon Chime service.

amazon-eventbridge-resource-policy-samples icon amazon-eventbridge-resource-policy-samples

Learn more about Amazon EventBridge resource policies and multi-account event bus topologies. This repo contains sample code for the AWS re:Invent 2020 session "Building event-driven applications with Amazon EventBridge" (https://bit.ly/35VGQEf) and the AWS Compute blog post "Simplifying cross-account access with Amazon EventBridge" (https://amzn.to/3o0Dcz4)

amazon-kinesis-video-streams-producer-sdk-cpp icon amazon-kinesis-video-streams-producer-sdk-cpp

Amazon Kinesis Video Streams Producer SDK for C++ is for developers to install and customize for their connected camera and other devices to securely stream video, audio, and time-encoded data to Kinesis Video Streams.

ampersand-router icon ampersand-router

Clientside router with fallbacks for browsers that don't support pushState. Mostly lifted from Backbone.js.

atmos icon atmos

Universal Tool for DevOps and Cloud Automation (works with terraform, helm, helmfile, istioctl, etc)

autogen icon autogen

Enable Next-Gen Large Language Model Applications. Join our Discord: https://discord.gg/pAbnFJrkgZ

awesome-serverless icon awesome-serverless

DEPRECATED: Curated list of resources related to serverless computing and serverless architectures.

awesome-sre icon awesome-sre

A curated list of Site Reliability and Production Engineering resources.

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.