Skip to content

Commit 592a36b

Browse files
committed
pass img through to the worker agents
1 parent 3ff3475 commit 592a36b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

swarms/structs/heavy_swarm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def _execute_agents_basic(
600600
def execute_agent(agent_info):
601601
agent_type, agent, question = agent_info
602602
try:
603-
result = agent.run(question)
603+
result = agent.run(question, img=img)
604604

605605
self.conversation.add(
606606
role=agent.agent_name,
@@ -927,7 +927,7 @@ def execute_agent_with_progress(agent_info):
927927
tracker.processing(agent_key, agent_type)
928928
tracker.executing(agent_key, agent_type)
929929

930-
result = agent.run(question)
930+
result = agent.run(question, img=img)
931931

932932
tracker.responding(agent_key, agent_type)
933933

0 commit comments

Comments
 (0)