An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Hi Elvis Lau
In Microsoft Azure AI Foundry, when you configure the Azure AI Search tool for a prompt‑based agent, the search filter is stored as part of the agent definition. Because the agent definition is versioned, any change to the filter—such as changing conversation_id eq '1' to conversation_id eq '2'—forces creation of a new agent version
In Foundry, an agent is treated as a persisted, auditable orchestration artifact that includes model selection, tools, parameters, and governance controls. To guarantee reproducibility, governance, and traceability, tool parameters (including AI Search filters) are immutable per agent version. This ensures that a given agent version always behaves deterministically. [learn.microsoft.com]
Foundry separates agent configuration from conversation state. The agent defines how reasoning and retrieval happen, while the conversation stores runtime state and history for each user/session. Because of this separation, conversation‑specific values (like a conversation ID) are not expected to be encoded in the agent’s AI Search filter. Instead, conversations are the unit that changes per user or per session. [learn.microsoft.com]
If you need per‑conversation isolation, the recommended approach is to move that variability out of the agent definition. Common patterns include designing your Azure AI Search index so that documents are already scoped per tenant, user, or session, or using separate indexes per logical scope. The agent remains constant, while the data it retrieves is naturally constrained by index design rather than dynamic filters.
AI Search filters are static per agent version by design. No, you should not create a new agent per conversation. Instead, share a single agent across conversations and handle per‑conversation scoping through conversation state or index architecture. Today, Foundry does not support passing dynamic AI Search filters at runtime without changing the agent version.- AI Foundry Agent Service FAQ
Hope this helps. Do let us know if you any further queries.
Thank you!