Condividi tramite


AIProjectMemoryStores.SearchMemoriesAsync Method

Definition

Overloads

Name Description
SearchMemoriesAsync(String, MemorySearchOptions, CancellationToken)

Search for relevant memories from a memory store based on conversation context.

SearchMemoriesAsync(String, BinaryContent, RequestOptions)

[Protocol Method] Search for relevant memories from a memory store based on conversation context.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

SearchMemoriesAsync(String, MemorySearchOptions, CancellationToken)

Source:
AIProjectMemoryStores.cs

Search for relevant memories from a memory store based on conversation context.

public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Memory.MemoryStoreSearchResponse>> SearchMemoriesAsync(string memoryStoreName, Azure.AI.Projects.Memory.MemorySearchOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member SearchMemoriesAsync : string * Azure.AI.Projects.Memory.MemorySearchOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Memory.MemoryStoreSearchResponse>>
override this.SearchMemoriesAsync : string * Azure.AI.Projects.Memory.MemorySearchOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Memory.MemoryStoreSearchResponse>>
Public Overridable Function SearchMemoriesAsync (memoryStoreName As String, options As MemorySearchOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of MemoryStoreSearchResponse))

Parameters

memoryStoreName
String

The ID of the memory store to search.

options
MemorySearchOptions

Memory search options.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

memoryStoreName or options is null.

memoryStoreName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

SearchMemoriesAsync(String, BinaryContent, RequestOptions)

Source:
AIProjectMemoryStores.cs

[Protocol Method] Search for relevant memories from a memory store based on conversation context.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> SearchMemoriesAsync(string name, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member SearchMemoriesAsync : string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.SearchMemoriesAsync : string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function SearchMemoriesAsync (name As String, content As BinaryContent, Optional options As RequestOptions = Nothing) As Task(Of ClientResult)

Parameters

name
String

The name of the memory store to search.

content
BinaryContent

The content to send as the body of the request.

options
RequestOptions

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

name or content is null.

name is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to