Credal.Net
0.0.6
dotnet add package Credal.Net --version 0.0.6
NuGet\Install-Package Credal.Net -Version 0.0.6
<PackageReference Include="Credal.Net" Version="0.0.6" />
<PackageVersion Include="Credal.Net" Version="0.0.6" />
<PackageReference Include="Credal.Net" />
paket add Credal.Net --version 0.0.6
#r "nuget: Credal.Net, 0.0.6"
#addin nuget:?package=Credal.Net&version=0.0.6
#tool nuget:?package=Credal.Net&version=0.0.6
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.
- Pass the Unique Id of your copilot through the constructor
- Pass a valid user email address.
- 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 | Versions 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. |
-
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.