Ikon.Sdk.DotNet 1.24.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Ikon.Sdk.DotNet --version 1.24.0                
NuGet\Install-Package Ikon.Sdk.DotNet -Version 1.24.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="Ikon.Sdk.DotNet" Version="1.24.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ikon.Sdk.DotNet --version 1.24.0                
#r "nuget: Ikon.Sdk.DotNet, 1.24.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.
// Install Ikon.Sdk.DotNet as a Cake Addin
#addin nuget:?package=Ikon.Sdk.DotNet&version=1.24.0

// Install Ikon.Sdk.DotNet as a Cake Tool
#tool nuget:?package=Ikon.Sdk.DotNet&version=1.24.0                

Ikon AI C# SDK

Welcome to the Ikon AI C# SDK. This SDK is designed to help developers integrate and interact with Ikon's services easily using C#. The SDK provides a straightforward API to manage channels, handle events, and communicate within the Ikon platform.

Features

  • Initialize client with developer credentials
  • Connect to and manage multiple channels
  • Send and receive messages within channels
  • Event handling before and after connections, and on messages

Installation

To start using the Ikon AI C# SDK, include the libraries in your C# project. Ensure that your project is compatible with .NET 8.0 or .NET Standard 2.1.

Usage

Creating an Ikon Client

To create an Ikon client instance, you need an API key, a space ID, and a user ID.

var clientInfo = new Sdk.ClientInfo
{
    ApiKey = Environment.GetEnvironmentVariable("IKON_SDK_API_KEY") ?? throw new Exception("API key is missing. Please set the 'IKON_SDK_API_KEY' environment variable."),
    SpaceId = Environment.GetEnvironmentVariable("IKON_SDK_SPACE_ID") ?? "<<SET_SPACE_ID_HERE>>",
    UserId = Environment.GetEnvironmentVariable("IKON_SDK_USER_ID") ?? "<<SET_USER_ID_HERE>>",
    UseProductionEndpoint = Environment.GetEnvironmentVariable("IKON_SDK_USE_PROD_ENDPOINT")?.Trim().Equals("true", StringComparison.InvariantCultureIgnoreCase) ?? true,
    Description = "Example",
    DeviceId = Utils.GenerateDeviceId(),
    ProductId = "Ikon.Sdk.DotNet.Example",
    VersionId = Version.VersionString,
    InstallId = "1",
    UserType = UserType.Human,
    OpcodeGroupsFromServer = Opcode.GROUP_ALL,
    OpcodeGroupsToServer = Opcode.GROUP_ALL,
};

var ikonClient = await Sdk.CreateIkonClientAsync(clientInfo);

Managing Channels

Once the client is initialized, you can connect to a channel, send messages, and handle various channel-related events.

var channelKey = Environment.GetEnvironmentVariable("IKON_SDK_CHANNEL_KEY") ?? "<<SET_CHANNEL_KEY_HERE>>";
var channel = new Channel(ikonClient, channelKey);
await channel.ConnectAsync();
channel.SignalReady();

Sending Messages

To send messages to a channel:

channel.SendText("Hello, Ikon!");

Handling Events

Implement the event handlers to manage different channel events, e.g. Start, Shutdown, Text, and more.

channel.Text += OnChannelText;

private async Task OnChannelText(object sender, Channel.TextArgs e)
{
    await Task.CompletedTask;
    Console.WriteLine($"\n{e.UserName}: {e.Text}\n");
}

Helper Functions

channel.SetState("TestVariable", 1234); // Set any variable defined in the Input section
channel.ClearState(); // Clear all variables from the state
channel.GenerateAnswer(); // Generate an answer without providing any input
channel.ClearMessageHistory(); // Clear the message history of the whole channel

Example Program

For an up-to-date example program, see the included Ikon.Sdk.DotNet.Examples.Chat/Program.cs source file.

License

This SDK is licensed under the Ikon AI SDK License. See the LICENSE file for more details.

Support

