Metadata
Wisej.AI.Embeddings.Metadata
Last updated
Wisej.AI.Embeddings.Metadata
Last updated
Namespace: Wisej.AI.Embeddings
Assembly: Wisej.AI (3.5.0.0)
Represents metadata that can store key-value pairs with case-insensitive keys. Implements the interface for JSON serialization.
Initializes a new instance of the class with empty data.
Initializes a new instance of the class with the specified initial data.
data
Initial data to populate the metadata. If data is null, an empty metadata is created.
Initializes a new instance of the class with data from a .
data
Throws:
This method creates a deep copy of the current metadata, allowing modifications to the clone without affecting the original.
Retrieves all property names within the metadata.
This method returns the keys of all stored metadata entries as an array of strings. If the metadata is empty, it returns an empty array.
Removes metadata entries with the specified keys.
keys
An array of keys identifying the metadata entries to remove.
This method will iterate through the provided keys and remove the corresponding entries from the metadata. If the metadata is empty or the keys do not exist, the method does nothing.
A containing initial data. If data is null, an empty metadata is created.
: Gets or sets the value associated with the specified name.
Thrown when setting a value that is not of type string, number, boolean, or date.
Creates a new instance of the class that is a copy of the current instance.
Returns: . A new object that is a copy of this instance.
Returns: . An array of strings containing all property names.