How to use plugins with Semantic Kernel
How to use plugins with Semantic Kernel
Nilesh Acharya provides detailed instructions on using plugins with Semantic Kernel. He guides readers through an example that involves using an OpenAPI plugin for the GitHub Open API to build a console chat experience. Here are the steps:
- Navigate to 'semantic-kernel/samples/dotnet/openapi-skills' after cloning the repository.
- Define if you will be using Azure OpenAI or OpenAI and which GitHub repo you want to use along with the GitHub access token.
- Load configuration from appsettings.json and load logger for debugging.
- Register the GitHub plugin using an OpenAPI definition, and for this example reference the pull request GET operations.
- Setup the Semantic Kernel planner to invoke the GitHub plugin. Use the action planner for 0 or 1 step plans, and the Sequential Planner for more steps.
- Enjoy using a console chat bot with an OpenAI plugin via Semantic Kernel!
Readers are encouraged to join the Semantic Kernel community and share their thoughts.