Module agentforge4j.config.loader
Package com.agentforge4j.config.loader.agent
package com.agentforge4j.config.loader.agent
-
ClassDescription
ArtifactValidatorthat asserts a generated agent bundle "loads as a validAgentDefinition" by running the production parse/validate path on the captured artifacts: Jackson-parseagent.json, validate core fields, resolve the system prompt (inline or from the capturedsystemprompt.md/boundaries.md), and build the definition (applying the record's invariants).Resolves shipped agent bundle resources from the classpath.ArtifactValidatorfor the full Agent Creator output bundle: the agent definition plus the generated verification starter.ArtifactValidatorFactoryfor the built-inagent-creator-bundlevalidator, discovered viaServiceLoader.Shared production path that turns a parsedAgentDefinitionFileinto a loadableAgentDefinition: core-field validation, system-prompt resolution (inline, else asystemprompt.mdsibling optionally appended withboundaries.md), and conversion viaAgentDefinitionFile.toDefinition(String)(which applies the record's own invariants).Resolves a sibling file's content by name, returningnullwhen absent.Mutable DTO representing the JSON shape of an agent bundle file.Factory that produces anArtifactValidatorconfigured with the suppliedObjectMapper.Shared loading flow for agent bundle sources.Loads agent definitions from shipped classpath bundles.Loads agent bundles from filesystem directories.ArtifactValidatorthat performs no format-specific parsing: it asserts every artifact the selectingVALIDATEstep captured carries non-blank content.ArtifactValidatorFactoryfor the built-inrequired-artifacts-presentvalidator, discovered viaServiceLoader.