Question 570
An agent relies on a custom prompt that asks the model to invent a customer ID if a lookup fails. What should the agent developer implement to resolve this specific gap?
Explanation
Correct Answer
This is the most suitable change because invented identifiers can cause wrong-record access or updates. The key design choice is to replace fabrication instructions with a missing-identity response and tool validation. Confirm it through this outcome: Unknown customers lead to no record mutation and a clear verification request.
Incorrect Answers
This would be more appropriate for a different problem: An agent sends a formatted invoice response but users see raw JSON across the chat. That problem calls for: Configure a human-readable formatted response with approved fields instead of raw tool payloads. The present case instead requires a solution because invented identifiers can cause wrong-record access or updates.
This would be more appropriate for a different problem: A topic reads an account number from a previous turn but reuses it after the user switches customers. That problem calls for: Reset and revalidate context-bound variables when subject identity changes. The present case instead requires a solution because invented identifiers can cause wrong-record access or updates.
This would be more appropriate for a different problem: A customer agent should show multiple purchase options but a card includes a link to an unapproved external checkout domain. That problem calls for: Validate destination allowlists and construct card actions only from trusted catalog URLs. The present case instead requires a solution because invented identifiers can cause wrong-record access or updates.