Would a worked seat-change policy test fit the chatbot simulation example?

Open Beginner friendly
#278 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
testing

Research direction

Open examples/chatbot-simulation-eval and read the existing “Polite seat change” case plus how createMockJudge receives the simulated exchange. Locate the fare-rule fixtures and the example’s Vitest setup, then model two scripted 36-hour aisle-seat exchanges: one free change, one $25 charge. Done when the new Vitest case runs offline against existing fixtures and asserts a pass for the free reply and a failure for the charged one, with no new dependencies.

Written by the indexing model from the issue text.

Description

Hi, I’m Jeff from AugmentWorks. I was reading the chatbot simulation example. The “Polite seat change” test checks that the simulator receives the aisle-seat persona. I’d like to show readers how to test the fare rule too.

Would you welcome a small Vitest PR with two scripted exchanges? In both, the customer asks for an aisle seat 36 hours before departure. One reply changes it for free. The other asks for $25. I’d use the existing createMockJudge callback to check the policy and the actual exchange it receives, then assert the example reports a pass for the first and a failure for the second. It would run offline with the existing fixtures and add no dependencies.

Happy to send that test if it fits what you want this example to teach.

Dominant language
TypeScript
Stars
508
Forks
29
Avg merge
8h 54m
Merged PRs (30d)
74

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from statelyai/agent

All issues in statelyai/agent

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.