Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JogendraSingh1879/Agentic-AI-
Building and Deploying a Free Pizza Ordering System with FastAPI and Multi-Agent Architecture
https://github.com/JogendraSingh1879/Agentic-AI-
Last synced: 3 days ago
JSON representation
Building and Deploying a Free Pizza Ordering System with FastAPI and Multi-Agent Architecture
- Host: GitHub
- URL: https://github.com/JogendraSingh1879/Agentic-AI-
- Owner: JogendraSingh1879
- Created: 2024-12-16T16:28:43.000Z (23 days ago)
- Default Branch: main
- Last Pushed: 2024-12-16T16:36:08.000Z (23 days ago)
- Last Synced: 2024-12-16T17:39:55.576Z (23 days ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome_ai_agents - Agentic-Ai- - Building and Deploying a Free Pizza Ordering System with FastAPI and Multi-Agent Architecture (Building / Deployment)
- awesome_ai_agents - Agentic-Ai- - Building and Deploying a Free Pizza Ordering System with FastAPI and Multi-Agent Architecture (Building / Deployment)
README
# Agentic AI
# Building and Deploying a Free Pizza Ordering System with FastAPI and Multi-Agent ArchitectureHere's a complete use case for a multi-agent system (MAS) incorporating two agents in the context of an online pizza store. The two agents in this system will be:
**Order Agent:** Handles the order placement, takes the pizza order from the customer, and processes the payment.
Inventory Agent: Manages the inventory of pizza ingredients and updates the stock after each order.
The system will be exposed as a REST API using FastAPI.# Use Case: Online Pizza Store
# Actors:
**Customer:** Places pizza orders through the system.
**Order Agent:** Responsible for taking orders and initiating payments.
**Inventory Agent:** Manages the inventory of ingredients and updates stock.
**Goal:** Allow a customer to place an order for a pizza, check if the inventory has sufficient ingredients, and then confirm the order after payment.# Agents and Responsibilities:
**1. Order Agent:**
Receives the order details (pizza size, type, quantity).
Validates if the pizza type and size are available.
Sends the request to the Inventory Agent to check the ingredient availability.
Handles the payment processing.**2. Inventory Agent:**
Manages the inventory of pizza ingredients (e.g., cheese, dough, toppings).
Checks if sufficient ingredients are available to fulfill the order.
Updates the stock after the order is placed.# Multi-Agent System Architecture:
Order Agent communicates with the Inventory Agent via API calls (synchronous or asynchronous).
The Inventory Agent checks the availability of ingredients in the system.
Order Agent responds to the customer based on inventory availability and processes the payment.
The Order Agent and Inventory Agent are exposed as separate endpoints using FastAPI.Python Code Implementation
FastAPI Setup
Order Agent and Inventory Agent as separate endpoints
Communication between Order and Inventory Agents