hyf

Context-aware query service for Radroots
git clone https://radroots.dev/git/hyf.git
Log | Files | Refs | README | LICENSE

farm_update_interpret.request.schema.json (4351B)


      1 {
      2   "$comment": "hyf_v1_jev additive wire envelope; strict unknown-field rejection",
      3   "type": "object",
      4   "properties": {
      5     "version": {
      6       "type": "integer",
      7       "const": 1
      8     },
      9     "request_id": {
     10       "type": "string",
     11       "minLength": 1
     12     },
     13     "trace_id": {
     14       "type": "string",
     15       "minLength": 1
     16     },
     17     "capability": {
     18       "type": "string",
     19       "const": "farm_update.interpret"
     20     },
     21     "context": {
     22       "type": "object",
     23       "properties": {
     24         "consumer": {
     25           "type": "string"
     26         },
     27         "execution_mode_preference": {
     28           "type": "string",
     29           "enum": [
     30             "deterministic",
     31             "assisted"
     32           ]
     33         },
     34         "deadline_ms": {
     35           "type": "integer",
     36           "minimum": 1
     37         },
     38         "evaluation_time": {
     39           "type": "string"
     40         },
     41         "timezone": {
     42           "type": "string"
     43         },
     44         "locale": {
     45           "type": "string"
     46         },
     47         "versions": {
     48           "type": "object",
     49           "properties": {
     50             "schema": {
     51               "type": "string"
     52             },
     53             "taxonomy": {
     54               "type": "string"
     55             },
     56             "normalization": {
     57               "type": "string"
     58             },
     59             "review_policy": {
     60               "type": "string"
     61             },
     62             "ranking_policy": {
     63               "type": "string"
     64             },
     65             "question_bundle": {
     66               "type": "string"
     67             },
     68             "model": {
     69               "type": "string"
     70             }
     71           },
     72           "required": [
     73             "model",
     74             "normalization",
     75             "question_bundle",
     76             "ranking_policy",
     77             "review_policy",
     78             "schema",
     79             "taxonomy"
     80           ],
     81           "additionalProperties": false
     82         },
     83         "return_provenance": {
     84           "type": "boolean"
     85         }
     86       },
     87       "required": [
     88         "evaluation_time",
     89         "versions"
     90       ],
     91       "additionalProperties": false
     92     },
     93     "input": {
     94       "type": "object",
     95       "properties": {
     96         "source": {
     97           "type": "object",
     98           "properties": {
     99             "source_id": {
    100               "type": "string"
    101             },
    102             "revision": {
    103               "type": "string"
    104             },
    105             "text": {
    106               "type": "string"
    107             },
    108             "source_time": {
    109               "type": "string"
    110             },
    111             "timezone": {
    112               "type": "string"
    113             },
    114             "locale": {
    115               "type": "string"
    116             },
    117             "actor_id": {
    118               "type": "string"
    119             },
    120             "farm_id": {
    121               "type": "string"
    122             }
    123           },
    124           "required": [
    125             "source_id",
    126             "revision",
    127             "text",
    128             "source_time",
    129             "actor_id",
    130             "farm_id"
    131           ],
    132           "additionalProperties": false
    133         },
    134         "prior_records": {
    135           "type": "array",
    136           "items": {
    137             "type": "object",
    138             "properties": {
    139               "record_id": {
    140                 "type": "string"
    141               },
    142               "revision": {
    143                 "type": "string"
    144               },
    145               "role": {
    146                 "type": "string"
    147               }
    148             },
    149             "required": [
    150               "record_id",
    151               "revision",
    152               "role"
    153             ],
    154             "additionalProperties": false
    155           }
    156         },
    157         "clarification": {
    158           "type": "object",
    159           "properties": {
    160             "target_field": {
    161               "type": "string"
    162             },
    163             "source_id": {
    164               "type": "string"
    165             },
    166             "revision": {
    167               "type": "string"
    168             },
    169             "text": {
    170               "type": "string"
    171             }
    172           },
    173           "required": [
    174             "revision",
    175             "source_id",
    176             "target_field",
    177             "text"
    178           ],
    179           "additionalProperties": false
    180         }
    181       },
    182       "required": [
    183         "source"
    184       ],
    185       "additionalProperties": false
    186     }
    187   },
    188   "required": [
    189     "version",
    190     "request_id",
    191     "capability",
    192     "input"
    193   ],
    194   "additionalProperties": false
    195 }