Dadstaxi Copilot Chat ExampleVisual Studio Code's Copilot Chat architecture enables extension authors to integrate with the GitHub Copilot Chat experience. A chat extension is a VS Code extension that uses the Chat extension API by contributing a Chat participant. Chat participants are domain experts that can answer user queries within a specific domain. The Language Model API enables you to use the Language Model and integrate AI-powered features and natural language processing in your Visual Studio Code extension. When an extension uses the Chat or the Language Model API, we call it a GitHub Copilot Extension, since GitHub Copilot is the provider of the Chat and the Language Model experience. This GitHub Copilot Extension sample shows:
Related documentation for the demo this is based on can be found here:
InstallationYou can install this as an extension in VSCode from the marketplace - StuartEggerton.dadstaxi-chat-sample Example usage
DevelopersIf you install this from the marketplace you can ignore this section. This is the inner loop for how you would develop an extension like this... Running the Sample Locally as a developer
PrivacyThis extension does not store the bookings - these are static and only exist in memory to generate a response. The language model is not called for any real data, only for generating samples. If you want to build your own privacy focused extension, you should consider the following:
|