|
6 | 6 |
|
7 | 7 | ## Description
|
8 | 8 |
|
9 |
| -This is an example skillset Copilot Extension, designed to create random test and example data for a number of development purposes. The purpose of this to showcase how an extension can be created as a skillset. |
| 9 | +This code sample demonstrates building a Copilot Extension using the skillsets approach rather than a traditional agent. This extension is designed to generate random test and example data for a number of development purposes, by calling publicly available APIs. |
10 | 10 |
|
11 |
| -## Installation: |
| 11 | +### Architectural Model |
| 12 | +- **Skillsets**: Define up to 5 API endpoints that Copilot can call directly. Copilot handles all AI interactions, prompt engineering, and response formatting. |
| 13 | +- **Agents**: Provide full control over the interaction flow, including custom prompt crafting and specific LLM model selection. |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +### When to Choose Skillsets |
| 18 | +Skillsets are ideal when you want to: |
| 19 | +- Quickly integrate existing APIs or services without managing AI logic |
| 20 | +- Focus purely on your service's core functionality |
| 21 | +- Maintain consistent Copilot-style interactions without extensive development |
| 22 | +- Get started with minimal infrastructure and setup |
| 23 | + |
| 24 | +Use agents instead if you need: |
| 25 | +- Complex custom interaction flows |
| 26 | +- Specific LLM model control (using LLMs that aren't provided by the Copilot API) |
| 27 | +- Custom prompt crafting |
| 28 | +- Advanced state management |
| 29 | + |
| 30 | +## Example Implementation |
| 31 | + |
| 32 | +This extension showcases the skillset approach by providing three simple endpoints that generate random development data: |
| 33 | +- Random commit messages |
| 34 | +- Lorem ipsum text generation |
| 35 | +- Random user data |
| 36 | + |
| 37 | +## Getting Started |
12 | 38 | 1. Clone the repository:
|
13 | 39 |
|
14 | 40 | ```
|
@@ -37,7 +63,7 @@ ngrok http http://localhost:8080
|
37 | 63 | go run .
|
38 | 64 | ```
|
39 | 65 |
|
40 |
| -## Accessing the Agent in Chat: |
| 66 | +## Accessing the Extension in Chat: |
41 | 67 |
|
42 | 68 | 1. In the `Copilot` tab of your Application settings (`https://github.com/settings/apps/<app_name>/agent`)
|
43 | 69 | - Set the app type to "Skillset"
|
|
0 commit comments