VOOZH about

URL: https://www.nuget.org/packages/AgentCircuits.Providers.OpenAI/

⇱ NuGet Gallery | AgentCircuits.Providers.OpenAI 0.7.134




AgentCircuits.Providers.OpenAI 0.7.134

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package AgentCircuits.Providers.OpenAI --version 0.7.134
 
 
NuGet\Install-Package AgentCircuits.Providers.OpenAI -Version 0.7.134
 
 
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.134" />
 
 
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.134" />
 
Directory.Packages.props
<PackageReference Include="AgentCircuits.Providers.OpenAI" />
 
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 AgentCircuits.Providers.OpenAI --version 0.7.134
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AgentCircuits.Providers.OpenAI, 0.7.134"
 
 
#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.134
 
 
#: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.134
 
Install as a Cake Addin
#tool nuget:?package=AgentCircuits.Providers.OpenAI&version=0.7.134
 
Install as a Cake Tool
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.

👁 NuGet
👁 License: MIT

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*, and o* reasoning families).
  • Uses the OpenAI .NET SDK Responses API surface.
  • Streaming, tool calls, citations, and reasoning metadata are mapped into AgentCircuits LlmResponse/LlmStreamChunk formats.

See the main AgentCircuits repository for end-to-end integration examples.

Product Versions Compatible and additional computed target framework versions.
.NET net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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

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.135-routed-input-auth.1 68 3/22/2026
0.7.134 118 3/19/2026
0.7.134-tool-auth.1 60 3/18/2026
0.7.133 108 3/19/2026
0.7.133-surface-bootstrap-c... 101 3/18/2026
0.7.133-rc.1 68 3/17/2026
0.7.132 114 3/16/2026
0.7.131 107 3/15/2026
0.7.130 109 3/13/2026
0.7.130-beta.1 65 3/13/2026
0.7.130-auth.1 64 3/13/2026
0.7.129 106 3/12/2026
0.7.128 121 3/11/2026
0.7.127 110 3/11/2026
0.7.126 103 3/11/2026
0.7.125 112 3/11/2026
0.7.124 107 3/10/2026
0.7.123 110 3/10/2026
0.7.121 112 3/10/2026
0.7.119 111 3/8/2026
Loading failed