Skip to content

Getting Started

Shows how to create a client and list datasets.

This example assumes using HammingAI; is in scope and apiKey contains your HammingAI API key.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
using var client = new HammingAIClient(apiKey);

// List all datasets in the workspace.
var response = await client.Datasets.ListDatasetsAsync();

Console.WriteLine($"Found {response.Datasets!.Count} datasets.");

foreach (var dataset in response.Datasets)
{
    Console.WriteLine($"- {dataset.Id}: {dataset.Name}");
}