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/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