{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"type":"number","const":3},"kind":{"type":"string","const":"hypothesis"},"roomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"threadId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"assertion":{"type":"object","properties":{"wording":{"type":"string","minLength":1,"maxLength":4000},"predicate":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"concept"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"}},"required":["type","key"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"concept_ref"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"}},"required":["type","versionId","key"],"additionalProperties":false}]},"roles":{"minItems":2,"maxItems":12,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"definition":{"type":"string","minLength":1,"maxLength":1000},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"concept"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"}},"required":["type","key"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"concept_ref"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"}},"required":["type","versionId","key"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"record"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type","versionId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"text"},"value":{"type":"string","minLength":1,"maxLength":2000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"decimal"},"value":{"type":"string","maxLength":100,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$"},"unit":{"type":"string","minLength":1,"maxLength":100}},"required":["type","value","unit"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false}]}},"required":["role","definition","value"],"additionalProperties":false}}},"required":["wording","predicate","roles"],"additionalProperties":false},"concepts":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"additionalProperties":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":160},"definition":{"type":"string","minLength":1,"maxLength":2000}},"required":["label","definition"],"additionalProperties":false}},"scope":{"type":"string","minLength":1,"maxLength":4000},"premises":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"explanation":{"type":"string","minLength":1,"maxLength":2000}},"required":["versionId","explanation"],"additionalProperties":false}},"references":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"type":"string","enum":["premise","supports","contradicts","extends","related","derived_from","refines"]},"explanation":{"type":"string","minLength":1,"maxLength":2000}},"required":["versionId","purpose","explanation"],"additionalProperties":false}},"requestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"client":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"version":{"type":"string","minLength":1,"maxLength":200},"model":{"type":"string","minLength":1,"maxLength":200},"sessionId":{"type":"string","minLength":1,"maxLength":200},"runId":{"type":"string","minLength":1,"maxLength":200}},"additionalProperties":false}},"required":["schemaVersion","kind","roomId","threadId","assertion","concepts","scope","premises","references","requestId"],"additionalProperties":false}