Skip to content

mpriem/PizzaAgent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PizzaAgent

This project is a sample AI-powered pizza ordering agent built for Microsoft OpenHack. It demonstrates how to use a custom Semantic Kernel plugin to interact with a pizza ordering API, allowing users to browse the menu, create orders, check order status, and cancel orders—all through natural language interactions.

Features

  • List available pizzas and toppings
  • Create new pizza orders (with custom toppings)
  • View all orders and their status
  • Cancel existing orders
  • Integrates with Azure AI and Semantic Kernel

Setup Instructions

Prerequisites

  • Python 3.8+
  • pip
  • Azure subscription and credentials (for Azure AI agent)

Installation

  1. Clone this repository:
    git clone <your-repo-url>
    cd PizzaAgent
  2. Create and activate a virtual environment (optional but recommended):
    python -m venv venv
    .\venv\Scripts\activate
  3. Install dependencies:
    pip install -r requirements.txt
  4. Set up environment variables:
    • Create a .env file in the project root with the following variables:
      AZURE_TENANT_ID=<your-tenant-id>
      PROJECT_ENDPOINT=<your-azure-ai-endpoint>
      AGENT_ID=<your-agent-id>
      your-agent-id starts with asst-

Running the Agent

Run the agent with:

python agent.py

The agent will simulate a conversation, demonstrating menu browsing, order creation, status checking, and cancellation.

Microsoft OpenHack

This project is designed for use in Microsoft OpenHack, a hands-on, challenge-based learning event. For more information, visit the OpenHack portal.

Project Structure

  • agent.py — Main entry point, defines the agent and plugin
  • pizza_api_client.py — HTTP client for the Pizza API
  • README.md — Project documentation

License

This project is for educational purposes as part of Microsoft OpenHack.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages