MemoryRecord Constructor
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.
[System.Text.Json.Serialization.JsonConstructor]
public MemoryRecord (Microsoft.SemanticKernel.Memory.MemoryRecordMetadata metadata, ReadOnlyMemory<float> embedding, string? key, DateTimeOffset? timestamp = default);
[<System.Text.Json.Serialization.JsonConstructor>]
new Microsoft.SemanticKernel.Memory.MemoryRecord : Microsoft.SemanticKernel.Memory.MemoryRecordMetadata * ReadOnlyMemory<single> * string * Nullable<DateTimeOffset> -> Microsoft.SemanticKernel.Memory.MemoryRecord
Public Sub New (metadata As MemoryRecordMetadata, embedding As ReadOnlyMemory(Of Single), key As String, Optional timestamp As Nullable(Of DateTimeOffset) = Nothing)
Parameters
- metadata
- MemoryRecordMetadata
- embedding
- ReadOnlyMemory<Single>
- key
- String
- timestamp
- Nullable<DateTimeOffset>
- Attributes