Skip to content

Files

Latest commit

e5eabc6 · Oct 10, 2024

History

History
This branch is up to date with openai/swarm:main.

triage_agent

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024

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