Question 90
A flow response is a number in some branches but a sentence in others. What should the agent solution use in this situation?
Explanation
Correct Answer
Normalize the result type across branches before Respond to the agent. Consistent output schemas prevent downstream parsing errors and ambiguous value handling.
Incorrect Answers
When the approval result is retrieved, the agent must distinguish denied requests from successful business actions. That matters for “decision and the agent must report its outcome” rather than the condition “in some branches but a sentence in others”.
Stable response contracts make both success and failure cases interpretable by the agent. The boundary it addresses is “either an approved result or a validation error”, while this case concerns “in some branches but a sentence in others”.
Separate typed output fields enable clear downstream responses and condition logic. This solves “the current shipping status and estimated delivery separately”; the stated issue is “in some branches but a sentence in others”.