PRODUCTION SCENARIO
A Foundry agent has a function tool defined for checking stock. Its first response contains a function_call item and no final answer, and the run then expires.
What is the client application failing to do?
Answering here is anonymous. Nothing is saved unless you sign in.
Show answer and explanation
Answer: Execute the function and submit a function_call_output item
With function calling, the agent's model asks your app to call the function, your app executes it and returns the output, and the agent then uses that result to finish its response. Foundry never runs the function for you, so a function call with no returned output leaves the run without a final answer.