Skip to content

Commit aacffbc

Browse files
authored
Update AI Shell docs for 1.0-p2 (#299)
1 parent 3aada30 commit aacffbc

File tree

9 files changed

+80
-40
lines changed

9 files changed

+80
-40
lines changed

reference/docs-conceptual/AIShell/concepts/FAQ.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: AI Shell FAQ
33
description: Get answers to common questions about AI Shell.
4-
ms.date: 11/11/2024
4+
ms.date: 03/03/2025
55
ms.topic: faq
66
---
77

@@ -61,7 +61,11 @@ Users interact with these agents using natural language in a conversational mann
6161
## How do I create an agent?
6262

6363
To create an agent, you need to implement the `IAgent` interface. For more information, see
64-
[Create an Ollama Agent][05] for the details of creating an agent.
64+
[Create an Ollama Agent][05] for the details of creating an agent. You can use this agent as a
65+
template to create your own agent.
66+
67+
You can use the example code as written to interact with Ollama, or you can configure the OpenAI
68+
agent to interact with the Ollama using the OpenAI-compatible endpoint.
6569

6670
## How do I share my agent or find other community built agents?
6771

@@ -74,4 +78,4 @@ recommend sharing it on the [discussions page][06] of the Project Mercury reposi
7478
[03]: ../how-to/agent-openai.md
7579
[04]: ../developer/agent-architecture.md
7680
[05]: ../developer/create-ollama-agent.md
77-
[06]: https://github.com/PowerShell/ProjectMercury/discussions/categories/agent-sharing
81+
[06]: https://github.com/PowerShell/AIShell/discussions/categories/agent-sharing

reference/docs-conceptual/AIShell/developer/create-ollama-agent.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Within the newly created project, you need to install the [AIShell.Abstraction][
4444
NuGet gallery. Install the NuGet package using the following command:
4545

4646
```shell
47-
dotnet add package AIShell.Abstraction --version 1.0.0-preview.1
47+
dotnet add package AIShell.Abstraction --version 1.0.0-preview.2
4848
```
4949

5050
This command adds the package to your `.csproj` file. Your `.csproj` file should contain the
@@ -60,7 +60,7 @@ following XML:
6060
</PropertyGroup>
6161

6262
<ItemGroup>
63-
<PackageReference Include="AIShell.Abstraction" Version="1.0.0-preview.1" />
63+
<PackageReference Include="AIShell.Abstraction" Version="1.0.0-preview.2" />
6464
</ItemGroup>
6565
</Project>
6666
```
@@ -477,7 +477,7 @@ Copy the `.dll` files to agent folder you created. You should see the agent when
477477

478478
```shell
479479
AI Shell
480-
v1.0.0-preview.1
480+
v1.0.0-preview.2
481481

482482
Please select an agent to use:
483483

@@ -499,4 +499,4 @@ in the `agents` folder of the base directory of `aish.exe`, the agent will be lo
499499
[03]: https://github.com/PowerShell/ProjectMercury/discussions/categories/agent-sharing
500500
[04]: https://github.com/PowerShell/AIShell/tree/main/shell/agents/AIShell.Ollama.Agent
501501
[05]: https://github.com/PowerShell/AIShell/blob/main/shell/README.md
502-
[06]: https://www.nuget.org/packages/AIShell.Abstraction/1.0.0-preview.1
502+
[06]: https://www.nuget.org/packages/AIShell.Abstraction/1.0.0-preview.2

reference/docs-conceptual/AIShell/developer/ollama-agent-readme.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
---
22
title: Ollama agent README
33
description: Learn how to use the Ollama agent in AI Shell.
4-
ms.date: 11/11/2024
4+
ms.date: 03/03/2025
55
---
66
# Ollama Plugin
77

88
This agent is used to interact with a language model running locally by utilizing the Ollama API.
9-
Before using this agent you need to have Ollama installed and running.
9+
Before using this agent you need to have Ollama installed and running. To create an agent, you need
10+
to implement the `IAgent` interface.
11+
12+
You can also use this example code as a template to create your own agent.
1013

1114
## Pre-requisites to using the agent
1215

@@ -23,6 +26,9 @@ Currently to change the model you will need to modify the query in the code in t
2326
The default endpoint is `http://localhost:11434/api/generate` with `11434` being the default port.
2427
This can be changed in the code and eventually will be added to a configuration file.
2528

29+
There is an updated version of the Ollama agent available in the AI Shell repository. See the
30+
[README][04] file for the Ollama plugin.
31+
2632
## Known Limitations
2733

2834
- There is no history shared across queries so the model will not be able to remember previous
@@ -36,3 +42,4 @@ This can be changed in the code and eventually will be added to a configuration
3642
[01]: https://github.com/ollama/ollama
3743
[02]: https://github.com/ollama/ollama?tab=readme-ov-file#model-library
3844
[03]: https://github.com/ollama/ollama?tab=readme-ov-file#start-ollama
45+
[04]: https://github.com/PowerShell/AIShell/blob/v1.0.0-preview.2/shell/agents/AIShell.Ollama.Agent/README.md

reference/docs-conceptual/AIShell/how-to/agent-azure.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Copilot in Azure Agent
33
description: Learn how to use the Copilot in Azure agent in AI Shell.
4-
ms.date: 11/18/2024
4+
ms.date: 03/03/2025
55
---
66
# Copilot in Azure Agent
77

@@ -27,13 +27,14 @@ command from Azure CLI.
2727
- "What is Application Insights?"
2828
- "How to create a web app with Azure CLI?"
2929

30-
## Known issues
30+
## Improvements in AI Shell v1.0.0-preview.2
3131

32-
This preview release has some known issues with the Azure agent that we're actively working on
33-
addressing:
32+
The Preview 2 release includes the following enhancements:
3433

35-
- The `Connect-AzAccount` command for authentication from Azure PowerShell isn't supported. You
36-
must use the `az login` command from Azure CLI to sign in.
34+
- The Azure agent support authentication using either the `Connect-AzAccount` command from Azure
35+
PowerShell or the `az login` command from Azure CLI.
36+
- The `/replace` command now supports Azure PowerShell. The agent walks you through replacement of
37+
parameter values in generated Azure PowerShell responses.
3738

3839
## Telemetry and configuration
3940

reference/docs-conceptual/AIShell/how-to/agent-openai.md

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: OpenAI agent README
33
description: Learn how to use the OpenAI agent in AI Shell.
4-
ms.date: 11/18/2024
4+
ms.date: 03/03/2025
55
ms.topic: how-to
66
---
7-
# OpenAI Agent
7+
# OpenAI agent
88

99
This agent is designed to provide a user-friendly platform for interacting with OpenAI services. It
1010
can connect to a public OpenAI service or a private deployment of the Azure OpenAI service. We
@@ -13,12 +13,12 @@ recommend using an Azure OpenAI deployment for enhanced security and privacy.
1313
## Prerequisites
1414

1515
- For OpenAI, you need the **Model Name** and **API Key** to use the agent.
16-
- [OpenAI API Key][03]
17-
- [OpenAI Model][04]
16+
- [OpenAI API Key][09]
17+
- [OpenAI Model][10]
1818

1919
- For Azure OpenAI Service, you need the **Endpoint**, **Deployment Name**, **Model Name**, and
2020
**API Key** to use the agent.
21-
- [Access to Azure OpenAI][02]
21+
- [Access to Azure OpenAI][03]
2222
- [Create an Azure OpenAI deployment][01]
2323

2424
## Configuration
@@ -68,19 +68,20 @@ editor. Update the file based on the following example:
6868
```
6969

7070
> [!NOTE]
71-
> The endpoint for the Azure OpenAI configuration does not need a full endpoint including the deployment,
72-
> for example you can just use the following endpoint format, `https://<YourServiceName>.openai.azure.com`.
71+
> The endpoint for the Azure OpenAI configuration does not need a full endpoint including the
72+
> deployment, for example you can just use the following endpoint format,
73+
> `https://<YourServiceName>.openai.azure.com`.
7374
7475
## GPT
7576

76-
GPTs are tailored versions of base OpenAI models. You use a GPT to provide focused responses based on
77-
the system prompt you give the model. GPTs are configured in the agent's settings file. Each GPT
77+
GPTs are tailored versions of base OpenAI models. You use a GPT to provide focused responses based
78+
on the system prompt you give the model. GPTs are configured in the agent's settings file. Each GPT
7879
configuration includes the name, description, targeted OpenAI model, and system prompt for
7980
interaction. The system prompts can be customized to support specific scenarios. Each configuration
8081
allows you to create distinct GPTs tailored to a specific domain or scenario. Furthermore, you can
8182
select different OpenAI models for each GPT as required.
8283

83-
## Command
84+
### Command
8485

8586
The command `/gpt` is provided to make it easy to manage the GPTs.
8687

@@ -105,8 +106,33 @@ Commands:
105106
use <GPT> Specify a GPT to use, or choose one from the available GPTs.
106107
```
107108

109+
## Support for other OpenAI-compatible models
110+
111+
With the release of AI Shell v1.0.0-preview.2, the `openai-gpt` agent extends support to third party
112+
models that follow the OpenAI API specifications, allowing for a more flexible AI experience. Many
113+
of these models are open source tools for running SLMs and LLMs locally. The `openai-gpt` agent nows
114+
supports the following additional models:
115+
116+
- [**Ollama**][08]
117+
- [**LM Studio**][06]
118+
- [**Deepseek**][04]
119+
- [**LocalAI**][07]
120+
- [**Google Gemini**][02]
121+
- [**Grok**][05]
122+
123+
To use these models, you only need to configure the `endpoint`, `key` and `model name` in the agent
124+
config file. The following `openai.agents.config` file contains example configurations for two of
125+
the new AI providers. For more information about endpoints and model names, see to the documentation
126+
for the specific model.
127+
108128
<!-- link references -->
109129
[01]: /azure/ai-services/openai/how-to/create-resource?pivots=web-portal
110-
[02]: https://aka.ms/oai/access?azure-portal=true
111-
[03]: https://platform.openai.com/api-keys
112-
[04]: https://platform.openai.com/docs/models
130+
[02]: https://ai.google.dev/gemini-api/docs/openai
131+
[03]: https://aka.ms/oai/access?azure-portal=true
132+
[04]: https://api-docs.deepseek.com/
133+
[05]: https://docs.x.ai/docs/overview#migrating-from-another-llm-provider
134+
[06]: https://lmstudio.ai/docs/api/openai-api
135+
[07]: https://localai.io/
136+
[08]: https://ollama.com/blog/openai-compatibility
137+
[09]: https://platform.openai.com/api-keys
138+
[10]: https://platform.openai.com/docs/models

reference/docs-conceptual/AIShell/install-aishell.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Install AI Shell
33
description: Learn how to install AI Shell on your system.
4-
ms.date: 11/18/2024
4+
ms.date: 03/03/2025
55
ms.topic: install-set-up-deploy
66
---
77
# Install AI Shell
@@ -29,13 +29,13 @@ AI Shell is supported on the following platforms:
2929

3030
- macOS v13 Ventura or higher
3131
- PowerShell 7.4.6 or higher
32-
- iTerm2 (limited support)
32+
- iTerm2 preferred (no split-screen experience)
3333

3434
### [Linux](#tab/linux)
3535

3636
- Ubuntu 20.04 or higher
3737
- PowerShell 7.4 or higher (recommended)
38-
- Any terminal emulator supported by the OS
38+
- Any terminal emulator supported by the OS (no split-screen experience)
3939

4040
> [!NOTE]
4141
> The AI Shell module isn't supported on Linux.
@@ -72,7 +72,7 @@ To manually install AI Shell, follow the instructions for your platform:
7272
### [Windows](#tab/windows)
7373

7474
1. Download the latest version from the [GitHub releases page][03]. Choose the file that matches
75-
your system architecture. For example, `AIShell-1.0.0-preview.1-win-x64.zip`.
75+
your system architecture. For example, `AIShell-1.0.0-preview.2-win-x64.zip`.
7676
1. Extract the contents of the ZIP file to a location on your system.
7777
1. Add the extracted folder to your **PATH** environment variable.
7878
1. Install the AI Shell module from the PowerShell Gallery.
@@ -84,7 +84,7 @@ To manually install AI Shell, follow the instructions for your platform:
8484
### [macOS](#tab/macos)
8585

8686
1. Download the latest version from the [GitHub releases page][03]. Choose the file that matches
87-
your system architecture. For example, `AIShell-1.0.0-preview.1-osx-x64.tar.gz`.
87+
your system architecture. For example, `AIShell-1.0.0-preview.2-osx-x64.tar.gz`.
8888
1. Extract the contents of the TAR file to a location on your system.
8989
1. Add the extracted folder to your **PATH** environment variable.
9090
1. Install the AI Shell module from the PowerShell Gallery.
@@ -96,7 +96,7 @@ To manually install AI Shell, follow the instructions for your platform:
9696
### [Linux](#tab/linux)
9797

9898
1. Download the latest version from the [GitHub releases page][03]. Choose the file that matches
99-
your system architecture. For example, `AIShell-1.0.0-preview.1-linux-x64.tar.gz`.
99+
your system architecture. For example, `AIShell-1.0.0-preview.2-linux-x64.tar.gz`.
100100
1. Extract the contents of the TAR file to a location on your system.
101101
1. Add the extracted folder to your **PATH** environment variable.
102102

reference/docs-conceptual/AIShell/overview.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ encourage you to share your experiences to help us improve AI Shell.
4747
This current release of AI Shell has some known issues that we're actively working on addressing:
4848

4949
- The **AI Shell** module isn't supported on Linux.
50-
- The split-screen experience work best with Windows Terminal. There is limited support for the
51-
split-screen experience on macOS with iTerm2. The `aish` executable can be run on Linux, but the
52-
split-screen experience is not available.
50+
- The split-screen experience only works with Windows Terminal. The `aish` executable can be run on
51+
macOS and Linux, but the split-screen experience isn't available.
5352
- If you have multiple versions of Windows Terminal installed, the `Start-AIShell` command opens a
5453
new terminal window running a different version of Windows Terminal.
5554
- If you started Window Terminal as an administrator, the `Start-AIShell` command opens a new

reference/docs-conceptual/AIShell/toc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ items:
1919
items:
2020
- name: AI Shell command reference
2121
href: how-to/aishell-reference.md
22-
- name: Azure agent README
22+
- name: Azure agent
2323
href: how-to/agent-azure.md
24-
- name: OpenAI agent README
24+
- name: OpenAI agent
2525
href: how-to/agent-openai.md
2626
- name: Developer guide
2727
items:

reference/ps-modules/AIShell/Resolve-Error.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: AIShell.Integration.dll-Help.xml
33
Module Name: AIShell
44
online version:
5-
ms.date: 10/29/2024
5+
ms.date: 03/03/2025
66
schema: 2.0.0
77
---
88

@@ -23,6 +23,9 @@ When an error occurs in the current session, this cmdlet sends the error to the
2323
resolution. The command sends the full error object to the current AIShell agent session, which
2424
attempts to provide a resolution.
2525

26+
Beginning with theAI Shell v1.0.0-preview.2 release, the `Resolve-Error` cmdlet also works with
27+
error messages output from native commands.
28+
2629
## EXAMPLES
2730

2831
### Example 1 - Resolves the last error

0 commit comments

Comments
 (0)