Explain Your Booking Assistant

Your booking assistant passes the brief’s cases, and you’ve compared two versions of it on your own provider. Before it goes into Linden Ferries’ passenger chat, a teammate would still ask why each guard is there, what the evals really showed, and whether you can change the assistant without breaking your guards or evals.

In this review, you’ll explain your assistant to the mentor, then make an unfamiliar change to it, using your guards and eval set to keep it safe. Start by getting your files in front of you.

Open Your Project Files

The mentor reads only what you paste into the conversation, so have your project folder open in your editor and a terminal in the same folder. You’ll want these materials close at hand:

  • tools.js and assistant.js, with your tool definitions, their guards, and the loop with its caps
  • evals/cases.js, with the brief’s six cases and any you added
  • Your runs of both versions, the before and after files, and the output of node evals/compare.js before after
  • Your few sentences on whether you’d switch to the changed version and why

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.