You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/gh-copilot-simple/about-extensions.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,33 +8,33 @@ layout: learningpathall
8
8
9
9
## What are GitHub Copilot Extensions?
10
10
11
-
Copilot Extensions provide an integration point to expand the functionality of Copilot chat, allowing developers to introduce external tools, services, and custom behaviors into the chat experience.
11
+
GitHub Copilot Extensions provide an integration point to expand the functionality of GitHub Copilot Chat, allowing developers to introduce external tools, services, and custom behaviors into the chat experience.
12
12
13
-
You can use an extension to customize the capabilities of Copilot in a variety of ways. Some examples include targeting Copilot for a specific type of user, such as an Arm software developer, by querying specific documentation or prioritizing responses for the developers environment. Copilot Extensions can also integrate additional LLMs, use different APIs, and connect to other AI tools that are not used by Copilot.
14
-
15
-
A Copilot Extension allows you to build curated experiences that are targeted for specific developer topics.
13
+
You can use Copilot Extensions to customize the capabilities of Copilot in multiple ways. For example, you can target the needs of a specific type of user, such as an Arm software developer, by querying specific documentation or prioritizing responses related to that specific developer's environment. Copilot Extensions also benefit users by facilitating the integration of additional LLMs, and offering different APIs and AI tools, which broadens the reach of the resources. In short, a Copilot Extension allows you to build a more curated experience.
16
14
17
15
Think about what you want to offer, or build for yourself, that is beyond or better than what Copilot can already do. If you have ideas, you can try them using a Copilot Extension.
18
16
19
17
Extensions can be private, public, or shared in the GitHub Marketplace.
20
18
21
-
This Learning Path is a "hello world" tutorial for a simple extension in Python. It explains how to create a private extension by running Python on a Linux computer, using ngrok to expose the endpoint, and creating a GitHub App to configure the extension in your GitHub account. After this, you can invoke your private extension from GitHub chat.
19
+
This Learning Path is a "hello world" tutorial for a simple extension in Python. It explains how to create a private extension by running Python on a Linux computer, using ngrok to expose the endpoint, and creating a GitHub App to configure the extension in your GitHub account. After this, you can invoke your private extension from GitHub Chat.
22
20
23
21
## How do I get started with GitHub Copilot?
24
22
25
23
Before building an extension, make sure Copilot is configured and working in your GitHub account.
26
24
27
25
Refer to the [Quickstart for GitHub Copilot](https://docs.github.com/en/copilot/quickstart) to get started.
28
26
29
-
You can use [GitHub Copilot free](https://github.com/features/copilot?utm_source=topcopilotfree&utm_medium=blog&utm_campaign=launch)with no cost (subject to usage limits).
27
+
You can use [GitHub Copilot Free](https://github.com/features/copilot?utm_source=topcopilotfree&utm_medium=blog&utm_campaign=launch)at no cost, subject to a usage allowance.
30
28
31
29
## How do I invoke GitHub Copilot Extensions?
32
30
33
-
You can use extensions on any platform where Copilot chat can be used. This includes the GitHub website, various IDEs, and the command line.
31
+
You can use extensions on any platform where you can use Copilot chat. This includes the GitHub website, various IDEs, and the command line.
32
+
33
+
Extensions are invoked using `@` followed by the name of the extension.
34
34
35
-
Extensions are invoked using `@` followed by the name of the extension. For example, the [Arm extension for GitHub Copilot](https://github.com/marketplace/arm-for-github-copilot) is invoked using `@arm` in the chat.
35
+
For example, you can invoke the [Arm extension for GitHub Copilot](https://github.com/marketplace/arm-for-github-copilot) using `@arm` in the chat.
36
36
37
-
You can install the Arm extension from the GitHub marketplace and practice using `@arm` to invoke it. Information about how to use it is in the [Arm for GitHub Copilot repository](https://github.com/arm/copilot-extension).
37
+
You can install the Arm extension from the GitHub Marketplace and practice using `@arm` to invoke it. For information on how to use it, see the [Arm for GitHub Copilot repository](https://github.com/arm/copilot-extension).
38
38
39
39
Continue to learn how to create your own extension using Python.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/gh-copilot-simple/copilot-test.md
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,23 +8,25 @@ layout: learningpathall
8
8
9
9
You are now ready to test your GitHub Copilot extension.
10
10
11
-
Go to any of the Copilot chat interfaces you are currently using, such as browser or VS Code.
11
+
Go to any of the Copilot Chat interfaces that you are currently using, such as your browser or VS Code.
12
12
13
-
Enter `@your-extension` and a test prompt such as:
13
+
Enter `@your-extension` and a test prompt, such as:
14
14
15
15
```console
16
16
tell me about Java vs Python
17
17
```
18
18
19
-
On the first prompt, you get an authorization dialog to enable your extension.
19
+
The first time you enter a prompt, you will receive an authorization dialog asking you if you wish to enable your extension.
20
20
21
-
Confirming the authorization takes you to an ngrok page in the browser, click the button and you will see the message from the GET request from your Python server in the browser:
21
+
Confirming the authorization takes you to an ngrok page in the browser.
22
+
23
+
Click the button and in the browser you will see the following message from the GET request from your Python server:
22
24
23
25
```output
24
26
Hello! Welcome to the example GitHub Copilot Extension in Python!
25
27
```
26
28
27
-
You see the extension invoked in the terminal where Python is running and information about the chat printed:
29
+
You will see the extension invoked in the terminal where Python is running and information about the chat printed:
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/gh-copilot-simple/gh-app.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Scroll to the bottom left and select `Developer settings`.
16
16
17
17
### Create a new GitHub App
18
18
19
-
Select the `GitHub Apps` on the left slide and click `New GitHub App`.
19
+
Select the `GitHub Apps` on the left side and click `New GitHub App`.
20
20
21
21

22
22
@@ -28,7 +28,7 @@ The important fields to complete or modify are listed below.
28
28
| Homepage URL | This needs to be filled in but is not used for a private extension, any URL can be entered such as https://learn.arm.com|
29
29
| Callback URL | Enter the URL of your ngrok domain such as `https://your-domain.ngrok-free.app` (substitute your domain). |
30
30
| Webhook | Uncheck the `Active` box. |
31
-
| Permissions | Select `Account permissions` and set the `GitHub Copilot Chat`and `GitHub Copilot Chat`to `Read-only`. |
31
+
| Permissions | Select `Account permissions` and set the `GitHub Copilot Chat` to `Read-only`. |
32
32
| Where can this GitHub App be installed? | Confirm `Only this account` is selected to make the GitHub App only for your use. |
33
33
34
34
Click the `Create GitHub App` to save the configuration.
@@ -37,8 +37,6 @@ Click the `Create GitHub App` to save the configuration.
37
37
38
38
### Configure the Copilot settings
39
39
40
-
### Configure the Copilot settings
41
-
42
40
Click on the left side Copilot sidebar.
43
41
44
42
Modify and update the following fields:
@@ -58,10 +56,10 @@ Click the `Save` button when the information is entered.
58
56
59
57
### Install your GitHub App
60
58
61
-
When the GitHub App has been configured and save, install it into your account using the `Install App` tab on the left site and the `Install` button.
59
+
When the GitHub App has been configured and saved, install it into your account using the `Install App` tab on the left side and click the `Install` button.
62
60
63
-
You may need to agree to install the GitHub App in your account.
61
+
You might need to agree to install the GitHub App in your account.
64
62
65
-
Once installed, you see the App in your account's [Applications](https://github.com/settings/installations)
63
+
Once installed, you see the App in your account's [Applications](https://github.com/settings/installations).
Before starting the ngrok server, you need an Authtoken. If you don't currently have one, create a new Authtoken from the [Authtoken](https://dashboard.ngrok.com/get-started/your-authtoken) settings.
38
+
Before you can start the ngrok server, you need an Authtoken.
39
+
40
+
If you don't currently have one, create a new Authtoken from the [Authtoken Get Started section](https://dashboard.ngrok.com/get-started/your-authtoken).
39
41
40
42
Once you have the token, add it to the Linux computer where you are running your Python extension.
41
43
42
-
Substitute your token in the command below:
44
+
Substitute your token in the command below where it states **\<your-authtoken\>**:
43
45
44
46
```console
45
47
ngrok config add-authtoken <your-authtoken>
46
48
```
47
49
48
-
ngrok is easier to use if you create a domain name. Go to the [Domains](https://dashboard.ngrok.com/domains) section and add a new randomly generated domain name. You can create 1 domain name in a free account.
50
+
ngrok is easier to use if you create a domain name. Go to the [Domains](https://dashboard.ngrok.com/domains) section and add a new randomly generated domain name. You can create one domain name in a free account.
49
51
50
52
Use the domain name in the next section to start the server.
0 commit comments