Class AgentCreatorBundleValidator

java.lang.Object
com.agentforge4j.config.loader.agent.AgentCreatorBundleValidator
All Implemented Interfaces:
ArtifactValidator

public final class AgentCreatorBundleValidator extends Object implements ArtifactValidator
ArtifactValidator for the full Agent Creator output bundle: the agent definition plus the generated verification starter. It first runs the production agent-bundle parse/validate path (so agent.json must load as a valid AgentDefinition, resolving its system prompt), then structurally validates the verification starter — verification/script.json must parse as JSON and carry schemaVersion and responses; verification/expected-result.json must parse as JSON and carry workflowId and expect.status. Any failure yields an invalid result, which the runtime turns into a fail-closed run. Required-file presence and path safety are enforced by the runtime around the validator.
  • Field Details

    • VALIDATOR_ID

      public static final String VALIDATOR_ID
      Stable id a VALIDATE step uses to select this validator.
      See Also:
  • Constructor Details

    • AgentCreatorBundleValidator

      public AgentCreatorBundleValidator()
      Creates a validator with a default ObjectMapper.
    • AgentCreatorBundleValidator

      public AgentCreatorBundleValidator(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Creates a validator over the given mapper.
      Parameters:
      objectMapper - the mapper used to parse the bundle JSON; must not be null
  • Method Details