PRODUCTION SCENARIO
A Foundry agent creates support tickets through a function tool that takes several minutes. Runs expire before the output is submitted, and the retries create duplicate tickets.
Which change does Microsoft's guidance recommend?
Answering here is anonymous. Nothing is saved unless you sign in.
Show answer and explanation
Answer: Return a status immediately and poll for the result
For long-running operations the documented pattern is to return a status immediately and implement polling, because the ten-minute run expiration covers total elapsed time, not the function's own execution. A hosted agent changes where your code runs, and Microsoft still makes your agent responsible for preventing duplicate side effects. The ten-minute expiration is a fixed service limit, not a setting you can raise. Streaming changes how tokens are delivered; it does not extend how long a run may take.