Interface GuardrailsConfigProvider

    • Method Detail

      • getOrCreate

        GuardrailsConfig getOrCreate​(@Nullable
                                     ClientState state)
        Returns the GuardrailsConfig to be used for the specified ClientState.
        Parameters:
        state - a client state, maybe null if the guardrails check for which we are getting the config is for a background process that is not associated to a user query.
        Returns:
        the configuration to be used for state
      • build

        static GuardrailsConfigProvider build​(java.lang.String customImpl)
        Creates an instance of the custom guardrails config provider of the given class.
        Parameters:
        customImpl - the fully qualified classname of the guardrails config provider to be instantiated
        Returns:
        a new instance of the specified custom guardrails config provider of the given class.