To ensure behavioral parity across all SDK implementations (Python, Kotlin, etc.), the project maintains a language-agnostic conformance suite in this directory.
All test suites are located in the suites/ directory:
suites/streaming_parser.yaml: Contains test cases for theA2uiStreamParser(streaming), verifying chunk buffering, incremental yielding, and edge cases like cut tokens.suites/parser.yaml: Contains test cases for non-streaming parsing and payload fixing.suites/validator.yaml: Contains test cases for theA2uiValidator, verifying structural integrity, cycle detection, and reachability.suites/catalog.yaml: Contains test cases forA2uiCatalog(prune, render, load).suites/schema_manager.yaml: Contains test cases forA2uiSchemaManager(select_catalog, load_catalog, generate_prompt).
All static test data and simplified schemas are located in the test_data/ directory.
conformance_schema.json at the root is the JSON schema that validates the structure of the YAML test files themselves.
Each language SDK must implement a test harness that:
- Reads the YAML files.
- Feeds the inputs to the language's specific implementation of the parser/validator.
- Asserts that the output matches the expected results defined in the YAML.
Refer to agent_sdks/python/tests/conformance/test_conformance.py for a reference implementation of a harness.