Would a worked seat-change policy test fit the chatbot simulation example?
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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from statelyai/agent
-
Trace JSON serialization loses own data keys and cross-realm Error detailsPossibly taken @jihtsan claimed this 33 days ago. Open
Difficulty 3/5 Half a day Newbie friendliness 55/100
Maintainers usually reply within 1 day
-
Recorder replays a failed model stream as a successful partial streamPossibly taken @jihtsan claimed this 34 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
Recorder saves thenable and cross-realm Promise tool results as synchronous empty objectsPossibly taken @jihtsan claimed this 34 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
statelyai/agent#84 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
statelyai/agent#65 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
zabuton-app/meguri#875 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
iruzen-dono/workless#117 ·
Maintainers usually reply within 1 day
-
area:api area:web wave wave:trivial
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
vetro-protocol/vetro-monorepo#1321 ·
Maintainers usually reply within 1 day