cai/examples/triage_agent
Víctor Mayoral Vilches 7749f11a30 Initial commit
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-01-09 11:19:01 +01:00
..
README.md Initial commit 2025-01-09 11:19:01 +01:00
agents.py Initial commit 2025-01-09 11:19:01 +01:00
evals.py Initial commit 2025-01-09 11:19:01 +01:00
evals_util.py Initial commit 2025-01-09 11:19:01 +01:00
run.py Initial commit 2025-01-09 11:19:01 +01:00

README.md

Triage agent

This example is a Swarm containing a triage agent, which takes in user inputs and chooses whether to respond directly, or triage the request to a sales or refunds agent.

Setup

To run the triage agent Swarm:

  1. Run
python3 run.py

Evals

[!NOTE] These evals are intended to be examples to demonstrate functionality, but will have to be updated and catered to your particular use case.

This example uses Pytest to run eval unit tests. We have two tests in the evals.py file, one which tests if we call the correct triage function when expected, and one which assesses if a conversation is 'successful', as defined in our prompt in evals.py.

To run the evals, run

pytest evals.py