Update multi_agent.py
Browse files- multi_agent.py +2 -2
multi_agent.py
CHANGED
@@ -52,9 +52,9 @@ def run_multi_agent(llm, message):
|
|
52 |
|
53 |
chat_history = ""
|
54 |
|
55 |
-
|
56 |
|
57 |
-
for message in
|
58 |
chat_history += f"Role: {message['role']}, Content: {message['content']}\n"
|
59 |
|
60 |
image_data = read_image_file("/home/user/app/coding/ytd_stock_gains.png")
|
|
|
52 |
|
53 |
chat_history = ""
|
54 |
|
55 |
+
chat_result_json = json.loads(chat_result)
|
56 |
|
57 |
+
for message in chat_result_json["messages"]:
|
58 |
chat_history += f"Role: {message['role']}, Content: {message['content']}\n"
|
59 |
|
60 |
image_data = read_image_file("/home/user/app/coding/ytd_stock_gains.png")
|