fix: unbound local variable (#8346)

This commit is contained in:
cthomas
2026-01-06 12:44:37 -08:00
committed by Caren Thomas
parent 3a5ace33b6
commit 5857b97c7f

View File

@@ -2236,6 +2236,7 @@ async def capture_messages(
response_messages = await server.message_manager.create_many_messages_async(messages_to_persist, actor=actor)
run_ids = []
sleeptime_group = agent.multi_agent_group if agent.multi_agent_group and agent.multi_agent_group.manager_type == "sleeptime" else None
if sleeptime_group:
sleeptime_agent_loop = SleeptimeMultiAgentV4(agent_state=agent, actor=actor, group=sleeptime_group)