Keeping context across follow-up questions to a Foundry agent
AI-901
Implement AI solutions by using Microsoft Foundry
Easy
Question 29 of 50
You are building a client application for an agent in Microsoft Foundry. The application asks the agent which areas the company delivers to, and then asks a follow-up question about delivery times. Each request is sent independently, so the agent answers the follow-up without the context of the first question.
What should you do to preserve context across the requests?
Show answer and explanation
BCreate a conversation resource and supply its identifier on calls
In Microsoft Foundry Agent Service, creating a conversation object and passing its identifier on each request allows the conversation to maintain history and context across multiple interaction turns. Creating a new agent version creates a static snapshot of the agent definition and tools, which does not store user conversation history. Specifying the same agent name routes calls to the identical agent definition, but individual API requests remain completely stateless unless bound to an active conversation identifier. Attaching a file search tool grounds agent answers in uploaded reference documents, but it does not store previous user prompts or assistant dialogue history.
Source: learn.microsoft.com/
Anonymous, no account needed. Your tally stays in this browser.