Sulba
ReviewSign inAccount
Theme
Editor theme
Light
Dark

Intermediate · Building on model APIs

Securing the assistant

Keep the bicycle repair shop's assistant safe when the model does what an attacker writes: tools that answer only for the customer signed in, actions the customer confirms, replies the chat window can show, a review of an assistant's guardrails, and the shop's chat shipped against prompt injections.

You build
shop.py, then actions.py, then render.py, then assistant.py, then chat.py
Stages
3 Build, 1 Catch, 1 Ship
Time
About 3.5 hours
Runs on
Your machine

Loading the workspace…