Skip to main content

Prompt Guard | Java SDK

Creates a new Prompt Guard API client.

PromptGuardClient(Builder builder)

required parameters

Builder

Response Object

void

Guard (Beta)

guard(GuardRequest request)

Guard messages.

required parameters

GuardRequest

Request parameters.

Response Object

GuardResponse
 final var response = client.guard(GuardRequest.builder().messages(List.of(
 	new Message("user", "how are you?")
 )).build());