Prompt Guard | C# SDK
Prompt Guard
PromptGuardClientPrompt Guard API client.
var config = new Config("pangea_token", "pangea_domain");
var builder = new PromptGuardClient.Builder(config);
var client = builder.Build();
Guard (Beta)
PromptGuardClient.Guard(GuardRequest, CancellationToken)Guard messages.
var response = await client.Guard(new GuardRequest(
new[] {
new Message { Role = "user", Content = "how are you?" }
}
));