Topwater.AI
0.1.0-preview.9
dotnet add package Topwater.AI --version 0.1.0-preview.9
NuGet\Install-Package Topwater.AI -Version 0.1.0-preview.9
<PackageReference Include="Topwater.AI" Version="0.1.0-preview.9" />
<PackageVersion Include="Topwater.AI" Version="0.1.0-preview.9" />
<PackageReference Include="Topwater.AI" />
paket add Topwater.AI --version 0.1.0-preview.9
#r "nuget: Topwater.AI, 0.1.0-preview.9"
#:package Topwater.AI@0.1.0-preview.9
#addin nuget:?package=Topwater.AI&version=0.1.0-preview.9&prerelease
#tool nuget:?package=Topwater.AI&version=0.1.0-preview.9&prerelease
Topwater.AI
Use a Topwater shell as the one bash tool of any Microsoft.Extensions.AI
IChatClient (OpenAI, Azure OpenAI, Ollama, ...).
dotnet add package Topwater.AI --prerelease
using Microsoft.Extensions.AI;
using Topwater;
using Topwater.AI;
var shell = new Shell();
IChatClient client = new ChatClientBuilder(innerClient).UseFunctionInvocation().Build();
var options = new ChatOptions { Tools = [shell.AsAIFunction()] };
var response = await client.GetResponseAsync("How many lines are in notes.txt?", options);
Semantic Kernel takes the same function, with no extra package (AsKernelFunction is in Semantic Kernel itself):
using Microsoft.SemanticKernel;
kernel.Plugins.AddFromFunctions("shell", [shell.AsAIFunction().AsKernelFunction()]);
var settings = new PromptExecutionSettings { FunctionChoiceBehavior = FunctionChoiceBehavior.Auto() };
Microsoft Agent Framework (Microsoft.Agents.AI) takes it as a tool, with no extra package:
using Microsoft.Agents.AI;
AIAgent agent = chatClient.AsAIAgent(instructions: "You are a helpful assistant.", tools: [shell.AsAIFunction()]);
Console.WriteLine(await agent.RunAsync("How many lines are in notes.txt?"));
The OpenAI and Anthropic .NET SDKs give an IChatClient (chatClient.AsIChatClient() from
Microsoft.Extensions.AI.OpenAI, anthropicClient.AsIChatClient(model) from Anthropic). For MCP clients such as Claude
Desktop or VS Code, run topwater mcp (package Topwater.Cli) instead.
Your own functions can be commands in the shell instead of tools the model sees up front:
shell.RegisterTools("crm", functions, approver) makes crm FUNCTION --option value call them, and an
ApprovalRequiredAIFunction runs only when approver approves the call.
The function is named bash and takes one command string. Calls on the same shell run one at a time, together with
Topwater.Agents' executors and file stores and BashTool.ExecuteAsync.
See Connect to a model for
details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.AI.Abstractions (>= 11.0.1)
- Topwater (>= 0.1.0-preview.9)
-
net8.0
- Microsoft.Extensions.AI.Abstractions (>= 11.0.1)
- Topwater (>= 0.1.0-preview.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.9 | 0 | 11/30/2026 |
| 0.1.0-preview.8 | 48 | 11/29/2026 |
| 0.1.0-preview.7 | 179 | 11/28/2026 |
| 0.1.0-preview.6 | 108 | 11/28/2026 |
| 0.1.0-preview.5 | 188 | 11/27/2026 |
| 0.1.0-preview.4 | 53 | 11/26/2026 |
| 0.1.0-preview.3 | 51 | 11/26/2026 |
| 0.1.0-preview.2 | 52 | 11/25/2026 |
| 0.1.0-preview.1 | 58 | 11/25/2026 |