Tools, Guardrails and Evals for AI Features

Stephen Gruppetta 22 Lessons 8h 38m Updated intermediate ai

In this course, you’ll let a language model call your own functions, keep it from doing harm, and measure whether a change made it better. You’ll follow a small island ferry company whose summer phone line is overloaded, and build its booking assistant: it looks up sailings, finds a passenger’s booking, and changes it only after the passenger confirms.

You’ll learn how to:

  • Describe a function as a tool and run the loop that answers the model’s tool calls
  • Check every tool call’s arguments in your code, and confirm a change before you make it
  • Choose which tools the assistant gets, cap its calls, and keep instructions hidden in a booking note from taking over
  • Write eval cases and checks, run each case more than once, and grade open answers with a rubric
  • Compare two versions on an eval set before you switch

The course works with OpenAI or Anthropic. You need a key for one of them for the project, and the coding exercises need none.

What’s Included:

  • 22 Lessons
  • Video Subtitles and Full Transcripts
  • Translated Subtitles in 8 Languages
  • 2 Downloadable Resources
  • Interactive Quiz to Check Your Progress
  • 4 Hands-On Coding Exercises
  • Q&A With JavaScript Experts: Ask a Question
  • Certificate of Completion

Downloadable Resources:

Related Learning Paths:

About Stephen Gruppetta

Stephen obtained a PhD in physics and worked as a physicist in academia for over a decade before becoming a programming educator. He's constantly looking for simple ways to explain complex things.

» More about Stephen

Each tutorial at RealJS is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

← Browse All Courses