Package com.embabel.agent.spi.validation
Interface ValidationPromptGenerator
-
- All Implemented Interfaces:
public interface ValidationPromptGeneratorGenerate validation prompts for JSR-380 annotated types
-
-
Method Summary
Modifier and Type Method Description abstract StringgenerateRequirementsPrompt(Validator validator, Class<?> outputClass)Generate a string describing validation requirements for an LLM prompt This inspects the bean metadata to describe constraints ahead of time abstract <T extends Any> StringgenerateViolationsReport(Set<ConstraintViolation<T>> violations)Generate a string based on actual constraint violations This describes what went wrong after validation -
-
Method Detail
-
generateRequirementsPrompt
abstract String generateRequirementsPrompt(Validator validator, Class<?> outputClass)
Generate a string describing validation requirements for an LLM prompt This inspects the bean metadata to describe constraints ahead of time
-
generateViolationsReport
abstract <T extends Any> String generateViolationsReport(Set<ConstraintViolation<T>> violations)
Generate a string based on actual constraint violations This describes what went wrong after validation
-
-
-
-