Skip to main content

Prompt Guard | C# SDK

Prompt Guard

PromptGuardClient

Prompt Guard API client.

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

Guard

PromptGuardClient.Guard(GuardRequest, CancellationToken)

Guard messages.

GuardRequest

Request parameters.

CancellationToken

Cancellation token.

Task<Response<GuardResult>>
var response = await client.Guard(new GuardRequest(
    new[] {
        new Message { Role = "user", Content = "how are you?" }
    }
));

Secure AI from cloud to code

636 Ramona St Palo Alto, CA 94301

©2025 Pangea. All rights reserved.

PrivacyYour Privacy ChoicesTerms of Use
Contact Us