QuestionQ77
Implement generative AI and agentic solutionsYou have a Microsoft Foundry project that contains an agent.
You need to enable long-term memory so that the agent can recall user preferences across separate conversations. Stored memories must be isolated per authenticated user, and the client application must not have to manually generate user IDs.
How should you complete the Python code? Each value may be used once, more than once, or not at all.
Drag & Drop
"session"
"{{$conversationId}}"
"{{$userId}}"
[mem_store_name]
[memory_tool]
MemorySearchTool("support_mem_store")
from azure.ai.projects.models import MemorySearchTool, PromptAgentDefinition mem_store_name = "agent_mem_store" memory_tool = MemorySearchTool( memory_store_name=mem_store_name, scope=, ) agent_def = PromptAgentDefinition( model= "gpt-5.2", instructions= "You are a customer support assistant.", tools= )
Community Discussion