Grokking Agentic Design Patterns
0% completed
Tool Results: What a Response Should Contain and What an Error Should Say
Desk calls lookup_order at step 2, and the order system does not respond. The failure is the same in all three versions below, and only the text returned to the model differs.
| Version | What your code returns to the model |
|---|---|
| A | ConnectionTimeout at OrderClient.fetch (client.js:212) at retry (http.js:88) and 40 more lines |
| B | Error 500 |
| C | The order system did not respond, and 2 retries also failed. Do not try lookup_order again in this run. Use escalate_to_employee, and include the order number. |
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%