🔥 3-day streak
Microsoft Azure AI Apps and Agents Developer Associate36 / 146
Question 36 of 146
You build a Foundry agent that calls a custom function tool named getShippingQuote. During a run, the external shipping API the function wraps is temporarily unavailable and the function raises an exception. Your current implementation lets the exception propagate, which terminates the entire run and returns a generic failure to the user. You want the agent to gracefully recover — informing the user and, when possible, continuing the conversation with an alternative — without crashing the run. What is the recommended way to handle this in your tool implementation?
Reviewed for accuracy · Report an issueNext question