Class DefaultAgentStructureValidator

  • All Implemented Interfaces:
    com.embabel.agent.spi.validation.AgentStructureAgentValidator , com.embabel.agent.spi.validation.AgentValidator , org.springframework.beans.factory.InitializingBean

    @Component() 
    public final class DefaultAgentStructureValidator
     implements InitializingBean, AgentStructureAgentValidator
                        

    Validator that checks the fundamental structure of agent definitions.

    Ensures that each agent has at least one goal, action, or condition defined, and validates that action and condition method signatures are correct and conform to expected patterns.

    Specific checks include:

    • Detecting empty agents (no actions, conditions, or goals)

    • Enforcing that agents have at least one goal

    • Verifying that action and condition methods have valid parameter signatures

    Reports detailed validation errors for structural issues, helping ensure that only well-formed agents are registered or used in the system.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final ApplicationContext context
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description