This repo hosts utilities relating to DiaML, such as the specification, and corresponding parsers and validators.
To be written or linked.
To be added.
Check whether a string is a valid DiaML formatted call. Use the function
diaml.validator.validate_diaml
.
Currently, the validation function is not very strict.
- It only checks if DiaML is followed for each line independently of other lines.
- Doesn't check other things, such as:
<user>
tag always follows<API>
or<agent>
tag<API>
tag always follows<system>
tag<system>
will only come after an<API>
tag- etc..
Check out the tests (poetry run pytest
) for good and bad cases for validator.