Question 130
A retail concierge agent can look up orders and initiate returns through tools. An architecture review identifies a gap: a return tool schema accepts arbitrary fields and downstream requests fail unexpectedly. What implementation is required?
Explanation
Correct Answer
In the production workflow, the failure is that a return tool schema accepts arbitrary fields and downstream requests fail unexpectedly. The team should publish typed action-group parameter schemas and reject unrecognized values.
Incorrect Answers
The suggested action to require verified end-user confirmation before refund action execution focuses on the situation in which an agent can refund purchases without explicit customer approval. A model recommendation is not transaction authorization.
Choosing to persist scoped session state tied to the authenticated user targets a different condition: conversation context disappears between tool calls and the agent loses the active order. Agent memory must be isolated and authorized.
Enforce a step budget timeouts and loop detection in orchestration addresses the agent continues looping between inventory and shipping tools after repeated failures. Bounded execution prevents runaway cost and unintended actions.