Microsoft.Extensions.AI.Abstractions 9.7.0

Microsoft.Extensions.AI.Abstractions

.NET developers need to integrate and interact with a growing variety of artificial intelligence (AI) services in their apps. The Microsoft.Extensions.AI libraries provide a unified approach for representing generative AI components, and enable seamless integration and interoperability with various AI services.

The packages

The Microsoft.Extensions.AI.Abstractions package provides the core exchange types, including IChatClient and IEmbeddingGenerator<TInput,TEmbedding>. Any .NET library that provides an LLM client can implement the IChatClient interface to enable seamless integration with consuming code.

The Microsoft.Extensions.AI package has an implicit dependency on the Microsoft.Extensions.AI.Abstractions package. This package enables you to easily integrate components such as automatic function tool invocation, telemetry, and caching into your applications using familiar dependency injection and middleware patterns. For example, it provides the UseOpenTelemetry(ChatClientBuilder, ILoggerFactory, String, Action<OpenTelemetryChatClient>) extension method, which adds OpenTelemetry support to the chat client pipeline.

Which package to reference

Libraries that provide implementations of the abstractions typically reference only Microsoft.Extensions.AI.Abstractions.

To also have access to higher-level utilities for working with generative AI components, reference the Microsoft.Extensions.AI package instead (which itself references Microsoft.Extensions.AI.Abstractions). Most consuming applications and services should reference the Microsoft.Extensions.AI package along with one or more libraries that provide concrete implementations of the abstractions.

Install the package

From the command-line:

dotnet add package Microsoft.Extensions.AI.Abstractions

Or directly in the C# project file:

<ItemGroup>
  <PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="[CURRENTVERSION]" />
</ItemGroup>

Documentation

Refer to the Microsoft.Extensions.AI libraries documentation for more information and API usage examples.

Feedback & Contributing

We welcome feedback and contributions in our GitHub repo.

Showing the top 20 packages that depend on Microsoft.Extensions.AI.Abstractions.

Packages Downloads
Betalgo.Ranul.OpenAI
.NET library for the OpenAI services by Betalgo Ranul
43
Microsoft.SemanticKernel.Abstractions
Semantic Kernel interfaces and abstractions. This package is automatically installed by Semantic Kernel packages if needed.
41
Betalgo.Ranul.OpenAI
.NET library for the OpenAI services by Betalgo Ranul
40
Prompty.Core
Package Description
38
Microsoft.SemanticKernel.Abstractions
Semantic Kernel interfaces and abstractions. This package is automatically installed by Semantic Kernel packages if needed.
37
Microsoft.SemanticKernel.Connectors.Qdrant
Qdrant connector for Semantic Kernel plugins and semantic memory
35
Microsoft.SemanticKernel.Connectors.Weaviate
Weaviate provider for Microsoft.Extensions.VectorData by Semantic Kernel
34
Microsoft.Extensions.VectorData.Abstractions
Abstractions for vector database access. Commonly Used Types: Microsoft.Extensions.VectorData.IVectorStore Microsoft.Extensions.VectorData.IVectorStoreRecordCollection<TKey, TRecord>
34
Microsoft.SemanticKernel.Connectors.Qdrant
Qdrant provider for Microsoft.Extensions.VectorData by Semantic Kernel
33
Microsoft.SemanticKernel.Connectors.Sqlite
SQLite connector for Semantic Kernel plugins and semantic memory
33
Microsoft.SemanticKernel.Connectors.Qdrant
Qdrant connector for Semantic Kernel plugins and semantic memory
33
Microsoft.SemanticKernel.Connectors.Weaviate
Weaviate connector for Semantic Kernel plugins and semantic memory
33
Microsoft.SemanticKernel.Connectors.AzureAISearch
Azure AI Search Semantic Memory connector for Semantic Kernel
33
Microsoft.Extensions.AI.AzureAIInference
Implementation of generative AI abstractions for Azure.AI.Inference.
33
Microsoft.SemanticKernel.Connectors.Qdrant
Qdrant connector for Semantic Kernel plugins and semantic memory
32
Microsoft.SemanticKernel.Connectors.Weaviate
Weaviate provider for Microsoft.Extensions.VectorData by Semantic Kernel
32
Microsoft.SemanticKernel.Connectors.AzureAISearch
Azure AI Search Semantic Memory connector for Semantic Kernel
32

.NET Framework 4.6.2

.NET 8.0

  • No dependencies.

.NET 9.0

  • No dependencies.

.NET Standard 2.0

Version Downloads Last updated
9.7.0 38 08/08/2025
9.0.1-preview.1.24570.5 37 08/02/2025