Minds.SDK
1.0.0
dotnet add package Minds.SDK --version 1.0.0
NuGet\Install-Package Minds.SDK -Version 1.0.0
<PackageReference Include="Minds.SDK" Version="1.0.0" />
<PackageVersion Include="Minds.SDK" Version="1.0.0" />
<PackageReference Include="Minds.SDK" />
paket add Minds.SDK --version 1.0.0
#r "nuget: Minds.SDK, 1.0.0"
#:package Minds.SDK@1.0.0
#addin nuget:?package=Minds.SDK&version=1.0.0
#tool nuget:?package=Minds.SDK&version=1.0.0
<h1 align="center">🧠 Minds SDK for C# 🧠</h1>
<br />
<p align="center">
<img alt="hero" width="450" src="https://raw.githubusercontent.com/priyanshuverma-dev/Minds.SDK/master/.github/hero.png" style="max-width: 100%;"/>
</p>
<br /><br />
<p align="center">
<a href="https://www.nuget.org/packages/Minds.SDK">
<img alt="nuget version" src="https://img.shields.io/nuget/v/Minds.SDK.svg">
</a>
<a href="https://www.nuget.org/packages/Minds.SDK">
<img alt="repo size" src="https://img.shields.io/github/repo-size/priyanshuverma-dev/Minds.SDK?color=green">
</a>
<a href="https://github.com/priyanshuverma-dev/Minds.SDK/releases">
<img alt="repo release" src="https://img.shields.io/github/v/release/priyanshuverma-dev/Minds.SDK">
</a>
</p>
A comprehensive C# SDK for interacting with the Minds AI API. Effortlessly integrate AI functionalities into your .NET applications.
📚 Table of Contents
🚀 Features
🔐 Secure API Authentication
Ensure safe and encrypted connections with the Minds API, mastertaining data security and privacy.📊 Easy Data Source Management
Simplified management of your data sources. Easily configure and manage data connections.🧠 AI Model Customization
Create and tailor AI models to suit your application's needs with ease.📡 Real-Time Interactions
Support for real-time streaming and interaction with AI models, making your app dynamic and responsive.📦 Modular and Extensible Architecture
Flexible architecture that lets you extend and customize as your project evolves.
🎪 Installation
Install
Minds.SDKthrough NuGet.
terminal
dotnet add package Minds.SDK
🏁 Getting Started
Import the SDK and initialize a client:
using Minds.SDK;
var client = new("YOUR_API_KEY");
// Now you're ready to use the SDK!
Check out the
examplefor a demo!
📘 API Reference
Client
| Property | Description |
|---|---|
RestAPI Api |
Instance for making API calls |
Datasources Datasources |
Manages data sources |
Minds Minds |
Manages Minds (AI models) |
Datasources
| Method | Description |
|---|---|
List() |
List all datasources |
Get(string name) |
Get a specific datasource |
Create(DatabaseConfig config) |
Create a new datasource |
Drop(string name) |
Delete a datasource |
Minds
| Method | Description |
|---|---|
List() |
List all Minds (AI models) |
Get(string name) |
Get a specific Mind |
Create(MindConfig config) |
Create a new Mind |
Drop(string name) |
Delete a Mind |
Exceptions
| Exception | Description |
|---|---|
ObjectNotFoundException |
Object not found |
UnauthorizedAccessException |
Unauthorized access |
UnknownErrorException |
Unspecified error |
🌟 Usage Examples
💿 Managing Datasources
List Datasources
var datasources = await client.Datasources.List();
foreach (var ds in datasources)
{
Console.WriteLine($"Datasource: {ds.Name}");
}
Create a Datasource
var newDatasource = await client.Datasources.Create(new DatabaseConfig
{
Name = "my_postgres_db",
Engine = "postgres",
ConnectionData = new Dictionary<string, object>
{
{ "host", "localhost" },
{ "port", 5432 },
{ "user", "username" },
{ "password", "password" },
{ "database", "mydb" }
}
});
Console.WriteLine($"Created datasource: {newDatasource.Name}");
Delete a Datasource
await client.Datasources.Drop("my_postgres_db");
Console.WriteLine("Datasource deleted successfully");
🧠 Managing Minds
Create a Mind
var newMind = await client.Minds.Create(new MindConfig
{
Name = "my_predictor",
ModelName = "gpt-4o",
Provider = "openai",
Datasources = new List<string> { "my_postgres_db" }
});
Console.WriteLine($"Created Mind: {newMind.Name}");
📄 License
This project is licensed under the <a href="https://github.com/priyanshuverma-dev/Minds.SDK/blob/master/LICENSE"><strong>License</strong></a>.
This project is heavily influenced by Minds Python SDK You can find it here
| Product | Versions 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. |
-
net8.0
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.3)
- System.Data.DataSetExtensions (>= 4.5.0)
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.0.0 | 244 | 10/25/2024 |