Grokking Agentic Design Patterns
0% completed
Case Study: Checkpoints for Desk
Here is a puzzle. Desk's rule says that a refund above 200 dollars needs an employee's approval. A customer was charged twice for a blender, at 120 dollars each, and the blender is broken. Desk calls the refund tool twice, once for each charge, with an amount of 120 dollars each time.
Neither call is above 200 dollars, so the tool runs both, and the customer receives 240 dollars with no employee involved. Every line of code did what it says, yet the store has paid more than 200 dollars on one case without the required approval.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%