fix response to json

This commit is contained in:
CakeCN
2025-09-14 14:03:14 +08:00
parent 3bb06aa9b2
commit d6c4f8cfc0

View File

@@ -113,7 +113,7 @@ class AgentNamespace(Namespace):
print("function_call", data['data']) print("function_call", data['data'])
d = data['data'] d = data['data']
res = chatmanager[uuid].function_call(d['data']['name'], d['data']['args']) res = chatmanager[uuid].function_call(d['data']['name'], d['data']['args'])
d['data'] = res d['data'] = res.to_dict()
emit(d['route'], d, room=uuid, namespace='/agent') emit(d['route'], d, room=uuid, namespace='/agent')