We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3e9cab commit 62fb0dfCopy full SHA for 62fb0df
coagent/agents/structured_agent.py
@@ -65,7 +65,9 @@ async def handle(
65
_input = self._input_type.decode(msg.raw)
66
67
# This is a hack to make the system prompt dynamic.
68
- self._swarm_agent.instructions = await self.render_system(_input)
+ swarm_agent = await self.get_swarm_agent()
69
+ swarm_agent.instructions = await self.render_system(_input)
70
+
71
messages = await self.render_messages(_input)
72
73
history = ChatHistory(messages=messages)
0 commit comments