Credal.Net 0.0.6

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

Credal.Net

This library is for use with the Credal AI API services. You can use this to access your Copilots in any .Net 6.0+ project.

Usage

First you need to create an API key on Credal and associate it with any trained Copilot you have created. Currently all commands for the API are async methods so you will need an unwrapper to get the results in non async methods.

Install Credal.Net from Nuget

Create an instance of the CredalClient class.

  1. Pass the Unique Id of your copilot through the constructor
  2. Pass a valid user email address.
  3. Pass your API key through the constructor with a valid email address associated with the API key.
using Credal.Net.Client

var client = new CredalClient("copilot-id", "user-email", "api-key");

var credalModel = await client.SendMessageAsync("your-question-for-copilot");

if(credalModel.IsSuccess){
	Console.WriteLine(credalModel.Result.Response.Message);
}

Please check out the console demo to see a more detailed example.

Updates

0.0.6

  • Reorginized the result and model namepsace.
  • Change namespace definition to kind of help support older .Net versions.
  • Added Document Catalog endpoints to CredalClient.
  • Added Action endpoint to CredalClient.

0.0.5

  • Added ConversationException properly report failed Conversation feedback.
  • Refactored the HttpClient process so a single client isn't always used and will auto clean up after each usage. A HttpClient can still be injected for long term use if needed.
  • Updated CredalClient and added documentation to methods.
  • Updated CredalClient by marking beta features as such. These are features in Credal that are marked beta and may not be fully supported.
  • Optimized the ClientBase class on how it creates the return results.
  • Added support for .Net 6.0 - .Net 9.0 libraries.
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

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.0.6 93 1/22/2025
0.0.5 101 1/21/2025
0.0.4 87 1/20/2025