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: README.md
+9-5
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
16
16
*The Jupyter AI Agents are equipped with tools like 'execute', 'insert_cell', and more, to transform your Jupyter Notebooks into an intelligent, interactive workspace!*
17
17
18
-

18
+

19
19
20
20
```
21
21
Jupyter AI Agents <-----------> JupyterLab
@@ -73,6 +73,8 @@ Start JupyterLab, setting a `port` and a `token` to be reused by the agent, and
Jupyter AI Agents supports multiple AI model providers (more information on [here](https://jupyter-ai-agents.datalayer.tech/docs/models/)). Here is an example with the Azure OpenAI provider.
77
+
76
78
Read the [Azure Documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai) to get the needed credentials and make sure you define them in the following `.env` file.
77
79
78
80
```bash
@@ -90,23 +92,25 @@ To use the Jupyter AI Agents, an easy way is to launch a CLI (update the Azure d
90
92
jupyter-ai-agents prompt \
91
93
--url http://localhost:8888 \
92
94
--token MY_TOKEN \
93
-
--azure-ai-deployment-name gpt-40-mini \
95
+
--model-provider azure-openai \
96
+
--model-name gpt-4o-mini \
94
97
--path test.ipynb \
95
98
--input "Create a matplotlib example"
96
99
```
97
100
98
-

101
+

99
102
100
103
```bash
101
104
# Explain Error agent example.
102
105
jupyter-ai-agents explain-error \
103
106
--url http://localhost:8888 \
104
107
--token MY_TOKEN \
105
-
--azure-ai-deployment-name gpt-40-mini \
108
+
--model-provider azure-openai \
109
+
--model-name gpt-4o-mini \
106
110
--path test.ipynb
107
111
```
108
112
109
-

113
+

Copy file name to clipboardexpand all lines: docs/docs/agents/explain_error/index.mdx
+4-2
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,16 @@ The Explain Error Agent explains an error encountered in a notebook. It leverage
11
11
jupyter-ai-agents explain-error \
12
12
--url http://localhost:8888 \
13
13
--token MY_TOKEN \
14
-
--azure-ai-deployment-name gpt-40-mini \
14
+
--model-provider azure-openai \
15
+
--model-name gpt-4o-mini \
15
16
--path test.ipynb
16
17
```
17
18
18
19
## Parameters
19
20
20
21
-`--url`: JupyterLab URL.
21
22
-`--token`: JupyterLab token.
22
-
-`--azure-ai-deployment-name`: Azure AI model deployment name.
23
+
-`--model-provider`: `azure-openai` or `github-copilot`.
24
+
-`--model-name`: Azure AI model deployment name or Github Copilot model to use.
23
25
-`--path`: Notebook to modify path.
24
26
-`--current-cell-index`: Optional flag to provide the index of the cell where the error is encountered. If not provided, the error considered is the first one in the notebook.
Copy file name to clipboardexpand all lines: docs/docs/agents/prompt/index.mdx
+7-4
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
1
# Prompt Agent
2
2
3
-
The Prompt Agent generates code cells based on natural language input. It leverages AI models to generate code, add new cells, and modify the notebook content. This is a great Agent to support the following use cases:
3
+
The Prompt Agent generates code cells based on natural language input. It leverages AI models to generate code, markdown, add new cells, and modify the notebook content. This is a great Agent to support the following use cases:
4
4
5
5
- Code Generation: Generate cells code based on natural language input.
6
-
- Notebook Modification: Add new cells based on existing one.
6
+
- Markdown Generation: Generate markdown cells based on natural language input.
7
+
- Notebook Modification: Insert new cells based on existing one to your notebook.
7
8
8
9

9
10
@@ -13,7 +14,8 @@ To use the Jupyter AI Agents, an easy way is to launch a CLI (update the Azure d
13
14
jupyter-ai-agents prompt \
14
15
--url http://localhost:8888 \
15
16
--token MY_TOKEN \
16
-
--azure-ai-deployment-name gpt-40-mini \
17
+
- model-provider azure-openai \
18
+
--model-name gpt-4o-mini \
17
19
--path test.ipynb \
18
20
--input "Create a matplotlib example"
19
21
```
@@ -23,7 +25,8 @@ jupyter-ai-agents prompt \
23
25
The Prompt Agent can be configured with the following parameters:
24
26
-`--url`: JupyterLab URL.
25
27
-`--token`: JupyterLab token.
26
-
-`--azure-ai-deployment-name`: Azure AI model deployment name.
28
+
-`--model-provider`: `azure-openai` or `github-copilot`.
29
+
-`--model-name`: Azure AI model deployment name or Github Copilot model to use.
27
30
-`--path`: Notebook to modify path.
28
31
-`--input`: Natural language input.
29
32
-`--full-context`: Optional flag to provide the full notebook context i.e. notebook content to the AI model (default: False).
Jupyter AI Agents supports models from [GitHub Copilot](https://copilot.github.com/).
4
+
5
+
Read the [Langchain GitHubCopilot README](https://github.com/datalayer/langchain-github-copilot) to get the `GITHUB` token and make sur you define it in the following environment variable.
6
+
7
+
```bash
8
+
export GITHUB_TOKEN="..."
9
+
```
10
+
11
+
GitHub Copilot supports different models that you can specify using the `--model-name` parameter. The available models as of 2024-02-07 are
12
+
- gpt-4o
13
+
- o1
14
+
- o3-mini
15
+
16
+
Make sure you have a GitHubCopilot subscription and have enabled the model you want to use in your GitHubCopilot settings.
0 commit comments