Update multi_agent.py
Browse files- multi_agent.py +4 -4
multi_agent.py
CHANGED
|
@@ -88,12 +88,12 @@ def run_multi_agent(llm, task):
|
|
| 88 |
)
|
| 89 |
|
| 90 |
chat = ""
|
| 91 |
-
first_message = True
|
| 92 |
|
| 93 |
for message in chat_result.chat_history:
|
| 94 |
-
if not first_message:
|
| 95 |
-
|
| 96 |
-
first_message = False
|
| 97 |
|
| 98 |
file_name_png = get_latest_file("coding", ".png")
|
| 99 |
|
|
|
|
| 88 |
)
|
| 89 |
|
| 90 |
chat = ""
|
| 91 |
+
#first_message = True
|
| 92 |
|
| 93 |
for message in chat_result.chat_history:
|
| 94 |
+
#if not first_message:
|
| 95 |
+
chat += f"**{message['role'].replace('assistant', 'Code Executor').replace('user', 'Code Writer')}**\n{message['content']}\n\n"
|
| 96 |
+
#first_message = False
|
| 97 |
|
| 98 |
file_name_png = get_latest_file("coding", ".png")
|
| 99 |
|