MemoryStoreObject Constructors
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 |
|---|---|
| MemoryStoreObject() |
Initializes a new instance of MemoryStoreObject for deserialization. |
| MemoryStoreObject(String, DateTimeOffset, DateTimeOffset, String, MemoryStoreDefinition) |
Initializes a new instance of MemoryStoreObject. |
| MemoryStoreObject(MemoryStoreObjectObject, String, DateTimeOffset, DateTimeOffset, String, String, IReadOnlyDictionary<String,String>, MemoryStoreDefinition, IDictionary<String,BinaryData>) |
Initializes a new instance of MemoryStoreObject. |
MemoryStoreObject()
- Source:
- MemoryStoreObject.cs
Initializes a new instance of MemoryStoreObject for deserialization.
public MemoryStoreObject();
Public Sub New ()
Applies to
MemoryStoreObject(String, DateTimeOffset, DateTimeOffset, String, MemoryStoreDefinition)
- Source:
- MemoryStoreObject.cs
Initializes a new instance of MemoryStoreObject.
public MemoryStoreObject(string id, DateTimeOffset createdAt, DateTimeOffset updatedAt, string name, Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryStoreDefinition definition);
new Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryStoreObject : string * DateTimeOffset * DateTimeOffset * string * Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryStoreDefinition -> Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryStoreObject
Public Sub New (id As String, createdAt As DateTimeOffset, updatedAt As DateTimeOffset, name As String, definition As MemoryStoreDefinition)
Parameters
- id
- String
The unique identifier of the memory store.
- createdAt
- DateTimeOffset
The Unix timestamp (seconds) when the memory store was created.
- updatedAt
- DateTimeOffset
The Unix timestamp (seconds) when the memory store was last updated.
- name
- String
The name of the memory store.
- definition
- MemoryStoreDefinition
The definition of the memory store. Please note MemoryStoreDefinition is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include MemoryStoreDefaultDefinition.
Exceptions
id, name or definition is null.
Applies to
MemoryStoreObject(MemoryStoreObjectObject, String, DateTimeOffset, DateTimeOffset, String, String, IReadOnlyDictionary<String,String>, MemoryStoreDefinition, IDictionary<String,BinaryData>)
- Source:
- MemoryStoreObject.cs
Initializes a new instance of MemoryStoreObject.
public MemoryStoreObject(Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryStoreObjectObject object, string id, DateTimeOffset createdAt, DateTimeOffset updatedAt, string name, string description, System.Collections.Generic.IReadOnlyDictionary<string,string> metadata, Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryStoreDefinition definition, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData);
new Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryStoreObject : Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryStoreObjectObject * string * DateTimeOffset * DateTimeOffset * string * string * System.Collections.Generic.IReadOnlyDictionary<string, string> * Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryStoreDefinition * System.Collections.Generic.IDictionary<string, BinaryData> -> Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryStoreObject
Public Sub New (object As MemoryStoreObjectObject, id As String, createdAt As DateTimeOffset, updatedAt As DateTimeOffset, name As String, description As String, metadata As IReadOnlyDictionary(Of String, String), definition As MemoryStoreDefinition, serializedAdditionalRawData As IDictionary(Of String, BinaryData))
Parameters
- object
- MemoryStoreObjectObject
The object type, which is always 'memory_store'.
- id
- String
The unique identifier of the memory store.
- createdAt
- DateTimeOffset
The Unix timestamp (seconds) when the memory store was created.
- updatedAt
- DateTimeOffset
The Unix timestamp (seconds) when the memory store was last updated.
- name
- String
The name of the memory store.
- description
- String
A human-readable description of the memory store.
- metadata
- IReadOnlyDictionary<String,String>
Arbitrary key-value metadata to associate with the memory store.
- definition
- MemoryStoreDefinition
The definition of the memory store. Please note MemoryStoreDefinition is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include MemoryStoreDefaultDefinition.
- serializedAdditionalRawData
- IDictionary<String,BinaryData>
Keeps track of any properties unknown to the library.