Package akka.javasdk.agent
Interface TextGuardrail
- All Superinterfaces:
Guardrail
- All Known Implementing Classes:
SimilarityGuard
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.javasdk.agent.Guardrail
Guardrail.GuardrailException, Guardrail.Result
-
Method Summary
Modifier and TypeMethodDescriptionEvaluates if the text passes the guardrail or not.
-
Method Details
-
evaluate
Evaluates if the text passes the guardrail or not.
-