AIProjectMemoryStores.UpdateMemoryAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| UpdateMemoryAsync(String, String, BinaryContent, RequestOptions) |
[Protocol Method] Update a memory item in a memory store.
|
| UpdateMemoryAsync(String, String, String, CancellationToken) |
Update a memory item in a memory store. |
UpdateMemoryAsync(String, String, BinaryContent, RequestOptions)
- Source:
- AIProjectMemoryStores.cs
[Protocol Method] Update a memory item in 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> UpdateMemoryAsync(string name, string memoryId, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member UpdateMemoryAsync : string * string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.UpdateMemoryAsync : string * string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function UpdateMemoryAsync (name As String, memoryId As String, content As BinaryContent, Optional options As RequestOptions = Nothing) As Task(Of ClientResult)
Parameters
- name
- String
The name of the memory store.
- memoryId
- String
The ID of the memory item 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, memoryId or content 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
UpdateMemoryAsync(String, String, String, CancellationToken)
- Source:
- AIProjectMemoryStores.cs
Update a memory item in a memory store.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Memory.MemoryItem>> UpdateMemoryAsync(string name, string memoryId, string content, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateMemoryAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Memory.MemoryItem>>
override this.UpdateMemoryAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Memory.MemoryItem>>
Public Overridable Function UpdateMemoryAsync (name As String, memoryId As String, content 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 update.
- content
- String
The updated content of the memory.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
name, memoryId or content is null.
name, memoryId or content is an empty string, and was expected to be non-empty.
Service returned a non-success status code.