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
                    
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="RepletoryLib.Ai.Abstractions" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RepletoryLib.Ai.Abstractions" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="RepletoryLib.Ai.Abstractions" />
                    
Project file
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 RepletoryLib.Ai.Abstractions --version 1.0.0
                    
#r "nuget: RepletoryLib.Ai.Abstractions, 1.0.0"
                    
#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 RepletoryLib.Ai.Abstractions@1.0.0
                    
#: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=RepletoryLib.Ai.Abstractions&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=RepletoryLib.Ai.Abstractions&version=1.0.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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