Interface GuardrailContext


public interface GuardrailContext
Context information available to a guardrail constructor. Context information available during Guardrail construction and initialization. This gives access to the name and configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    A client for invoking a configured Classifier, e.g.
    com.typesafe.config.Config
    The config section for the specific guardrail.
    The name of the guardrail.
  • Method Details

    • name

      String name()
      The name of the guardrail.
    • config

      com.typesafe.config.Config config()
      The config section for the specific guardrail.
    • classifierClient

      ClassifierClient classifierClient()
      A client for invoking a configured Classifier, e.g. to inform the decision.