Encamina.Enmarcha.AI.OpenAI.Abstractions
8.1.7-preview-02
See the version list below for details.
dotnet add package Encamina.Enmarcha.AI.OpenAI.Abstractions --version 8.1.7-preview-02
NuGet\Install-Package Encamina.Enmarcha.AI.OpenAI.Abstractions -Version 8.1.7-preview-02
<PackageReference Include="Encamina.Enmarcha.AI.OpenAI.Abstractions" Version="8.1.7-preview-02" />
paket add Encamina.Enmarcha.AI.OpenAI.Abstractions --version 8.1.7-preview-02
#r "nuget: Encamina.Enmarcha.AI.OpenAI.Abstractions, 8.1.7-preview-02"
// Install Encamina.Enmarcha.AI.OpenAI.Abstractions as a Cake Addin #addin nuget:?package=Encamina.Enmarcha.AI.OpenAI.Abstractions&version=8.1.7-preview-02&prerelease // Install Encamina.Enmarcha.AI.OpenAI.Abstractions as a Cake Tool #tool nuget:?package=Encamina.Enmarcha.AI.OpenAI.Abstractions&version=8.1.7-preview-02&prerelease
AI - OpenAI Abstractions
This project mainly contains abstractions used by other ENMARCHA NuGet packages. These abstractions include interfaces that have their implementations in other projects, and entities that represent abstractions for information exchange. It also contains some functionality with OpenAI. The NuGet package Encamina.Enmarcha.AI.OpenAI.Azure
contains implementations of this package (see documentation).
Setup
Nuget package
First, install NuGet. Then, install Encamina.Enmarcha.AI.OpenAI.Abstractions from the package manager console:
PM> Install-Package Encamina.Enmarcha.AI.OpenAI.Abstractions
.NET CLI:
Install .NET CLI. Next, install Encamina.Enmarcha.AI.OpenAI.Abstractions from the .NET CLI:
dotnet add package Encamina.Enmarcha.AI.OpenAI.Abstractions
How to use
The primary way of using this project is through its interfaces, using some of their implementations generated in Encamina.Enmarcha.AI.OpenAI.Azure NuGet package. The main interface is the following:
- ICompletionService is an interface that represents an OpenAI completion service which from some input text as a prompt, will generate a text completion that attempts to match whatever context or pattern has been given to an under laying model. It has its implementation in Encamina.Enmarcha.AI.OpenAI.Azure NuGet (see documentation).
It also contains the class ModelInfo that provides information about an OpenAI model.
var gpt35TurboMaxTokens = ModelInfo.GetById("gpt-35-turbo").MaxTokens;
// gpt35TurboMaxTokens => 4096
It has an extension method to adds a default provider for factories of completion services based on OpenAI.
// Entry point
var builder = WebApplication.CreateBuilder(new WebApplicationOptions
{
// ...
});
// ...
builder.Services.AddDefaultCompletionServiceFactoryProvider();
This extension method will add the default implementation of the ICompletionServiceFactoryProvider interface as a singleton. The default implementation is CompletionServiceFactoryProvider. With this, we can resolve the ICompletionServiceFactoryProvider
interface.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- CommunityToolkit.Diagnostics (>= 8.2.2)
- Encamina.Enmarcha.Core (>= 8.1.7-preview-02)
- Encamina.Enmarcha.Entities (>= 8.1.7-preview-02)
- Encamina.Enmarcha.Entities.Abstractions (>= 8.1.7-preview-02)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Encamina.Enmarcha.AI.OpenAI.Abstractions:
Package | Downloads |
---|---|
Encamina.Enmarcha.AI.OpenAI.Azure
Package Description |
|
Encamina.Enmarcha.SemanticKernel.Plugins.Chat
Package Description |
|
Encamina.Enmarcha.SemanticKernel.Connectors.Memory
Package Description |
|
Encamina.Enmarcha.SemanticKernel.Plugins.Memory
Package Description |
|
Encamina.Enmarcha.AI.LanguagesDetection.Azure
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.2.0 | 422 | 10/22/2024 |
8.2.0-preview-01-m01 | 162 | 9/17/2024 |
8.1.9-preview-02 | 96 | 10/22/2024 |
8.1.9-preview-01 | 419 | 10/4/2024 |
8.1.8 | 749 | 9/23/2024 |
8.1.8-preview-07 | 571 | 9/12/2024 |
8.1.8-preview-06 | 365 | 9/11/2024 |
8.1.8-preview-05 | 161 | 9/10/2024 |
8.1.8-preview-04 | 542 | 8/16/2024 |
8.1.8-preview-03 | 258 | 8/13/2024 |
8.1.8-preview-02 | 157 | 8/13/2024 |
8.1.8-preview-01 | 181 | 8/12/2024 |
8.1.7 | 177 | 8/7/2024 |
8.1.7-preview-09 | 296 | 7/3/2024 |
8.1.7-preview-08 | 158 | 7/2/2024 |
8.1.7-preview-07 | 147 | 6/10/2024 |
8.1.7-preview-06 | 141 | 6/10/2024 |
8.1.7-preview-05 | 159 | 6/6/2024 |
8.1.7-preview-04 | 141 | 6/6/2024 |
8.1.7-preview-03 | 146 | 5/24/2024 |
8.1.7-preview-02 | 143 | 5/10/2024 |
8.1.7-preview-01 | 165 | 5/8/2024 |
8.1.6 | 1,357 | 5/7/2024 |
8.1.6-preview-08 | 134 | 5/2/2024 |
8.1.6-preview-07 | 162 | 4/29/2024 |
8.1.6-preview-06 | 737 | 4/26/2024 |
8.1.6-preview-05 | 148 | 4/24/2024 |
8.1.6-preview-04 | 183 | 4/22/2024 |
8.1.6-preview-03 | 161 | 4/22/2024 |
8.1.6-preview-02 | 230 | 4/17/2024 |
8.1.6-preview-01 | 241 | 4/15/2024 |
8.1.5 | 191 | 4/15/2024 |
8.1.5-preview-15 | 164 | 4/10/2024 |
8.1.5-preview-14 | 196 | 3/20/2024 |
8.1.5-preview-13 | 136 | 3/18/2024 |
8.1.5-preview-12 | 157 | 3/13/2024 |
8.1.5-preview-11 | 129 | 3/13/2024 |
8.1.5-preview-10 | 142 | 3/13/2024 |
8.1.5-preview-09 | 140 | 3/12/2024 |
8.1.5-preview-08 | 141 | 3/12/2024 |
8.1.5-preview-07 | 141 | 3/8/2024 |
8.1.5-preview-06 | 426 | 3/8/2024 |
8.1.5-preview-05 | 158 | 3/7/2024 |
8.1.5-preview-04 | 161 | 3/7/2024 |
8.1.5-preview-03 | 167 | 3/7/2024 |
8.1.5-preview-02 | 284 | 2/28/2024 |
8.1.5-preview-01 | 238 | 2/19/2024 |
8.1.4 | 418 | 2/15/2024 |
8.1.3 | 208 | 2/13/2024 |
8.1.3-preview-07 | 136 | 2/13/2024 |
8.1.3-preview-06 | 177 | 2/12/2024 |
8.1.3-preview-05 | 146 | 2/9/2024 |
8.1.3-preview-04 | 167 | 2/8/2024 |
8.1.3-preview-03 | 155 | 2/7/2024 |
8.1.3-preview-02 | 137 | 2/2/2024 |
8.1.3-preview-01 | 135 | 2/2/2024 |
8.1.2 | 218 | 2/1/2024 |
8.1.2-preview-9 | 159 | 1/22/2024 |
8.1.2-preview-8 | 122 | 1/19/2024 |
8.1.2-preview-7 | 127 | 1/19/2024 |
8.1.2-preview-6 | 135 | 1/19/2024 |
8.1.2-preview-5 | 152 | 1/19/2024 |
8.1.2-preview-4 | 135 | 1/19/2024 |
8.1.2-preview-3 | 142 | 1/18/2024 |
8.1.2-preview-2 | 171 | 1/18/2024 |
8.1.2-preview-16 | 134 | 1/31/2024 |
8.1.2-preview-15 | 134 | 1/31/2024 |
8.1.2-preview-14 | 272 | 1/25/2024 |
8.1.2-preview-13 | 151 | 1/25/2024 |
8.1.2-preview-12 | 139 | 1/23/2024 |
8.1.2-preview-11 | 149 | 1/23/2024 |
8.1.2-preview-10 | 142 | 1/22/2024 |
8.1.2-preview-1 | 139 | 1/18/2024 |
8.1.1 | 192 | 1/18/2024 |
8.1.0 | 151 | 1/18/2024 |
8.0.3 | 208 | 12/29/2023 |
8.0.1 | 188 | 12/14/2023 |
8.0.0 | 233 | 12/7/2023 |
6.0.4.3 | 276 | 12/29/2023 |
6.0.4.2 | 250 | 12/20/2023 |
6.0.4.1 | 262 | 12/19/2023 |
6.0.4 | 288 | 12/4/2023 |
6.0.3.20 | 228 | 11/27/2023 |
6.0.3.19 | 238 | 11/22/2023 |