semantic-kernel
semantic-kernel copied to clipboard
New Feature: Add metadata to the constructor of BinaryContent
Can you please make it possible to add metadata in the constructors of BinaryContent, ImageContent, and AudioContent? I want to record the file name and file size when registering an image to ImageContent.
@aeras3637 you can use the following pattern:
var content = new BinaryContent
{
Metadata = new Dictionary<string, object?>
{
{ "key1", "value1" },
{ "key2", "value2" }
}
};