java.lang.Object
com.agentforge4j.testkit.scenario.ScenarioSchema
Accessor for the JSON-schema that defines the catalog scenario
expected-result.json
contract (the workflow to drive, the ordered human gate responses, and the assertions to project
onto a run). The schema is shipped as a classpath resource alongside this class inside the testkit
artifact.
The resource is loaded by a class in its own module, so it resolves whether the testkit is read as a named JPMS module or flattened onto the classpath — and an external catalog repo consuming the published testkit artifact reaches it through this API rather than reaching into testkit source paths.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringResource name of the scenario schema, relative to this class's package. -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringjson()Reads the scenario schema as a UTF-8 string.static InputStreamopen()Opens the scenario schema resource as a stream.
-
Field Details
-
RESOURCE_NAME
Resource name of the scenario schema, relative to this class's package.- See Also:
-
-
Method Details
-
open
Opens the scenario schema resource as a stream.- Returns:
- an open stream over the schema JSON; the caller closes it
- Throws:
IllegalStateException- if the schema resource is absent from the testkit artifact
-
json
Reads the scenario schema as a UTF-8 string.- Returns:
- the schema JSON text
-