Sha256: 5dceb2ac732a4828fc3e5b8e15509bb52ad2af8aae869bc4d5bc33aa5a841e8b

Contents?: true

Size: 797 Bytes

Versions: 17

Compression:

Stored size: 797 Bytes

Contents

# 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

```shell
ruby main.rb
```
or

```shell
ruby examples/triage_agent/main.rb
```

## Evals (TODO)

> [!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

```shell
ruby evals.rb
```

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ruby-openai-swarm-0.4.0.2 examples/triage_agent/README.md
ruby-openai-swarm-0.4.0.1 examples/triage_agent/README.md
ruby-openai-swarm-0.4.0 examples/triage_agent/README.md
ruby-openai-swarm-0.3.1 examples/triage_agent/README.md
ruby-openai-swarm-0.3.0.1 examples/triage_agent/README.md
ruby-openai-swarm-0.3.0 examples/triage_agent/README.md
ruby-openai-swarm-0.2.9 examples/triage_agent/README.md
ruby-openai-swarm-0.2.8 examples/triage_agent/README.md
ruby-openai-swarm-0.2.7 examples/triage_agent/README.md
ruby-openai-swarm-0.2.6 examples/triage_agent/README.md
ruby-openai-swarm-0.2.5 examples/triage_agent/README.md
ruby-openai-swarm-0.2.4 examples/triage_agent/README.md
ruby-openai-swarm-0.2.3 examples/triage_agent/README.md
ruby-openai-swarm-0.2.2 examples/triage_agent/README.md
ruby-openai-swarm-0.2.1 examples/triage_agent/README.md
ruby-openai-swarm-0.2.0 examples/triage_agent/README.md
ruby-openai-swarm-0.1.0 examples/triage_agent/README.md