Foundry agent returns a function_call item and no answer
AI-901
Implement AI solutions by using Microsoft Foundry
Medium
Question 9 of 50
A Foundry prompt agent has a function tool for checking stock. The app calls responses.create in a conversation, and the response output holds one function_call item and no answer text. The app shows that output to the user and stops there.
What is the client application failing to do?
Show answer and explanation
ARun the function and send back a function_call_output item
The agent's model asks your app to call the function. Your app runs it and sends the result back as a function_call_output item, with the same call_id, in another responses.create call on the same conversation, and the agent uses that result to write its answer. Foundry never runs a function tool for you, so polling the conversation waits for an answer nothing is producing. Code interpreter is a separate tool that runs code in a sandbox; it does not call your app's function. Setting strict tightens argument validation, and the model already sent a well-formed function_call.
Source: learn.microsoft.com/
Anonymous, no account needed. Your tally stays in this browser.