hyf

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

farm_update_interpret.request.json (2497B)


      1 {
      2   "version": 1,
      3   "request_id": "farm-interpret-req-1",
      4   "trace_id": "farm-interpret-trace-1",
      5   "capability": "farm_update.interpret",
      6   "context": {
      7     "consumer": "radroots-cli",
      8     "execution_mode_preference": "deterministic",
      9     "deadline_ms": 2500,
     10     "evaluation_time": "2026-09-24T09:00:00-07:00",
     11     "timezone": "America/Vancouver",
     12     "locale": "en-CA",
     13     "versions": {
     14       "schema": "hyf_ops_v2",
     15       "taxonomy": "hyf_ops_v2.taxonomy.v1",
     16       "normalization": "hyf_ops_v2.normalization.v1",
     17       "review_policy": "hyf_ops_v2.review_policy.v1",
     18       "ranking_policy": "hyf_ops_v2.ranking_policy.v1",
     19       "question_bundle": "hyf_ops_v2.question_bundle.v1",
     20       "model": "jev-1.13.0"
     21     },
     22     "return_provenance": true,
     23     "actor_id": "farm-1",
     24     "farm_id": "farm-1"
     25   },
     26   "input": {
     27     "source": {
     28       "source_id": "src-farm-1",
     29       "revision": "rev-7",
     30       "text": "Got about 80 lb of Roma tomatoes and two crates of eggs today.",
     31       "source_time": "2026-09-24T08:30:00-07:00",
     32       "timezone": "America/Vancouver",
     33       "locale": "en-CA",
     34       "actor_id": "farm-1",
     35       "farm_id": "farm-1",
     36       "ingestion_time": "2026-09-24T08:31:00-07:00"
     37     },
     38     "references": {
     39       "taxonomy": {
     40         "version": "hyf_ops_v2.taxonomy.v1",
     41         "provenance": "host_supplied",
     42         "products": [
     43           {"catalogue_id": "tomato.roma", "terms": ["Roma tomatoes", "roma tomato"]},
     44           {"catalogue_id": "egg.chicken", "terms": ["eggs"]}
     45         ]
     46       },
     47       "normalization": {
     48         "version": "hyf_ops_v2.normalization.v1",
     49         "provenance": "host_supplied",
     50         "units": [
     51           {"unit": "lb", "dimension": "mass"},
     52           {"unit": "kg", "dimension": "mass"},
     53           {"unit": "crate", "dimension": "count"},
     54           {"unit": "egg", "dimension": "count"}
     55         ],
     56         "conversions": [
     57           {"from_unit": "lb", "to_unit": "kg", "numerator": "45359237", "denominator": "100000000"}
     58         ],
     59         "packs": [
     60           {"product_id": "egg.chicken", "pack_unit": "crate", "inner_unit": "egg", "value": "12"}
     61         ]
     62       }
     63     },
     64     "prior_records": [
     65       {"record_id": "record-100", "revision": "rev-2", "role": "authorized_listing", "farm_id": "farm-1"}
     66     ],
     67     "clarification": {
     68       "source_id": "src-clar-1",
     69       "revision": "rev-1",
     70       "target_field": "quantity",
     71       "text": "about 80 lb means at least 75 and at most 85 lb",
     72       "expected_revision": "rev-7"
     73     }
     74   }
     75 }