fix response to json
This commit is contained in:
@@ -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')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user