make sure agent key is present

Former-commit-id: c3149e3788a624e980cc4ddb144e6c8949568340
pull/160/head
Kye 2 years ago
parent 8c874cb877
commit fbf2ec7c60

@ -84,7 +84,10 @@ class AgentManager:
callback_manager=callback_manager,
verbose=True,
)
if 'agent' not in executor.__dict__:
executor.__dict__['agent'] = agent
self.executors[session] = executor
return executor
except Exception as e:
logging.error(f"Error while creating executor: {str(e)}")

Loading…
Cancel
Save