Coder Social home page Coder Social 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

aws-cognito-quicksight-auth icon aws-cognito-quicksight-auth

A simple JavaScript frontend and SAM template to spin up a serverless backend, federating Cognito User Pools users to QuickSight as part of the blog post: https://aws.amazon.com/blogs/big-data/using-amazon-quicksight-federated-single-sign-on-with-amazon-cognito-user-pools/

aws-lambda-power-tuning icon aws-lambda-power-tuning

AWS Lambda Power Tuning is an open-source tool that can help you visualize and fine-tune the memory/power configuration of Lambda functions. It runs in your own AWS account - powered by AWS Step Functions - and it supports three optimization strategies: cost, speed, and balanced.

aws-serverless-airline-booking icon aws-serverless-airline-booking

Airline Booking is a sample web application that provides Flight Search, Flight Payment, Flight Booking and Loyalty points including end-to-end testing, GraphQL and CI/CD. This web application was the theme of Build on Serverless Season 2 on AWS Twitch running from April 24th until end of August in 2019.

aws-serverless-appsync-app icon aws-serverless-appsync-app

This workshop shows you how to build a Web Application that demonstrates how easy it is to create data driven web applications all with no servers. You will build a serverless web application that lets users search for popular tourist destinations. The application will use AWS AppSync and the AWS Serverless platform to provide real-time weather analysis of the indexed destinations.

aws-serverless-ecommerce-platform icon aws-serverless-ecommerce-platform

Serverless Ecommerce Platform is a sample implementation of a serverless backend for an e-commerce website. This sample is not meant to be used as an e-commerce platform as-is, but as an inspiration on how to build event-driven serverless microservices on AWS.

aws-serverless-security-workshop icon aws-serverless-security-workshop

In this workshop, you will learn techniques to secure a serverless application built with AWS Lambda, Amazon API Gateway and RDS Aurora. We will cover AWS services and features you can leverage to improve the security of a serverless applications in 5 domains: identity & access management, code, data, infrastructure, logging & monitoring.

aws-sqs-node-js-examples icon aws-sqs-node-js-examples

Tutorial on using the AWS SQS API to create queues and work with messages within those queues. We will be using NodeJS as our primary language but it can be done using any language the AWS SDK supports.

aws-xray-daemon icon aws-xray-daemon

The AWS X-Ray daemon listens for traffic on UDP port 2000, gathers raw segment data, and relays it to the AWS X-Ray API.

aws_lambda_in_action icon aws_lambda_in_action

This source code distribution is a companion to the AWS Lambda in Action book available from Manning Publications.

blackjack icon blackjack

Blackjack dApp on Ethereum blockchain written in Solidity and React

blueprint-examples icon blueprint-examples

This is where you can find officially supported Cloudify blueprints that work with the latest versions of Cloudify. Please make sure to use the blueprints from this repo when you are evaluating Cloudify.

chainlink icon chainlink

node of the decentralized oracle network, bridging on and off-chain computation

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.