Skip to main content

AI Guard | C# SDK

Data Guard

DataGuardClient

Data Guard API client.

var config = new Config("pangea_token", "pangea_domain");
var builder = new DataGuardClient.Builder(config);
var client = builder.Build();

Text guard (Beta)

DataGuardClient.GuardText(TextGuardRequest, CancellationToken)

Guard text.

required parameters

TextGuardRequest

Request parameters.

CancellationToken

Cancellation token.

Response Object

Task<Response<TextGuardResult>>
var response = await client.GuardText(new TextGuardRequest("hello world"));

File guard (Beta)

DataGuardClient.GuardFile(FileGuardRequest, CancellationToken)

Guard file.

required parameters

FileGuardRequest

Request parameters.

CancellationToken

Cancellation token.

Response Object

Task<Response<object>>
var response = await client.GuardFile(new FileGuardRequest("https://pangea.cloud/robots.txt"));