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

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

  • IAiChatService for text/multimodal chat completion.
  • IAiVisionService for image understanding and image+text workflows.
  • IAiFileService for AI-based file analysis.
  • IOcrProcessor, IAiResponseStream, IImageBatchProcessor.
  • Shared request/response models such as:
    • AiChatCompletionRequest
    • AiChatMessage
    • AiResponseChunk
    • VisionRequest, VisionResult
    • FileAnalysisResult
  • Base helper class: BaseChatService.

Configuration Model

AiOptions is the common options base:

  • Enabled
  • Platform

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(...) throws FileNotFoundException when the source file is missing.
  • MIME type fallback behavior in helpers defaults to image/png when the extension is unknown.

Minimal Usage

using Indiko.Blocks.AI.Abstractions.Interfaces;

services.AddTransient<IAiChatService, MyAiProviderChatService>();
services.AddTransient<IAiVisionService, MyAiProviderVisionService>();

Target Framework

  • .NET 10
  • Indiko.Blocks.AI.ChatGPT
  • Indiko.Blocks.AI.Mistral
  • Indiko.Blocks.AI.LocalLLM
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 (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
Loading failed