Interface GuardRail

  • All Implemented Interfaces:
    com.embabel.agent.api.validation.ContentValidator

    
    public interface GuardRail
     implements ContentValidator<String>
                        

    Base guardrail interface for AI interaction safety and policy enforcement.

    GuardRails are specialized validators that focus on string-based validation for prompts, responses, and other text content in AI interactions. They extend the general ContentValidator framework to provide AI-specific safety measures.

    GuardRails validate content for:

    • Safety and toxicity concerns

    • Organizational policy compliance

    • Data privacy and sensitive information

    • Content appropriateness and quality

    • Regulatory compliance requirements

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class com.embabel.agent.api.validation.ContentValidator

        getDescription, getName, validate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail