Skip to content

Getting Started

Basic example showing how to create a Dust client and list agents in your workspace.

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

1
2
3
4
5
6
7
8
// Create an authenticated Dust client using your API key.
using var client = new DustClient(apiKey);

// List all agent configurations in the workspace.
var response = await client.Agents.GetWByWIdAssistantAgentConfigurationsAsync(
    wId: GetWorkspaceId());

// The response contains a list of agent configurations.