![]() |
VOOZH | about |
dotnet add package Vorn.Ai.Client --version 9.1.2
NuGet\Install-Package Vorn.Ai.Client -Version 9.1.2
<PackageReference Include="Vorn.Ai.Client" Version="9.1.2" />
<PackageVersion Include="Vorn.Ai.Client" Version="9.1.2" />Directory.Packages.props
<PackageReference Include="Vorn.Ai.Client" />Project file
paket add Vorn.Ai.Client --version 9.1.2
#r "nuget: Vorn.Ai.Client, 9.1.2"
#:package Vorn.Ai.Client@9.1.2
#addin nuget:?package=Vorn.Ai.Client&version=9.1.2Install as a Cake Addin
#tool nuget:?package=Vorn.Ai.Client&version=9.1.2Install as a Cake Tool
Client library for the Vorn AI host. It provides services for interacting with AI endpoints.
dotnet add package Vorn.Ai.Client
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddTransient<IApiClientService, ApiClientService>(); // from Vorn.Aaas.Client.Api
builder.AddAiClient();
app.MapGet("/rewrite", (IAssistantService assistant) =>
assistant.QuickRewriteAsync("Rewrite this text"));
var tool = new ResponderToolDefinition
{
Type = "mcp",
ServerLabel = "mcpqueries",
ServerUrl = "https://your-host.example.com/mcp",
AllowedTools = new[] { "querymcptool1", "querymcptool2" },
RequireApproval = ResponderToolApprovalRequirement.Never
};
var options = new ResponderOptions { Tools = new[] { tool } };
app.MapPost("/response", (IResponseService responses, string prompt)
=> responses.GenerateAsync([ResponderInput.TextInput(prompt)], options));
app.MapPost("/response/approve", (IResponseService responses, string id)
=> responses.GenerateAsync([ResponderInput.McpToolCallApprovalInput(id)], options));
app.MapPost("/response/stream", async (IResponseService responses, string prompt) =>
{
await foreach (var item in responses.StreamAsync([ResponderInput.TextInput(prompt)], options))
{
Console.WriteLine($"{item.GetType().Name}: {System.Text.Json.JsonSerializer.Serialize(item)}");
}
});
app.MapPost("/response/hub", async (IResponseHubClient hub, string prompt) =>
{
await foreach (var item in hub.StreamAsync([ResponderInput.TextInput(prompt)], options))
{
Console.WriteLine($"{item.GetType().Name}: {System.Text.Json.JsonSerializer.Serialize(item)}");
}
});
// Capture the completion output to continue the conversation.
app.MapPost("/response/follow-up", async (IResponseService responses, string prompt, string? previousId) =>
{
var followUpOptions = options with { PreviousResponseId = previousId };
var outputs = await responses.GenerateAsync([ResponderInput.TextInput(prompt)], followUpOptions);
var completion = outputs.FirstOrDefault(o => o.Type == ResponderOutputType.Completion);
return new
{
Outputs = outputs,
NextPreviousResponseId = completion?.Id
};
});
app.MapPost("/response/hub/rewrite", async (IResponseHubClient hub, string prompt) =>
{
await foreach (var item in hub.StreamRewriteAsync(prompt))
{
Console.WriteLine($"{item.GetType().Name}: {System.Text.Json.JsonSerializer.Serialize(item)}");
}
});
app.MapPost("/speech", async (ISpeechToTextService speech, IFormFile file) =>
{
using var stream = file.OpenReadStream();
return await speech.TranscribeAsync(stream, mimeType: file.ContentType);
});
app.MapPost("/speech/hub", async (ISpeechHubClient hub, IFormFile file) =>
{
using var stream = file.OpenReadStream();
return await hub.TranscribeAsync(stream, mimeType: file.ContentType);
});
IResponseService generates model responses, IResponseHubClient streams them via SignalR, IAssistantService handles structured prompts and quick rewrites, ISpeechToTextService transcribes audio streams, and ISpeechHubClient transcribes audio via SignalR.
ResponderOptions.PreviousResponseId can be supplied with the identifier returned by a ResponderOutputType.Completion payload to start a follow-up turn. Reset it to null to begin a new conversation thread.
ResponderOptions.Model overrides the configured default model on a per-call basis. Leave it null to continue using the server's configured default.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Vorn.Ai.Client:
| Package | Downloads |
|---|---|
|
Vorn.Interface
This library is designed to provide interface components and services to use VORN infrastructure. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.1.2 | 338 | 11/16/2025 |
| 9.1.1 | 263 | 11/15/2025 |
| 9.1.0 | 206 | 11/15/2025 |
| 9.0.2 | 294 | 11/10/2025 |
| 9.0.1 | 215 | 11/9/2025 |
| 9.0.0 | 240 | 11/5/2025 |
| 8.9.7 | 310 | 11/30/2025 |
| 8.9.6 | 308 | 11/30/2025 |
| 8.9.5 | 306 | 11/30/2025 |
| 8.9.4 | 170 | 11/29/2025 |
| 8.9.3 | 172 | 11/29/2025 |
| 8.9.2 | 214 | 11/23/2025 |
| 8.9.1 | 207 | 11/23/2025 |
| 8.9.0 | 260 | 11/9/2025 |
| 8.8.0 | 265 | 11/2/2025 |
| 8.7.1 | 256 | 10/29/2025 |
| 8.7.0 | 254 | 10/27/2025 |
| 8.6.2 | 262 | 10/27/2025 |
| 8.6.1 | 209 | 10/25/2025 |
| 8.6.0 | 199 | 10/25/2025 |