This sample demonstrates how to build a declarative agent for Microsoft 365 Copilot using TypeSpec for Microsoft 365 Copilot that allows you ground responses in WebSearch, use CodeInterpreter and use the GitHub API as an API plugin to retrieve issues.
This sample illustrates the following concepts:
- Building a declarative agent for Microsoft 365 Copilot using TypeSpec for Microsoft 365 Copilot
- Leveraging grounding responses in WebSearch
- Leveraging CodeInterpreter to visualize data
- Using the GitHub API to retrieve issues
| Version | Date | Comments |
|---|---|---|
| 1.0 | May 16, 2025 | Initial release |
- Microsoft 365 tenant with Microsoft 365 Copilot
- Visual Studio Code with the Microsoft 365 Agents Toolkit extension
- Node.js v20
- Clone this repository (or download this solution as a .ZIP file then unzip it)
- Open the Agents Toolkit extension and sign in to your Microsoft 365 tenant with Microsoft 365 Copilot
- Select Preview in Copilot (Edge) from the launch configuration dropdown
We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.
You can try looking at issues related to this sample to see if anybody else is having the same issues.
If you encounter any issues using this sample, create a new issue.
Finally, if you have an idea for improvement, make a suggestion.
THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


