AIProjectMemoryStores.GetMemoryAsync Method

Definition

Overloads

Name Description
GetMemoryAsync(String, String, CancellationToken)

Retrieve a memory item from a memory store.

GetMemoryAsync(String, String, RequestOptions)

[Protocol Method] Retrieve a memory item from a memory store.

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

GetMemoryAsync(String, String, CancellationToken)

Source:
AIProjectMemoryStores.cs

Retrieve a memory item from a memory store.

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

Parameters

name
String

The name of the memory store.

memoryId
String

The ID of the memory item to retrieve.

cancellationToken
CancellationToken

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

Returns

Exceptions

name or memoryId is null.

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

Service returned a non-success status code.

Applies to

GetMemoryAsync(String, String, RequestOptions)

Source:
AIProjectMemoryStores.cs

[Protocol Method] Retrieve a memory item from a memory store.

  • 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> GetMemoryAsync(string name, string memoryId, System.ClientModel.Primitives.RequestOptions options);
abstract member GetMemoryAsync : string * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.GetMemoryAsync : string * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function GetMemoryAsync (name As String, memoryId As String, options As RequestOptions) As Task(Of ClientResult)

Parameters

name
String

The name of the memory store.

memoryId
String

The ID of the memory item to retrieve.

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 memoryId is null.

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

Service returned a non-success status code.

Applies to