Grokking Agentic Design Patterns
Vote

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.

VersionWhat your code returns to the model
AConnectionTimeout at OrderClient.fetch (client.js:212) at retry (http.js:88) and 40 more lines
BError 500
CThe 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%


Vote for new content