Rob1997.CereBro.Open-AI 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Rob1997.CereBro.Open-AI --version 1.0.0
                    
NuGet\Install-Package Rob1997.CereBro.Open-AI -Version 1.0.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="Rob1997.CereBro.Open-AI" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rob1997.CereBro.Open-AI" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Rob1997.CereBro.Open-AI" />
                    
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 Rob1997.CereBro.Open-AI --version 1.0.0
                    
#r "nuget: Rob1997.CereBro.Open-AI, 1.0.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 Rob1997.CereBro.Open-AI@1.0.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=Rob1997.CereBro.Open-AI&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Rob1997.CereBro.Open-AI&version=1.0.0
                    
Install as a Cake Tool

CereBro.Open-AI

NuGet stable version GitHub license

CereBro.Open-AI is OpenAI's implementation for CereBro.

Installation

You can install the package from NuGet using the following command:

dotnet add package Rob1997.CereBro.Open-AI

Usage

Once you've installed the package, you'll need to add OpenAI's API Key to your environment variables.

export OPEN_AI_API_KEY="your-api-key"
$env:OPEN_AI_API_KEY="your-api-key"

If you want this to be permanent, you can add it to your .bashrc or .bash_profile file in linux or use the following command in PowerShell.

[Environment]::SetEnvironmentVariable("OPEN_AI_API_KEY", "your-api-key", "User")

Once you've set the API Key, you can use the OpenAIChatProvider in your Runner.StartConversation method.

// Awaitable Task for the conversation
Task conversation = Runner.StartConversation<OpenAIChatProvider, ConsoleChatDispatcher>(new ITool[]
        {
            // Examples
            new LocationTool(),
            new DateTool(),
            new WeatherTool()
        });
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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 (1)

Showing the top 1 NuGet packages that depend on Rob1997.CereBro.Open-AI:

Package Downloads
Rob1997.CereBro.Playground

CereBro's Playground

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.6 109 4/6/2025
1.0.5 109 3/28/2025
1.0.1 108 3/21/2025
1.0.0 103 3/21/2025