You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assessments = []
for group_instance in group_instances:
if 'initial' not in group_instance.goal.lower() and 'iap' not in group_instance.goal.lower():
assessment = group_instance.interact(comm_type='internal')
assessments.append([group_instance.goal, assessment])
assessment_report = ""
for idx, assess in enumerate(assessments):
assessment_report += f"Group {idx+1} - {assess[0]}\n{assess[1]}\n\n"
# STEP 2.3. FRDT Process
final_decisions = []
for group_instance in group_instances:
if 'review' in group_instance.goal.lower() or 'decision' in group_instance.goal.lower() or 'frdt' in group_instance.goal.lower():
decision = group_instance.interact(comm_type='internal')
final_decisions.append([group_instance.goal, decision])
compiled_report = ""
for idx, decision in enumerate(final_decisions):
compiled_report += f"Group {idx+1} - {decision[0]}\n{decision[1]}\n\n"
STEP 3. Final Decision
decision_prompt = f"""You are an experienced medical expert. Now, given the investigations from multidisciplinary teams (MDT), please review them very carefully and return your final decision to the medical query."""
tmp_agent = Agent(instruction=decision_prompt, role='decision maker', model_info=model)
tmp_agent.chat(decision_prompt)
final_decision = tmp_agent.temp_responses(f"""Investigation:\n{initial_assessment_report}\n\nQuestion: {question}""", img_path=None)
`
I was just curious that did you use the step 2.2 and 2.3 result for final decision?
because based on the code, final decision only depends on initial assessment
Meanwhile, it appears that there is redundancy between step 2.2 and step 2.3. For instance, a group with the goal "FRDT" would be unnecessarily activated twice, once in step 2.2 and again in step 2.3.
`
STEP 2.2. other MDTs Process (intermidiate)
STEP 3. Final Decision
`
I was just curious that did you use the step 2.2 and 2.3 result for final decision?
because based on the code, final decision only depends on initial assessment
final_decision = tmp_agent.temp_responses(f"""Investigation:\n{initial_assessment_report}\n\nQuestion: {question}""", img_path=None)
The text was updated successfully, but these errors were encountered: