Interface TextGuardrail

All Superinterfaces:
Guardrail
All Known Implementing Classes:
SimilarityGuard

public non-sealed interface TextGuardrail extends Guardrail
Guardrails can protect against harmful inputs and outputs to/from model and tool calls.

A Guardrail needs to implement this interface, have a public constructor with optionally a GuardrailContext parameter, which includes the name and the config section for the specific guardrail.

Guardrails are enabled for agents with configuration, see agent documentation.

  • Method Details