Fixing Foundry agent run timeouts from a slow ticketing API

AI-901 Implement AI solutions by using Microsoft Foundry Medium Question 17 of 50

You are developing an agent in Microsoft Foundry that generates support tickets through a custom function tool. The external ticketing API takes several minutes to complete, causing agent runs to exceed the ten-minute service timeout before tool output can be submitted, resulting in duplicate tickets on retries.

How should you modify the tool execution to prevent run timeouts?

Show answer and explanation

DReturn an initial status immediately and implement polling

For long-running operations in Microsoft Foundry function calling, documented best practice is to return a status immediately and implement polling. The ten-minute run expiration applies to total elapsed execution time rather than the function duration, so completing the tool call immediately with an in-progress status prevents the run from expiring. Hosting the function in a container changes hosting infrastructure but does not resolve the synchronous blocking execution pattern. The ten-minute run expiration is a hard service limit that cannot be increased. Token streaming alters how response text is transmitted to the client, but it does not extend maximum run duration while waiting for tool outputs.

Source: learn.microsoft.com/en-us/azure/foundry/agents/how-to/tools…

Anonymous, no account needed. Your tally stays in this browser.

Next question Start 5 timed questions Browse all 50 original AI-901 practice questions