AIProjectMemoryStoresOperations.CreateMemoryStoreAsync 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 |
|---|---|
| CreateMemoryStoreAsync(BinaryContent, RequestOptions) |
[Protocol Method] Create a memory store.
|
| CreateMemoryStoreAsync(String, MemoryStoreDefinition, String, IDictionary<String,String>, CancellationToken) |
Create a memory store. |
CreateMemoryStoreAsync(BinaryContent, RequestOptions)
[Protocol Method] Create 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> CreateMemoryStoreAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member CreateMemoryStoreAsync : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.CreateMemoryStoreAsync : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function CreateMemoryStoreAsync (content As BinaryContent, Optional options As RequestOptions = Nothing) As Task(Of ClientResult)
Parameters
- 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
content is null.
Service returned a non-success status code.
Applies to
CreateMemoryStoreAsync(String, MemoryStoreDefinition, String, IDictionary<String,String>, CancellationToken)
Create a memory store.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.MemoryStore>> CreateMemoryStoreAsync(string name, Azure.AI.Projects.MemoryStoreDefinition definition, string description = default, System.Collections.Generic.IDictionary<string,string> metadata = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateMemoryStoreAsync : string * Azure.AI.Projects.MemoryStoreDefinition * string * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.MemoryStore>>
override this.CreateMemoryStoreAsync : string * Azure.AI.Projects.MemoryStoreDefinition * string * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.MemoryStore>>
Public Overridable Function CreateMemoryStoreAsync (name As String, definition As MemoryStoreDefinition, Optional description As String = Nothing, Optional metadata As IDictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of MemoryStore))
Parameters
- name
- String
The name of the memory store.
- definition
- MemoryStoreDefinition
The memory store definition.
- description
- String
A human-readable description of the memory store.
- metadata
- IDictionary<String,String>
Arbitrary key-value metadata to associate with the memory store.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
name or definition is null.
name is an empty string, and was expected to be non-empty.
Service returned a non-success status code.