Plugins are a key element when building agents in Semantic Kernel. They allow you to extend the capabilities of your Large Language Model with extra functions. This post is not about writing your own plugin but
Just as a reminder, registering a plugin can be done like this:
Here is the code I used to try to invoke the TimePlugin in a prompt:
However when I did this the following error was returned:
System.Collections.Generic.KeyNotFoundException: 'The plugin collection does not contain a plugin and/or function with the specified names. Plugin name – 'time', function name - 'Date'.'
The problem is caused because I had configured an alias name for the plugin but I was using the plugin name in the prompt.
I have 2 ways to fix the issue above.
Either I update the prompt to point to the configured alias:
Or I remove the alias from my configuration:
Hope that helps…