AgentCircuits.Providers.OpenAI
0.7.96
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package AgentCircuits.Providers.OpenAI --version 0.7.96
NuGet\Install-Package AgentCircuits.Providers.OpenAI -Version 0.7.96
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="AgentCircuits.Providers.OpenAI" Version="0.7.96" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AgentCircuits.Providers.OpenAI" Version="0.7.96" />
<PackageReference Include="AgentCircuits.Providers.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 AgentCircuits.Providers.OpenAI --version 0.7.96
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AgentCircuits.Providers.OpenAI, 0.7.96"
#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 AgentCircuits.Providers.OpenAI@0.7.96
#: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=AgentCircuits.Providers.OpenAI&version=0.7.96
#tool nuget:?package=AgentCircuits.Providers.OpenAI&version=0.7.96
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AgentCircuits.Providers.OpenAI
OpenAI Responses API provider for AgentCircuits.
Installation
dotnet add package AgentCircuits.Providers.OpenAI
Quick Start
using AgentCircuits.Providers;
using AgentCircuits.Providers.OpenAI;
var model = OpenAI.LanguageModel("gpt-5-mini");
var response = await model.GenerateAsync(new LlmRequest
{
Messages = [Message.User("Summarize the latest architecture trends in one paragraph.")],
MaxTokens = 300
});
OpenAI.LanguageModel(...) uses OPENAI_API_KEY from the environment.
Custom Provider Options
using AgentCircuits.Providers.OpenAI;
var provider = OpenAI.Create(new OpenAIProviderOptions
{
ApiKey = "your-api-key",
BaseUrl = "https://api.openai.com/v1",
MaxRetries = 2
});
var model = provider.CreateLanguageModel("gpt-5-mini");
Response Lifecycle Helpers
For background responses and retrieval flows, use the lifecycle client:
using AgentCircuits.Providers.OpenAI;
using OpenAI.Responses;
var lifecycle = OpenAI.ResponseLifecycle("gpt-5-mini");
var response = await lifecycle.GetAsync("resp_123");
var cancelled = await lifecycle.CancelAsync("resp_123");
var deleted = await lifecycle.DeleteAsync("resp_123");
await foreach (ResponseItem input in lifecycle.GetInputItemsAsync("resp_123"))
{
// Inspect stored input items
}
await foreach (StreamingResponseUpdate update in lifecycle.GetStreamingUpdatesAsync("resp_123"))
{
// Resume streaming from an existing response
}
You can also create the lifecycle client from a configured provider:
var lifecycle = provider.CreateResponseLifecycleClient("gpt-5-mini");
Notes
- Supports OpenAI model families used by this provider (
gpt-*,chatgpt-*,codex*, ando*reasoning families). - Uses the OpenAI .NET SDK Responses API surface.
- Streaming, tool calls, citations, and reasoning metadata are mapped into AgentCircuits
LlmResponse/LlmStreamChunkformats.
See the main AgentCircuits repository for end-to-end integration examples.
| 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
- AgentCircuits.Core (>= 0.7.96)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Options (>= 10.0.3)
- ModelContextProtocol (>= 0.9.0-preview.1)
- OpenAI (>= 2.8.0)
- ReverseMarkdown (>= 5.0.0)
- System.ClientModel (>= 1.9.0)
- System.Memory.Data (>= 10.0.3)
- UglyToad.PdfPig (>= 1.7.0-custom-5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.105-tool-auth-changes | 0 | 2/27/2026 |
| 0.7.104-tool-auth-changes | 0 | 2/27/2026 |
| 0.7.103 | 34 | 2/25/2026 |
| 0.7.103-tool-auth-changes | 0 | 2/26/2026 |
| 0.7.102 | 34 | 2/24/2026 |
| 0.7.101 | 34 | 2/24/2026 |
| 0.7.100 | 40 | 2/23/2026 |
| 0.7.99 | 33 | 2/23/2026 |
| 0.7.98 | 42 | 2/23/2026 |
| 0.7.97 | 37 | 2/23/2026 |
| 0.7.96 | 39 | 2/21/2026 |
| 0.7.95 | 42 | 2/19/2026 |
| 0.7.94 | 47 | 2/18/2026 |
| 0.7.93 | 40 | 2/18/2026 |
| 0.7.92 | 43 | 2/18/2026 |
| 0.7.91 | 40 | 2/18/2026 |
| 0.7.9 | 45 | 2/18/2026 |
| 0.7.8 | 42 | 2/17/2026 |
| 0.7.7 | 44 | 2/16/2026 |
| 0.7.6 | 46 | 2/16/2026 |
Loading failed