hyf

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

buyer_request_match.request.json (3693B)


      1 {
      2   "version": 1,
      3   "request_id": "v3-buyer_request_match",
      4   "capability": "buyer_request.match",
      5   "context": {
      6     "evaluation_time": "1793016000",
      7     "versions": {
      8       "schema": "hyf_ops_v3",
      9       "taxonomy": "hyf_ops_v3.taxonomy.v1",
     10       "normalization": "hyf_ops_v3.normalization.v1",
     11       "review_policy": "hyf_ops_v3.review_policy.v1",
     12       "ranking_policy": "hyf_ops_v3.ranking_policy.v1",
     13       "question_bundle": "hyf_ops_v3.question_bundle.v1",
     14       "model": "jev-1.14.0"
     15     },
     16     "actor": {
     17       "participant": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",
     18       "role": "buyer",
     19       "organization": null,
     20       "grant_id": null
     21     },
     22     "workspace_id": "0000000000000000000000000000000000000000000000000000000000000002"
     23   },
     24   "input": {
     25     "need": {
     26       "need_id": "0000000000000000000000000000000000000000000000000000000000000007",
     27       "revision": "1",
     28       "participant_id": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",
     29       "demand_lines": [
     30         {
     31           "line_id": "line-1",
     32           "product": {
     33             "phrase": "cabbage",
     34             "catalogue_id": "cabbage",
     35             "resolution": "resolved"
     36           },
     37           "quantity": {
     38             "state": "known",
     39             "quantity": {
     40               "amount": "2",
     41               "unit": "kg"
     42             },
     43             "qualifier": "exact"
     44           },
     45           "conditions": [],
     46           "evidence": [
     47             {
     48               "kind": "record_field",
     49               "source_id": "0000000000000000000000000000000000000000000000000000000000000007",
     50               "revision": "1",
     51               "record_id": "0000000000000000000000000000000000000000000000000000000000000007",
     52               "field": "demand_lines",
     53               "method": "trusted_record"
     54             }
     55           ],
     56           "review_required": true
     57         }
     58       ],
     59       "partial_fulfillment": false
     60     },
     61     "candidates": [
     62       {
     63         "candidate_id": "0000000000000000000000000000000000000000000000000000000000000004",
     64         "listing_id": "0000000000000000000000000000000000000000000000000000000000000005",
     65         "revision": "1",
     66         "participant_id": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",
     67         "product": {
     68           "phrase": "cabbage",
     69           "catalogue_id": "cabbage",
     70           "resolution": "resolved"
     71         },
     72         "declared_quantity": {
     73           "state": "known",
     74           "quantity": {
     75             "amount": "8",
     76             "unit": "kg"
     77           },
     78           "qualifier": "exact"
     79         },
     80         "price": {
     81           "currency": "CAD",
     82           "minor": "1250",
     83           "exponent": 2
     84         },
     85         "sdk_projection": {
     86           "projection_id": "0000000000000000000000000000000000000000000000000000000000000006",
     87           "source_revision": "1",
     88           "feasibility": "unknown",
     89           "checks": [],
     90           "revalidate_before_use": true
     91         }
     92       }
     93     ],
     94     "coverage": {
     95       "scope": "supplied_only",
     96       "truncated": false,
     97       "evaluated": [
     98         "0000000000000000000000000000000000000000000000000000000000000004"
     99       ],
    100       "excluded": []
    101     },
    102     "references": {
    103       "taxonomy": {
    104         "version": "hyf_ops_v3.taxonomy.v1",
    105         "provenance": "authored_public_synthetic",
    106         "products": [
    107           {
    108             "catalogue_id": "cabbage",
    109             "terms": [
    110               "cabbage"
    111             ]
    112           }
    113         ]
    114       },
    115       "normalization": {
    116         "version": "hyf_ops_v3.normalization.v1",
    117         "provenance": "public_shared_sdk",
    118         "currency_registry": "radroots.currency_registry.v1"
    119       }
    120     }
    121   }
    122 }