AgencyDotNet.Embeddings.OpenAI
0.1.196-g29f327a13f
This is a prerelease version of AgencyDotNet.Embeddings.OpenAI.
dotnet add package AgencyDotNet.Embeddings.OpenAI --version 0.1.196-g29f327a13f
NuGet\Install-Package AgencyDotNet.Embeddings.OpenAI -Version 0.1.196-g29f327a13f
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="AgencyDotNet.Embeddings.OpenAI" Version="0.1.196-g29f327a13f" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AgencyDotNet.Embeddings.OpenAI" Version="0.1.196-g29f327a13f" />
<PackageReference Include="AgencyDotNet.Embeddings.OpenAI" />
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 AgencyDotNet.Embeddings.OpenAI --version 0.1.196-g29f327a13f
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AgencyDotNet.Embeddings.OpenAI, 0.1.196-g29f327a13f"
#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 AgencyDotNet.Embeddings.OpenAI@0.1.196-g29f327a13f
#: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=AgencyDotNet.Embeddings.OpenAI&version=0.1.196-g29f327a13f&prerelease
#tool nuget:?package=AgencyDotNet.Embeddings.OpenAI&version=0.1.196-g29f327a13f&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Agency.Embeddings.OpenAI
OpenAI-compatible embedding implementation for the Agency AI Toolkit. Works with OpenAI, Azure OpenAI, LM Studio, and any other OpenAI-compatible endpoint.
Install
dotnet add package AgencyDotNet.Embeddings.OpenAI
Configuration
{
"Embeddings": {
"BaseUrl": "https://api.openai.com/v1",
"ModelId": "text-embedding-3-small",
"ApiKey": "sk-...",
"Dimensions": 1536
}
}
Usage
services.Configure<EmbeddingOptions>(config.GetSection("Embeddings"));
services.AddSingleton<IEmbeddingGenerator, EmbeddingGenerator>();
// Inject and use:
var embedding = await generator.GenerateEmbeddingAsync("search query");
Part of the Agency AI Toolkit — an open-source .NET RAG pipeline.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- AgencyDotNet.Embeddings.Common (>= 0.1.196-g29f327a13f)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Options (>= 10.0.9)
- OpenAI (>= 2.11.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AgencyDotNet.Embeddings.OpenAI:
| Package | Downloads |
|---|---|
|
AgencyDotNet.Harness.Console
Multi-turn interactive REPL chat harness built on Agency.Harness. Drop-in console host for testing agent prompts, tools, and stop conditions without writing a UI. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.196-g29f327a13f | 33 | 9/17/2026 |
| 0.1.194-g9adaaec0b7 | 61 | 9/1/2026 |
| 0.1.192-gd2744cd928 | 59 | 9/1/2026 |