| Algorithm 1 Formulating FARR Step Question |
|
Input: JSON file containing a list of findings, actions, reasonings, and results (Machine_X_FARR_flow.json) Output: Suggested next action from inference model Load Machine_X_FARR_flow.json Parse JSON content into FARRflow list of dictionaries Initialize all_findings as an empty string for each flow in FARRflow do current_findings ← flow[“Findings”] current_result ← flow[“Result”] question_prompt ← “Below are my current findings: all_findings current_findings What is the most likely action to do next? Answer with one specific action only, not more than that.” model_output ← inference_model(question_prompt) all_findings ← all_findings + “ current_findings, current_result” end for Return model_output as the model suggested action |