You are creating an Azure AI Foundry agent. You want users to have isolated, stateful conversations so that each user's message history, uploaded files, and intermediate results are kept separate from other users. Which construct in the Foundry Agent Service should you create per user session?
- A. A new Run for each user
- B. A new Thread for each user✓ Correct
- C. A new Agent for each user
- D. A new Deployment for each user
Explanation
A Thread is correct because Threads are the stateful conversation containers in Azure AI Foundry Agent Service — they store message history, file attachments, and intermediate results independently per conversation. Creating a new Agent per user is incorrect and wasteful; an Agent defines the instructions and tools configuration and is meant to be reused across many conversations. A Run is incorrect because a Run is a single invocation of the agent on a Thread; it is not the container for ongoing conversation state. A Deployment is not a Foundry Agent Service construct for conversation isolation; it refers to model deployments in Azure AI Foundry.