Interface ContentValidator

  • All Implemented Interfaces:

    
    public interface ContentValidator<T extends Object>
    
                        

    Base validation framework for agent API use. Generic interface supporting validation of different content types.

    This interface serves as the foundation for all agent-specific validation, including guardrails, and action validators.

    • 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
      abstract ValidationResult validate(T input, Blackboard blackboard) Validate the given input within the provided blackboard context.
      abstract String getName() Human-readable name for this validator.
      abstract String getDescription() Description of what this validator checks.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • validate

         abstract ValidationResult validate(T input, Blackboard blackboard)

        Validate the given input within the provided blackboard context.

        Parameters:
        input - the content to validate
        blackboard - the blackboard providing access to all available objects
        Returns:

        validation result indicating success or failure with details

      • getName

         abstract String getName()

        Human-readable name for this validator. Used for logging, error reporting, and configuration.

      • getDescription

         abstract String getDescription()

        Description of what this validator checks. Used for documentation and debugging purposes.