Skip to content

Commit 62fb0df

Browse files
committed
Fix StructuredAgent
1 parent f3e9cab commit 62fb0df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

coagent/agents/structured_agent.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ async def handle(
6565
_input = self._input_type.decode(msg.raw)
6666

6767
# This is a hack to make the system prompt dynamic.
68-
self._swarm_agent.instructions = await self.render_system(_input)
68+
swarm_agent = await self.get_swarm_agent()
69+
swarm_agent.instructions = await self.render_system(_input)
70+
6971
messages = await self.render_messages(_input)
7072

7173
history = ChatHistory(messages=messages)

0 commit comments

Comments
 (0)