hyf

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

buyer_request_interpret.request.schema.json (3795B)


      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": "buyer_request.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         "clarification": {
    135           "type": "object",
    136           "properties": {
    137             "target_field": {
    138               "type": "string"
    139             },
    140             "source_id": {
    141               "type": "string"
    142             },
    143             "revision": {
    144               "type": "string"
    145             },
    146             "text": {
    147               "type": "string"
    148             }
    149           },
    150           "required": [
    151             "revision",
    152             "source_id",
    153             "target_field",
    154             "text"
    155           ],
    156           "additionalProperties": false
    157         }
    158       },
    159       "required": [
    160         "source"
    161       ],
    162       "additionalProperties": false
    163     }
    164   },
    165   "required": [
    166     "version",
    167     "request_id",
    168     "capability",
    169     "input"
    170   ],
    171   "additionalProperties": false
    172 }