OuroborosAI.Core
2.9.6
dotnet add package OuroborosAI.Core --version 2.9.6
NuGet\Install-Package OuroborosAI.Core -Version 2.9.6
<PackageReference Include="OuroborosAI.Core" Version="2.9.6" />
<PackageVersion Include="OuroborosAI.Core" Version="2.9.6" />
<PackageReference Include="OuroborosAI.Core" />
paket add OuroborosAI.Core --version 2.9.6
#r "nuget: OuroborosAI.Core, 2.9.6"
#addin nuget:?package=OuroborosAI.Core&version=2.9.6
#tool nuget:?package=OuroborosAI.Core&version=2.9.6
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 | Versions 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. |
-
net9.0
- Betalgo.Ranul.OpenAI (>= 9.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.4)
- Polly (>= 8.5.2)
- Polly.Contrib.WaitAndRetry (>= 1.1.1)
- Scriban (>= 6.2.1)
- TypeMerger (>= 2.1.4)
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 |
---|---|---|
2.9.6 | 126 | 4/23/2025 |
2.9.5 | 713 | 8/16/2024 |
2.9.4 | 137 | 8/16/2024 |
2.9.3 | 148 | 8/15/2024 |
2.9.2 | 205 | 6/4/2024 |
2.9.1 | 274 | 2/20/2024 |
2.9.0 | 144 | 2/14/2024 |
2.8.8 | 172 | 1/27/2024 |
2.8.8-beta | 102 | 1/27/2024 |
2.8.7-beta | 97 | 1/27/2024 |
2.8.6-beta | 86 | 1/27/2024 |
2.8.5-beta | 136 | 1/21/2024 |
2.8.4-beta | 100 | 1/20/2024 |
2.8.3 | 142 | 1/19/2024 |
2.8.2 | 120 | 1/18/2024 |
2.8.1 | 121 | 1/18/2024 |
2.8.0 | 102 | 1/18/2024 |
2.7.4 | 253 | 12/19/2023 |
2.7.3 | 152 | 12/18/2023 |
2.7.2 | 151 | 12/15/2023 |
2.7.1 | 146 | 12/13/2023 |
2.7.0 | 167 | 12/12/2023 |
2.6.1 | 143 | 12/8/2023 |
2.6.0 | 189 | 11/29/2023 |
2.5.0 | 227 | 10/26/2023 |
2.4.2 | 162 | 10/20/2023 |
2.4.1 | 130 | 10/19/2023 |
2.4.0 | 157 | 10/19/2023 |
2.3.1 | 162 | 10/17/2023 |
2.3.0 | 259 | 9/8/2023 |
2.2.0 | 165 | 9/8/2023 |
2.1.0 | 307 | 7/9/2023 |
2.0.0 | 193 | 7/6/2023 |
1.0.5 | 183 | 5/24/2023 |
1.0.4 | 250 | 5/23/2023 |
1.0.3 | 188 | 5/19/2023 |
1.0.2 | 234 | 4/25/2023 |
1.0.1 | 207 | 4/25/2023 |
1.0.0 | 431 | 3/16/2023 |
0.8.7 | 268 | 3/13/2023 |
0.8.6 | 272 | 3/10/2023 |
0.8.5 | 282 | 3/10/2023 |
0.8.4 | 232 | 3/10/2023 |
0.8.3 | 256 | 3/10/2023 |
0.8.1 | 273 | 3/9/2023 |
0.8.0 | 279 | 2/13/2023 |
Moved to .NET 9, added support for gpt 4.1, adding missing terminators to Dialog, added some modeling helpers.