This extension showcases:
Get the most up-to-date and relevant information from the web right in Copilot.
This is powered by one of two different Search Engines:
You can configure this with the websearch.preferredEngine
setting.
You'll need to acquire an API key from one of these services to use this extension. Upon first use, it will ask you for that key and store it using VS Code's built-in secret storage, and can be managed via VS Code's authentication stack as well just as you would for your GitHub account.
This extension contributes the
@websearch
chat participant which is capable of handling questions that likely need live information from the internet.
You can invoke it manually using
@websearch when did Workspace Trust ship in vscode?
or if you have intent detection enabled,
it will get picked up automatically for web-related questions.
This extension contributes the
#websearch
chat tool as well which is similar to the participant but is useful for providing context from the web in other chat participants.
For example:
@workspace /new #websearch create a new web app written in Python using the most popular framework
Additionally,
if you are working on your own Chat Particpant or Tool,
you can consume this Chat Tool via the
vscode.lm.invokeTool
API.
websearch.preferredEngine
- Configure the desired search engine.websearch.useSearchResultsDirectly
- Skip the post processing of search results and use raw search results from the search engine instead.This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.