Skip to content

Dataloop

Nuget package dotnet License: MIT Discord

Features 🔥

  • Fully generated C# SDK based on official Dataloop OpenAPI specification using AutoSDK
  • Same day update to support new features
  • Updated and supported automatically if there are no breaking changes
  • All modern .NET features - nullability, trimming, NativeAOT, etc.
  • Support .Net Framework/.Net Standard 2.0

Usage

1
2
3
using Dataloop;

using var client = new DataloopClient(apiKey);

List Projects

Basic example showing how to create a client and list annotation projects.

1
2
3
4
5
// Create an authenticated Dataloop client
using var client = new DataloopClient(apiKey);

// List all projects accessible by the authenticated user
var projects = await client.Projects.GetMyProjectsAsync();

MEAI Tools

Example showing how to use Dataloop AIFunction tools with any Microsoft.Extensions.AI IChatClient.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
// Create an authenticated Dataloop client
using var client = new DataloopClient(apiKey);

// Create AIFunction tools for use with any IChatClient
var listProjectsTool = client.AsListProjectsTool();
var listDatasetsTool = client.AsListDatasetsTool();
var listTasksTool = client.AsListTasksTool();
var getItemTool = client.AsGetItemTool();

// Verify tools are created with correct metadata

// These tools can be passed to any IChatClient for function calling:
// var response = await chatClient.GetResponseAsync(
//     "List my Dataloop projects",
//     new() { Tools = [listProjectsTool, listDatasetsTool] });

Support

Priority place for bugs: https://github.com/tryAGI/Dataloop/issues
Priority place for ideas and general questions: https://github.com/tryAGI/Dataloop/discussions
Discord: https://discord.gg/Ca2xhfBf3v

Acknowledgments

JetBrains logo

This project is supported by JetBrains through the Open Source Support Program.