agentobjectmodel.org

Examples

AOM surface definitions (*.aom.json) and expected agent outputs (outputs/*.output.json). All validate against the spec schemas.

Validate all (from repo root)

python aom.py validate all --examples-dir examples/v0.1.0
node   aom.mjs validate all --examples-dir examples/v0.1.0

Layout

Each example folder (e.g. v0.1.0/login-single) contains:

Generating outputs

From repo root, generate golden *.output.json files:

python aom.py create-outputs
node   aom.mjs create-outputs

This discovers every *.aom.json under examples/ and writes success, failed, and (when applicable) escalated outputs. To avoid overwriting hand-edited files, add a .skip marker (see Tools/testing/README.md).

Validating a single folder (advanced)

python Tools/python/validate/validate_all.py v0.1.0/ecom-flow
node Tools/node/validate/validate_all.js v0.1.0/ecom-flow