Skip to main content

AI Guard | Java SDK

Creates a new AI Guard API client.

AIGuardClient(Builder builder)

required parameters

Builder

Response Object

void

Text guard (Beta)

guardText(TextGuardRequest request)

Guard text.

required parameters

TextGuardRequest

Request parameters.

Response Object

TextGuardResponse
 final var response = client.guardText(TextGuardRequest.builder().text("hello world").build());