record_decision
Record the final classification, confidence, and origin for a metabolite entry, determining whether it is endogenous, exogenous, or xenobiotic-excluded based on provenance.
Instructions
Commit the LLM's identity CALL for one entry — the ONLY tool that sets
final_class/confidence/origin. origin is the compound's PROVENANCE and, for non-
endogenous compounds, decides the class:
BIOLOGICAL but from outside the host -> origin in {diet, drug, microbial, plant}; final_class='exogenous' (KEPT + tagged; it is a real signal, may carry KEGG/HMDB IDs).
NON-biological / technical -> origin in {contaminant, industrial, additive, surfactant, plasticizer, reagent}; final_class='xenobiotic-excluded' (dropped from analysis).
host-produced -> origin='endogenous' (default for KEGG/HMDB/structure-only mappings).
For an exclusion pass final_class='xenobiotic-excluded' (or 'unmapped') with accepted={}; origin is auto-suggested from the contaminant lexicon when omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | No | ||
| workdir | Yes | ||
| accepted | No | ||
| rationale | Yes | ||
| confidence | No | ||
| feature_id | Yes | ||
| final_class | No |