chat-1 1767.581.164.640

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

chat-1

A lightweight and efficient .NET library for seamless integration with the Supermaker.ai chat platform. Simplifies common chat operations within your .NET applications.

Installation

To install the chat-1 package, use the following command in your .NET project: bash dotnet add package chat-1

Usage Examples

Here are some common usage scenarios demonstrating how to use the chat-1 library:

1. Sending a Simple Message: csharp using Chat1;

public class Example { public async Task SendChatMessageAsync(string message, string chatId) { var chatClient = new ChatClient(); await chatClient.SendMessageAsync(chatId, message); } }

This example showcases the basic functionality of sending a text message to a specified chat. The ChatClient simplifies the interaction with the Supermaker.ai chat API.

2. Retrieving Chat History: csharp using Chat1;

public class Example { public async Task<IEnumerable<ChatMessage>> GetChatHistoryAsync(string chatId) { var chatClient = new ChatClient(); return await chatClient.GetChatHistoryAsync(chatId); } }

This snippet demonstrates how to retrieve the chat history for a given chat ID. The GetChatHistoryAsync method returns a collection of ChatMessage objects, allowing you to access previous messages.

3. Creating a New Chat: csharp using Chat1;

public class Example { public async Task<string> CreateNewChatAsync(string user1Id, string user2Id) { var chatClient = new ChatClient(); return await chatClient.CreateChatAsync(user1Id, user2Id); //Returns the new chatId } }

This example illustrates how to programmatically create a new chat between two users. The CreateChatAsync method returns the unique ID of the newly created chat.

4. Handling Chat Events (Example - Receiving a New Message):

While chat-1 focuses on basic operations, you can extend its functionality by subscribing to events from Supermaker.ai's WebSocket API (this requires direct interaction with the Supermaker.ai platform and is beyond the scope of this simplified library). For example, you might have a separate service listening for new message events and then use chat-1 to retrieve details about the message. csharp // This is a conceptual example and requires integration with Supermaker.ai's WebSocket API. // chat-1 does not directly handle WebSocket connections.

using Chat1;

public class Example { public async Task HandleNewMessageEventAsync(string chatId, string messageId) { var chatClient = new ChatClient(); ChatMessage message = await chatClient.GetMessageAsync(chatId, messageId);

    // Process the new message (e.g., display it in your UI)
    Console.WriteLine($"New message in chat {chatId}: {message.Content}");
}

}

5. Sending a Message with Metadata: csharp using Chat1; using System.Collections.Generic;

public class Example { public async Task SendChatMessageWithMetadataAsync(string message, string chatId, Dictionary<string, string> metadata) { var chatClient = new ChatClient(); await chatClient.SendMessageAsync(chatId, message, metadata); } }

This demonstrates sending a message along with custom metadata. This can be useful for attaching additional information to the message, such as context or identifiers.

Feature Summary

  • Simplified API for interacting with the Supermaker.ai chat platform.
  • Methods for sending messages, retrieving chat history, and creating new chats.
  • Lightweight and easy to integrate into your .NET projects.
  • Supports sending messages with custom metadata.

License

MIT License

Copyright (c) [Year] [Your Name/Organization]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

This package is part of the chat-1 ecosystem. For advanced features and enterprise-grade tools, visit: https://supermaker.ai/chat/

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 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 was computed.  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.
  • net6.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
1767.581.164.640 126 1/5/2026