Help Regarding Metadata Attribute of CreateVectorStoreAsync() Method of Class "AgentsClient"? #10932
-
I am checking https://github.com/microsoft/semantic-kernel/blob/main/dotnet/samples/GettingStartedWithAgents/AzureAIAgent/Step05_AzureAIAgent_FileSearch.cs, and In this code, in line 26 (metadata: new Dictionary<string, string>() { { SampleMetadataKey, bool.TrueString } });) is code, I want to understand the concept and importance behind this metadata parameter because further it has been used in CreateAgentAsync, and also passed in CreateThreadAsync? Is this is the connecting point or something else? why it is needed and used. I want to implement FileSearch in a Custom Manner for that I want to understand this. So if Anyone can reply will be very helpful. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @lovedeepatsgit, the metadata parameter is used as an internal mechanism in SK to tag and track resources that are created by our samples. By assigning the |
Beta Was this translation helpful? Give feedback.
Hi @lovedeepatsgit, the metadata parameter is used as an internal mechanism in SK to tag and track resources that are created by our samples. By assigning the
SampleMetadataKey
a value (in this case, bool.TrueString), we can easily identify which agents, threads, or other resources originated from sample code. This tagging helps differentiate sample-created resources from those generated in production, simplifying monitoring, debugging, and clean-up processes in our portal.