All Questions
Agents And Tool Use medium

Your support agent can call `send_email`. Leadership requires a guarantee that no email goes to an external domain without human sign-off, even if the agent is manipulated by a prompt injection in a customer message. How should you implement this?

  1. A Add a system-prompt rule requiring the model to ask for confirmation in chat before calling send_email to an external domain.
  2. B Have a second reviewer LLM inspect each draft and approve it, since a separate model instance acts as an independent check.
  3. C Have the agent call a self_check tool that returns whether the action is risky before it proceeds to call send_email.
  4. D Enforce it in the host's tool executor: external send_email calls are held as pending until a human approves them.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions