Code as an agent's tool

A section of the "Agents: tools and planning" topic. The questions check an understanding of practice, not memory of specific library APIs. After each answer comes a review: why the correct option is right, what is wrong with each incorrect one and which chapter to read.

Quiz difficulty Formats: several correct options, order of steps, the faulty line

Quiz 3.7Code as an agent's toolStart Practice or a ranked attempt — you choose after clicking.
  1. What actually isolates code
  2. Levels of execution isolation
  3. When to strengthen isolation
  4. Input validation in execution tools
  5. A mistake in long-output settings
  6. One model proposes, another approves
  7. A guard model next to the agent
  8. Observability of execution tools