AIProjectMemoryStores.UpdateMemoriesAsync Method

Definition

Overloads

Name Description
UpdateMemoriesAsync(String, MemoryUpdateOptions, CancellationToken)

Submit an update to the specified memory store.

UpdateMemoriesAsync(String, BinaryContent, RequestOptions)

[Protocol Method] Starts an update that writes conversation memories into the specified memory store. The operation returns a long-running status location for polling the update result.

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

UpdateMemoriesAsync(String, MemoryUpdateOptions, CancellationToken)

Source:
AIProjectMemoryStores.cs
Source:
AIProjectMemoryStores.cs

Submit an update to the specified memory store.

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

Parameters

memoryStoreName
String

The ID of the memory store to update.

options
MemoryUpdateOptions

Memory update 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

UpdateMemoriesAsync(String, BinaryContent, RequestOptions)

Source:
AIProjectMemoryStores.cs
Source:
AIProjectMemoryStores.cs

[Protocol Method] Starts an update that writes conversation memories into the specified memory store. The operation returns a long-running status location for polling the update result.

  • 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> UpdateMemoriesAsync(string name, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member UpdateMemoriesAsync : string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.UpdateMemoriesAsync : string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function UpdateMemoriesAsync (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 update.

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