RepletoryLib.Ai.Abstractions
1.0.0
dotnet add package RepletoryLib.Ai.Abstractions --version 1.0.0
NuGet\Install-Package RepletoryLib.Ai.Abstractions -Version 1.0.0
<PackageReference Include="RepletoryLib.Ai.Abstractions" Version="1.0.0" />
<PackageVersion Include="RepletoryLib.Ai.Abstractions" Version="1.0.0" />
<PackageReference Include="RepletoryLib.Ai.Abstractions" />
paket add RepletoryLib.Ai.Abstractions --version 1.0.0
#r "nuget: RepletoryLib.Ai.Abstractions, 1.0.0"
#:package RepletoryLib.Ai.Abstractions@1.0.0
#addin nuget:?package=RepletoryLib.Ai.Abstractions&version=1.0.0
#tool nuget:?package=RepletoryLib.Ai.Abstractions&version=1.0.0
RepletoryLib.Ai.Abstractions
Provider-agnostic AI/LLM abstractions for the RepletoryLib ecosystem.
Interfaces
| Interface | Purpose |
|---|---|
IChatCompletionService |
Multi-turn chat completions with tool calling and streaming |
IEmbeddingService |
Text-to-vector embedding generation |
IImageGenerationService |
Image generation from text prompts |
IAudioService |
Speech-to-text and text-to-speech |
IModerationService |
Content moderation and safety checks |
IAiService |
Unified facade routing to all above services |
Usage
Reference this package to code against AI abstractions without coupling to a specific provider. Register a provider package (e.g., RepletoryLib.Ai.OpenAi or RepletoryLib.Ai.Anthropic) to get concrete implementations.
public class MyService(IChatCompletionService chat)
{
public async Task<string> AskAsync(string question)
{
var result = await chat.CompleteAsync(new ChatRequest
{
Messages = [ChatMessage.User(question)]
});
return result.IsSuccess ? result.Data!.Content! : result.Error!;
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
- RepletoryLib.Common (>= 1.0.0)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on RepletoryLib.Ai.Abstractions:
| Package | Downloads |
|---|---|
|
RepletoryLib.Ai.Google
Google Gemini AI provider implementation with chat completions, streaming, and Polly resilience for RepletoryLib |
|
|
RepletoryLib.Ai.ContentGeneration
Template-based AI content generation with variable substitution, streaming, and optional caching for RepletoryLib |
|
|
RepletoryLib.Ai.SemanticSearch
Semantic search with vector embeddings, cosine similarity ranking, and cache-backed storage for RepletoryLib |
|
|
RepletoryLib.Ai.Anthropic
Anthropic Claude provider implementation for RepletoryLib AI |
|
|
RepletoryLib.Ai.Moderation
Multi-stage AI content moderation pipeline with keyword, provider, and semantic analysis stages for RepletoryLib |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 43 | 3/2/2026 |