Module agentforge4j.config.loader
Class AgentCreatorBundleValidator
java.lang.Object
com.agentforge4j.config.loader.agent.AgentCreatorBundleValidator
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringStable id aVALIDATEstep uses to select this validator. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a validator with a defaultObjectMapper.AgentCreatorBundleValidator(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Creates a validator over the given mapper. -
Method Summary
Modifier and TypeMethodDescriptionvalidate(ArtifactValidationContext context) Validates the captured artifacts.The stable identifier aVALIDATEstep uses to select this validator.
-
Field Details
-
VALIDATOR_ID
Stable id aVALIDATEstep uses to select this validator.- See Also:
-
-
Constructor Details
-
AgentCreatorBundleValidator
public AgentCreatorBundleValidator()Creates a validator with a defaultObjectMapper. -
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 benull
-
-
Method Details
-
validatorId
Description copied from interface:ArtifactValidatorThe stable identifier aVALIDATEstep uses to select this validator.- Specified by:
validatorIdin interfaceArtifactValidator- Returns:
- non-blank validator id
-
validate
Description copied from interface:ArtifactValidatorValidates the captured artifacts.- Specified by:
validatein interfaceArtifactValidator- Parameters:
context- read-only view of the selecting step's declared artifacts- Returns:
- the validation outcome
-