Indiko.Blocks.AI.Abstractions
2.7.8
dotnet add package Indiko.Blocks.AI.Abstractions --version 2.7.8
NuGet\Install-Package Indiko.Blocks.AI.Abstractions -Version 2.7.8
<PackageReference Include="Indiko.Blocks.AI.Abstractions" Version="2.7.8" />
<PackageVersion Include="Indiko.Blocks.AI.Abstractions" Version="2.7.8" />
<PackageReference Include="Indiko.Blocks.AI.Abstractions" />
paket add Indiko.Blocks.AI.Abstractions --version 2.7.8
#r "nuget: Indiko.Blocks.AI.Abstractions, 2.7.8"
#:package Indiko.Blocks.AI.Abstractions@2.7.8
#addin nuget:?package=Indiko.Blocks.AI.Abstractions&version=2.7.8
#tool nuget:?package=Indiko.Blocks.AI.Abstractions&version=2.7.8
Indiko.Blocks.AI.Abstractions
Core AI contracts and shared models for provider implementations in the Indiko building blocks ecosystem.
Overview
This package defines the common abstractions used by AI providers (ChatGPT, Mistral, LocalLLM, etc.).
It contains interfaces for chat, vision, file analysis, OCR, response streaming, and image batch processing.
Key Components
IAiChatServicefor text/multimodal chat completion.IAiVisionServicefor image understanding and image+text workflows.IAiFileServicefor AI-based file analysis.IOcrProcessor,IAiResponseStream,IImageBatchProcessor.- Shared request/response models such as:
AiChatCompletionRequestAiChatMessageAiResponseChunkVisionRequest,VisionResultFileAnalysisResult
- Base helper class:
BaseChatService.
Configuration Model
AiOptions is the common options base:
EnabledPlatform
Provider packages extend this with provider-specific fields (API keys, model names, etc.).
Runtime Notes and Caveats
- This package is contract-only and does not register DI services by itself.
ImageHelper.FileToBase64(...)throwsFileNotFoundExceptionwhen the source file is missing.- MIME type fallback behavior in helpers defaults to
image/pngwhen the extension is unknown.
Minimal Usage
using Indiko.Blocks.AI.Abstractions.Interfaces;
services.AddTransient<IAiChatService, MyAiProviderChatService>();
services.AddTransient<IAiVisionService, MyAiProviderVisionService>();
Target Framework
- .NET 10
Related Packages
Indiko.Blocks.AI.ChatGPTIndiko.Blocks.AI.MistralIndiko.Blocks.AI.LocalLLM
| 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
- CommunityToolkit.Diagnostics (>= 8.4.2)
- Indiko.Blocks.Common.Abstractions (>= 2.7.8)
- Indiko.Common.Abstractions (>= 2.7.8)
- Indiko.Common.Utils (>= 2.7.8)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.6)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.6)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Indiko.Blocks.AI.Abstractions:
| Package | Downloads |
|---|---|
|
Indiko.Blocks.AI.ChatGPT
Building Blocks AI ChatGPT |
|
|
Indiko.Blocks.AI.LocalLLM
Building Blocks AI LocalLLM |
|
|
Indiko.Blocks.AI.Mistral
Building Blocks AI Mistral |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.7.8 | 94 | 5/7/2026 |
| 2.7.7 | 100 | 5/7/2026 |
| 2.7.6 | 118 | 4/23/2026 |
| 2.7.5 | 124 | 4/23/2026 |
| 2.7.4 | 123 | 4/23/2026 |
| 2.7.3 | 129 | 4/23/2026 |
| 2.7.2 | 115 | 4/23/2026 |
| 2.7.1 | 110 | 4/23/2026 |
| 2.7.0 | 113 | 4/23/2026 |
| 2.6.4 | 130 | 4/21/2026 |
| 2.6.3 | 113 | 4/21/2026 |
| 2.6.2 | 123 | 4/21/2026 |
| 2.6.1 | 123 | 4/18/2026 |
| 2.6.0 | 112 | 4/17/2026 |
| 2.5.1 | 139 | 4/14/2026 |
| 2.5.0 | 145 | 3/30/2026 |
| 2.2.18 | 152 | 3/8/2026 |
| 2.2.17 | 116 | 3/8/2026 |
| 2.2.16 | 122 | 3/8/2026 |
| 2.2.15 | 128 | 3/7/2026 |