OuroborosAI.Core 3.1.0

dotnet add package OuroborosAI.Core --version 3.1.0
                    
NuGet\Install-Package OuroborosAI.Core -Version 3.1.0
                    
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="OuroborosAI.Core" Version="3.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OuroborosAI.Core" Version="3.1.0" />
                    
Directory.Packages.props
<PackageReference Include="OuroborosAI.Core" />
                    
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 OuroborosAI.Core --version 3.1.0
                    
#r "nuget: OuroborosAI.Core, 3.1.0"
                    
#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 OuroborosAI.Core@3.1.0
                    
#: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=OuroborosAI.Core&version=3.1.0
                    
Install as a Cake Addin
#tool nuget:?package=OuroborosAI.Core&version=3.1.0
                    
Install as a Cake Tool

What is Ouroboros?

Ouroboros makes it easy to chain and transform API calls with OpenAI. You get:

  • Clean chaining: Fluent interface for feeding the output of one API call into the input of another.
    • Easily capture the output of one call, save it to a variable, and then use it as input downchain.
  • Template engine: Store your prompts as markdown right in your project, with a corresponding class for fields.
    • Store your prompts as markdown right in your project.
    • You can use a class with the same name for field injection using {{ mustache syntax }}.
    • You can also inject other templates using the same syntax.
  • Transform model results into code: using our Hermetic Codex and Proteus Convert (both parts of this project).
    • Detect a numbered list and auto-transform it into a List<String> or List<NumberedListItem>
    • Convert results directly into classes or enums.
    • Smart, recoverable detection of errors / unmappable output.
  • Exponential backoff (retry): Always on, for transient outages via <a href="https://github.com/App-vNext/Polly">Polly</a> on all calls.
  • Simple Chat API: You can also do regular Chat Completions calls, which gives you Retry.

How do I get started?

Check out the Getting Started Guide (this needs updating).

Where do I get it?

First, <a href="http://docs.nuget.org/docs/start-here/installing-nuget">install NuGet</a>. Then you can install Ouroboros from the package manager console:

PM> Install-Package OuroborosAI.Core

Limits and Possible Contributions

Ouroboros is production-ready, but it does have limits. If you would like those limits to go away, get involved!

  • Only supports OpenAI API calls. We built this on top of Betalgo, so it should also be possible to support OpenAI on Azure.
  • Chaining only supports the Chat Completions API, meaning GPT 4.1, GPT 4o, etc.
  • You can't modify our retry policy, although you can turn it off.
  • We could use some help implementing Logging, support for other providers, and the new Responses API.
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.

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
3.1.0 625 7/23/2025
3.0.1 145 7/3/2025
3.0.0 169 7/2/2025
2.9.9 253 6/5/2025
2.9.8 107 5/30/2025
2.9.7 342 5/15/2025
2.9.6 191 4/23/2025
2.9.5 854 8/16/2024
2.9.4 165 8/16/2024
2.9.3 175 8/15/2024
2.9.2 235 6/4/2024
2.9.1 314 2/20/2024
2.9.0 173 2/14/2024
2.8.8 200 1/27/2024
2.8.8-beta 118 1/27/2024
2.8.7-beta 110 1/27/2024
2.8.6-beta 101 1/27/2024
2.8.5-beta 148 1/21/2024
2.8.4-beta 112 1/20/2024
2.8.3 169 1/19/2024
2.8.2 149 1/18/2024
2.8.1 147 1/18/2024
2.8.0 129 1/18/2024
2.7.4 279 12/19/2023
2.7.3 180 12/18/2023
2.7.2 175 12/15/2023
2.7.1 176 12/13/2023
2.7.0 197 12/12/2023
2.6.1 167 12/8/2023
2.6.0 202 11/29/2023
2.5.0 251 10/26/2023
2.4.2 181 10/20/2023
2.4.1 154 10/19/2023
2.4.0 180 10/19/2023
2.3.1 184 10/17/2023
2.3.0 307 9/8/2023
2.2.0 198 9/8/2023
2.1.0 347 7/9/2023
2.0.0 233 7/6/2023
1.0.5 224 5/24/2023
1.0.4 290 5/23/2023
1.0.3 227 5/19/2023
1.0.2 272 4/25/2023
1.0.1 253 4/25/2023
1.0.0 471 3/16/2023
0.8.7 309 3/13/2023
0.8.6 315 3/10/2023
0.8.5 320 3/10/2023
0.8.4 273 3/10/2023
0.8.3 296 3/10/2023
0.8.1 327 3/9/2023
0.8.0 323 2/13/2023

Finished support for o4-mini, retired Max_Tokens in favor of Max_Completion_Tokens.