All Lessons

In a bounded agent loop, why must termination authority reside in the host application rather than depending exclusively on the model emitting stop_reason === 'end_turn'?

1 / 1
intermediate 45 min

Day 10: Build a Bounded Agent Loop

Build a Bounded Agent Loop

Loading lesson content...

Examine the pre-flight check inside this agent loop. Why are turn limits and wall-clock deadlines evaluated BEFORE dispatching the model API call?

1 / 1

During a complex multi-step IT investigation, Helpdesk Copilot encounters three consecutive tool errors while querying an unresponsive directory service. What should the bounded agent loop do?

1 / 1