Skip to main content

AI Guard | C# SDK

AI Guard

AIGuardClient

AI Guard API client.

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

Text guard (Beta)

AIGuardClient.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"));