Ali2206 commited on
Commit
368b63a
·
verified ·
1 Parent(s): 3fa0c60

Update src/txagent/txagent.py

Browse files
Files changed (1) hide show
  1. src/txagent/txagent.py +1 -1
src/txagent/txagent.py CHANGED
@@ -335,7 +335,7 @@ class TxAgent:
335
  function_call_json[i]["call_id"] = call_id
336
  call_results.append({
337
  "role": "tool",
338
- "content": json.dumps({"content": call_result, "call_id": call_id})
339
  })
340
  if return_gradio_history and function_call_json[i]["name"] != 'Finish':
341
  if function_call_json[i]["name"] == 'Tool_RAG':
 
335
  function_call_json[i]["call_id"] = call_id
336
  call_results.append({
337
  "role": "tool",
338
+ "content": json.dumps({"tool_name": function_call_json[i]["name"], "content": call_result, "call_id": call_id})
339
  })
340
  if return_gradio_history and function_call_json[i]["name"] != 'Finish':
341
  if function_call_json[i]["name"] == 'Tool_RAG':