diff --git a/Html/apps/sockets/namespaces.py b/Html/apps/sockets/namespaces.py index d6674d1..1f3c167 100644 --- a/Html/apps/sockets/namespaces.py +++ b/Html/apps/sockets/namespaces.py @@ -113,7 +113,7 @@ class AgentNamespace(Namespace): print("function_call", data['data']) d = data['data'] 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')