Package com.embabel.agent.api.validation
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.
-
-
Method Summary
Modifier and Type Method Description abstract ValidationResultvalidate(T input, Blackboard blackboard)Validate the given input within the provided blackboard context. abstract StringgetName()Human-readable name for this validator. abstract StringgetDescription()Description of what this validator checks. -
-
Method Detail
-
validate
abstract ValidationResult validate(T input, Blackboard blackboard)
Validate the given input within the provided blackboard context.
- Parameters:
input- the content to validateblackboard- 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.
-
-
-
-