Skip to content

Agent Zero AI framework

AgentContext.communicate response fix

frdel31494490c08f
diff --git a/agent.py b/agent.py
index a086f7534..8ee08a743 100644
--- a/agent.py
+++ b/agent.py
@@ -108,7 +108,8 @@ class AgentContext:
response = await agent.monologue(msg_template)
superior = agent.data.get("superior", None)
if superior:
- await self._process_chain(superior, response, False)
+ response = await self._process_chain(superior, response, False)
+ return response
except Exception as e:
agent.handle_critical_exception(e)