Update scripts/format_response.py
Browse files
scripts/format_response.py
CHANGED
|
@@ -579,6 +579,8 @@ def format_response_to_markdown(api_response, agent_name = None, dataframe=None)
|
|
| 579 |
|
| 580 |
if agent == "analytical_planner":
|
| 581 |
# logger.log_message(f"Analytical planner content: {content}", level=logging.INFO)
|
|
|
|
|
|
|
| 582 |
if 'plan_desc' in content:
|
| 583 |
markdown.append(f"### Reasoning\n{content['plan_desc']}\n")
|
| 584 |
if 'plan_instructions' in content:
|
|
@@ -586,9 +588,9 @@ def format_response_to_markdown(api_response, agent_name = None, dataframe=None)
|
|
| 586 |
else:
|
| 587 |
markdown.append(f"### Reasoning\n{content['rationale']}\n")
|
| 588 |
|
| 589 |
-
elif agent=='basic_qa_agent':
|
| 590 |
-
|
| 591 |
-
|
| 592 |
|
| 593 |
|
| 594 |
else:
|
|
|
|
| 579 |
|
| 580 |
if agent == "analytical_planner":
|
| 581 |
# logger.log_message(f"Analytical planner content: {content}", level=logging.INFO)
|
| 582 |
+
if 'complexity' in content:
|
| 583 |
+
markdown.append(f"#### Complexity:{content['complexity']}\n")
|
| 584 |
if 'plan_desc' in content:
|
| 585 |
markdown.append(f"### Reasoning\n{content['plan_desc']}\n")
|
| 586 |
if 'plan_instructions' in content:
|
|
|
|
| 588 |
else:
|
| 589 |
markdown.append(f"### Reasoning\n{content['rationale']}\n")
|
| 590 |
|
| 591 |
+
# elif agent=='basic_qa_agent':
|
| 592 |
+
# if 'answer' in content:
|
| 593 |
+
# markdown.append(f"### Answer\n{content['answer']}\n Please ask a query about the data")
|
| 594 |
|
| 595 |
|
| 596 |
else:
|