bstraehle commited on
Commit
cd4ee00
·
verified ·
1 Parent(s): c572747

Update multi_agent.py

Browse files
Files changed (1) hide show
  1. multi_agent.py +3 -1
multi_agent.py CHANGED
@@ -134,8 +134,10 @@ def run_multi_agent(llm):
134
  #json_data = json.loads(chat_history.replace("'", '"'))
135
 
136
  #content_list = [item['content'] for item in json_data]
 
 
137
 
138
  for move in chat_history:
139
  result += f"{move.get('role')}: {move.get('content')}\n"
140
 
141
- return chat_history
 
134
  #json_data = json.loads(chat_history.replace("'", '"'))
135
 
136
  #content_list = [item['content'] for item in json_data]
137
+
138
+ result = ""
139
 
140
  for move in chat_history:
141
  result += f"{move.get('role')}: {move.get('content')}\n"
142
 
143
+ return result