Class RolesPresentValidator
java.lang.Object
com.tnsai.agents.validation.validators.RolesPresentValidator
- All Implemented Interfaces:
Validator
AGENT-V001 — at least one
Role is required.
Formalizes the historical hard-coded check in
AgentBuilder.validate() as a structured validator so it
appears in the ValidationReport
alongside other issues rather than throwing standalone.
- Since:
- 0.5.0 (issue #85)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionid()Short, stable id for logging and test assertions (e.g.Inspect the agent configuration and return any issues detected.
-
Constructor Details
-
RolesPresentValidator
public RolesPresentValidator()
-
-
Method Details
-
id
Description copied from interface:ValidatorShort, stable id for logging and test assertions (e.g."llm-presence"). -
validate
Description copied from interface:ValidatorInspect the agent configuration and return any issues detected. Returning an empty list means "no problems found by this validator".
-