cai/examples/personal_shopper
Víctor Mayoral Vilches c3e3983143 Switch to CAI structure from swarm inspiration
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-01-09 13:20:31 +01:00
..
README.md Switch to CAI structure from swarm inspiration 2025-01-09 13:20:31 +01:00
__init__.py Initial commit 2025-01-09 11:19:01 +01:00
database.py Pre-commit fixes in all source code 2025-01-09 13:06:01 +01:00
main.py Switch to CAI structure from swarm inspiration 2025-01-09 13:20:31 +01:00

README.md

Personal shopper

This CAI is a personal shopping agent that can help with making sales and refunding orders. This example uses the helper function run_demo_loop, which allows us to create an interactive CAI session. In this example, we also use a Sqlite3 database with customer information and transaction data.

Overview

The personal shopper example includes three main agents to handle various customer service requests:

  1. Triage Agent: Determines the type of request and transfers to the appropriate agent.
  2. Refund Agent: Manages customer refunds, requiring both user ID and item ID to initiate a refund.
  3. Sales Agent: Handles actions related to placing orders, requiring both user ID and product ID to complete a purchase.

Setup

Once you have installed dependencies and CAI, run the example using:

python3 main.py