Interface ToolCallGuardrail

All Superinterfaces:
Guardrail

public non-sealed interface ToolCallGuardrail extends Guardrail
A guardrail that decides whether a tool call may be dispatched.

An implementation has a public constructor, optionally taking a GuardrailContext parameter, which gives access to the guardrail's configured name and config section. The per-call data is delivered to decide(akka.javasdk.agent.ToolCallGuardrail.CallContext) via ToolCallGuardrail.CallContext. Guardrails are enabled via configuration; see the agent documentation.

The runtime shares one instance across concurrent calls from different sessions and agents. An implementation must be thread safe.