Skip to main content

AI Guard | Java SDK

Creates a new AI Guard API client.

AIGuardClient(Builder builder)

Builder

void

Text guard

guardText(TextGuardRequest request)

Guard text.

TextGuardRequest

Request parameters.

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