Xeku.AI
0.0.0.7
dotnet add package Xeku.AI --version 0.0.0.7
NuGet\Install-Package Xeku.AI -Version 0.0.0.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xeku.AI" Version="0.0.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Xeku.AI" Version="0.0.0.7" />
<PackageReference Include="Xeku.AI" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Xeku.AI --version 0.0.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Xeku.AI, 0.0.0.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Xeku.AI@0.0.0.7
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Xeku.AI&version=0.0.0.7
#tool nuget:?package=Xeku.AI&version=0.0.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Xeku.AI
Shared AI service module for XAF applications, built with Microsoft Semantic Kernel.
Features
- 🤖 Multi-LLM Support: OpenAI, Azure OpenAI, Gemini, Ollama
- 🔧 Unified API: Single
IXekuAiServiceinterface for all modules - ⚙️ Easy Configuration: Configure via
appsettings.json - 🔌 DI-Friendly: One-liner registration
services.AddXekuAi(Configuration)
Installation
// Startup.cs
services.AddXekuAi(Configuration);
Configuration
{
"XekuAI": {
"Provider": "gemini",
"Gemini": {
"ApiKey": "your-api-key",
"Model": "gemini-2.5-flash"
}
}
}
Supported Providers
| Provider | Config Section | Required Fields |
|---|---|---|
openai |
OpenAI |
ApiKey, Model |
azureopenai |
AzureOpenAI |
ApiKey, Endpoint, DeploymentName |
gemini |
Gemini |
ApiKey, Model |
ollama |
Ollama |
BaseUrl, Model |
Usage
public class MyController : Controller
{
private readonly IXekuAiService _ai;
public MyController(IXekuAiService ai) => _ai = ai;
public async Task GenerateCode()
{
var code = await _ai.GenerateCodeAsync("Create an order total calculation script");
}
public async Task Summarize()
{
var summary = await _ai.SummarizeAsync(longText, maxLength: 100);
}
public async Task Translate()
{
var translated = await _ai.TranslateAsync("Hello World", "zh-TW");
}
}
API Reference
| Method | Description |
|---|---|
GenerateTextAsync |
Generate text from a prompt |
GenerateCodeAsync |
Generate C# script code with optional BO schema |
SummarizeAsync |
Summarize content |
TranslateAsync |
Translate text to target language |
License
MIT License - Antony Lu
| 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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.SemanticKernel (>= 1.28.0)
- Microsoft.SemanticKernel.Connectors.Google (>= 1.28.0-alpha)
- Microsoft.SemanticKernel.Connectors.Ollama (>= 1.28.0-alpha)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Xeku.AI:
| Package | Downloads |
|---|---|
|
Xeku.Scripts
Xeku Scripts module for dynamic C# script compilation and execution using Roslyn. |
GitHub repositories
This package is not used by any popular GitHub repositories.