Partager via


MemoryRecordMetadata(Boolean, String, String, String, String, String) Constructor

Definition

Constructor.

[System.Text.Json.Serialization.JsonConstructor]
public MemoryRecordMetadata (bool isReference, string id, string text, string description, string externalSourceName, string additionalMetadata);
[<System.Text.Json.Serialization.JsonConstructor>]
new Microsoft.SemanticKernel.Memory.MemoryRecordMetadata : bool * string * string * string * string * string -> Microsoft.SemanticKernel.Memory.MemoryRecordMetadata
Public Sub New (isReference As Boolean, id As String, text As String, description As String, externalSourceName As String, additionalMetadata As String)

Parameters

isReference
Boolean

True if source data is local, false if source data comes from an external service

id
String

Unique string used to identify the MemoryRecord.

text
String

Local source data associated with a MemoryRecord embedding.

description
String

MemoryRecord description.

externalSourceName
String

Name of the external source if isReference is true.

additionalMetadata
String

Field for saving custom metadata with a memory.

Attributes

Applies to