你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MemorySearchTool(String, String) Constructor

Definition

Initializes a new instance of MemorySearchTool.

public MemorySearchTool(string memoryStoreName, string scope);
new Azure.AI.Projects.OpenAI.MemorySearchTool : string * string -> Azure.AI.Projects.OpenAI.MemorySearchTool
Public Sub New (memoryStoreName As String, scope As String)

Parameters

memoryStoreName
String

The name of the memory store to use.

scope
String

The namespace used to group and isolate memories, such as a user ID. Limits which memories can be retrieved or updated. Use special variable {{$userId}} to scope memories to the current signed-in user.

Exceptions

memoryStoreName or scope is null.

Applies to