For support, please open an issue on our GitHub repository or contact our support team through our support channel.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
1.30.0.1142 0 3/12/2025
1.30.0.1138 0 3/12/2025
1.30.0.1137 0 3/12/2025
1.30.0.1135 0 3/12/2025
1.30.0.1125 0 3/12/2025
1.30.0.1123 0 3/12/2025
1.30.0.1122 0 3/12/2025
1.30.0.1120 4 3/12/2025
1.30.0.1119 3 3/12/2025
1.30.0.1118 62 3/11/2025
1.30.0.1117 62 3/11/2025
1.30.0.1114 71 3/11/2025
1.30.0.1113 64 3/11/2025
1.30.0.1112 72 3/11/2025
1.30.0.1110 60 3/11/2025
1.30.0.1107 63 3/11/2025
1.30.0.1106 69 3/11/2025
1.30.0.1105 73 3/10/2025
1.30.0.1103 77 3/10/2025
1.30.0.1102 71 3/10/2025
1.30.0.1101 69 3/10/2025
1.30.0.1100 77 3/10/2025
1.30.0.1099 70 3/10/2025
1.30.0.1097 67 3/10/2025
1.30.0.1096 70 3/10/2025
1.30.0.1095 77 3/10/2025
1.30.0.1094 71 3/9/2025
1.30.0.1093 73 3/9/2025
1.30.0.1089 74 3/9/2025
1.30.0.1088 75 3/9/2025
1.30.0.1087 75 3/9/2025
1.30.0.1086 81 3/9/2025
1.30.0.1085 71 3/9/2025
1.30.0.1077 73 3/9/2025
1.30.0.1075 79 3/9/2025
1.30.0.1074 78 3/9/2025
1.30.0.1071 68 3/8/2025
1.30.0.1070 72 3/8/2025
1.30.0.1069 72 3/8/2025
1.30.0.1066 72 3/8/2025
1.30.0.1062 103 3/8/2025
1.30.0.1061 100 3/8/2025
1.30.0.1056 130 3/8/2025
1.30.0.1054 125 3/8/2025
1.30.0.1053 118 3/8/2025
1.30.0.1051 123 3/8/2025
1.30.0.1050 131 3/8/2025
1.30.0.1047 135 3/8/2025
1.30.0.1046 141 3/8/2025
1.30.0.1044 132 3/8/2025
1.30.0.1043 154 3/8/2025
1.30.0.1041 195 3/7/2025
1.30.0.1040 187 3/7/2025
1.30.0.1039 185 3/7/2025
1.30.0.1038 184 3/7/2025
1.30.0.1037 190 3/7/2025
1.30.0.1036 196 3/7/2025
1.30.0.1035 190 3/7/2025
1.30.0.1035-mikko-wip 184 3/7/2025
1.30.0.1034 192 3/7/2025
1.30.0.1032 183 3/6/2025
1.30.0.1031 181 3/6/2025
1.30.0.1030 185 3/6/2025
1.30.0.1029 195 3/6/2025
1.30.0.1026 190 3/6/2025
1.30.0.1011 184 3/6/2025
1.30.0.1010 206 3/6/2025
1.30.0.1009 186 3/6/2025
1.30.0.1007 184 3/6/2025
1.30.0.1003 182 3/5/2025
1.30.0.1002 182 3/5/2025
1.30.0.1001 178 3/5/2025
1.30.0.1000 179 3/5/2025
1.30.0.999 190 3/5/2025
1.30.0.997 194 3/5/2025
1.30.0.996 190 3/5/2025
1.30.0.995 186 3/4/2025
1.30.0.994 189 3/4/2025
1.30.0.993 186 3/4/2025
1.30.0.992 185 3/4/2025
1.30.0.991 192 3/4/2025
1.30.0.989 181 3/4/2025
1.30.0.988 183 3/4/2025
1.30.0.987 183 3/4/2025
1.30.0.985 176 3/4/2025
1.30.0.984 185 3/4/2025
1.30.0.983 189 3/4/2025
1.30.0.981 193 3/4/2025
1.30.0.980 187 3/4/2025
1.30.0.979 178 3/4/2025
1.30.0.978 184 3/4/2025
1.30.0.977 189 3/4/2025
1.30.0.976 193 3/3/2025
1.30.0.974 138 3/3/2025
1.30.0.968 131 3/3/2025
1.30.0.967 86 3/2/2025
1.30.0.966 78 3/2/2025
1.30.0.965 77 3/2/2025
1.30.0.964 76 3/2/2025
1.30.0.962 87 3/2/2025
1.30.0.957 84 3/2/2025
1.30.0.956 93 3/2/2025
1.30.0.955 81 3/2/2025
1.30.0.953 79 3/2/2025
1.30.0.949 85 3/1/2025
1.30.0.948 82 3/1/2025
1.30.0.945 79 3/1/2025
1.30.0.944 78 3/1/2025
1.30.0.943 75 3/1/2025
1.30.0.941 74 3/1/2025
1.30.0.940 88 2/28/2025
1.30.0.938 86 2/28/2025
1.30.0.936 88 2/27/2025
1.30.0.935 90 2/27/2025
1.30.0.932 83 2/27/2025
1.30.0.931 87 2/27/2025
1.30.0.929 85 2/27/2025
1.30.0.928 85 2/27/2025
1.30.0.927 81 2/26/2025
1.30.0.926 85 2/26/2025
1.30.0.925 82 2/26/2025
1.30.0.924 77 2/26/2025
1.30.0.923 91 2/26/2025
1.30.0.922 77 2/26/2025
1.30.0.921 78 2/26/2025
1.30.0.919 82 2/25/2025
1.30.0.916 79 2/25/2025
1.30.0.915 76 2/25/2025
1.30.0.914 90 2/25/2025
1.30.0.913 80 2/25/2025
1.30.0.912 73 2/25/2025
1.30.0.910 72 2/25/2025
1.30.0.909 73 2/25/2025
1.30.0.908 78 2/25/2025
1.30.0.906 75 2/25/2025
1.30.0.904 73 2/25/2025
1.30.0.900 77 2/25/2025
1.30.0.897 78 2/24/2025
1.30.0.895 76 2/24/2025
1.30.0.894 69 2/24/2025
1.30.0.893 74 2/24/2025
1.30.0.892 84 2/24/2025
1.30.0.891 86 2/24/2025
1.30.0.890 76 2/23/2025
1.30.0.888 79 2/22/2025
1.30.0.886 81 2/22/2025
1.30.0.885 78 2/22/2025
1.30.0.884 79 2/22/2025
1.30.0.882 82 2/22/2025
1.30.0.881 85 2/22/2025
1.30.0.880 87 2/21/2025
1.30.0.879 80 2/21/2025
1.30.0.877 83 2/21/2025
1.30.0.875 83 2/21/2025
1.30.0.874 81 2/21/2025
1.30.0.873 81 2/21/2025
1.30.0.872 85 2/21/2025
1.30.0.871 94 2/21/2025
1.30.0.870 80 2/21/2025
1.30.0.869 84 2/21/2025
1.30.0.868 82 2/21/2025
1.30.0.864 79 2/21/2025
1.30.0.863 80 2/21/2025
1.30.0.861 84 2/20/2025
1.30.0.856 87 2/20/2025
1.30.0.855 79 2/20/2025
1.30.0.854 74 2/20/2025
1.30.0.853 84 2/20/2025
1.30.0.852 80 2/20/2025
1.30.0.851 85 2/20/2025
1.30.0.847 80 2/20/2025
1.30.0.846 77 2/20/2025
1.30.0.845 81 2/20/2025
1.30.0.841 84 2/20/2025
1.30.0.840 83 2/20/2025
1.30.0.839 84 2/19/2025
1.30.0.838 80 2/19/2025
1.30.0.837 76 2/19/2025
1.30.0.836 88 2/19/2025
1.30.0.833 91 2/19/2025
1.30.0.831 76 2/19/2025
1.30.0.829 77 2/19/2025
1.30.0.828 95 2/19/2025
1.30.0.827 88 2/19/2025
1.30.0.826 78 2/19/2025
1.30.0.825 81 2/19/2025
1.30.0.824 90 2/19/2025
1.30.0.823 84 2/19/2025
1.30.0.822 87 2/19/2025
1.30.0.821 81 2/19/2025
1.30.0 116 12/31/2024
1.29.0 100 11/10/2024
1.28.0 117 9/18/2024
1.27.0 129 9/16/2024
1.26.0 110 9/5/2024
1.25.0 141 8/24/2024
1.24.0 143 8/22/2024
1.23.0 133 8/16/2024
1.22.0 124 8/15/2024
1.21.0 120 8/15/2024
1.20.0 86 8/2/2024
1.19.0 92 8/1/2024
1.18.0 93 8/1/2024
1.17.0 84 7/31/2024
1.16.0 95 7/30/2024
1.15.0 91 7/30/2024
1.14.0 88 7/30/2024
1.13.0 91 7/30/2024