diff --git a/swarms/structs/rearrange.py b/swarms/structs/rearrange.py index 79a1bc86..02e33afc 100644 --- a/swarms/structs/rearrange.py +++ b/swarms/structs/rearrange.py @@ -347,7 +347,7 @@ class AgentRearrange(BaseSwarm): # Below is the link to the `astream_events` spec as outlined in the LangChain v0.2 docs # https://python.langchain.com/v0.2/docs/versions/v0_2/migrating_astream_events/ async for evt in agent.astream_events( - f"SYSTEM: {agent.system_prompt}\nINPUT:{current_task}", + f"SYSTEM: {agent.system_prompt}\nINPUT: {current_task}", version="v1", ): # print(evt) # <- useful when building/debugging @@ -396,7 +396,7 @@ class AgentRearrange(BaseSwarm): # Below is the link to the `astream_events` spec as outlined in the LangChain v0.2 docs # https://python.langchain.com/v0.2/docs/versions/v0_2/migrating_astream_events/ async for evt in agent.astream_events( - f"SYSTEM: {agent.system_prompt}\nINPUT:{current_task}", + f"SYSTEM: {agent.system_prompt}\nINPUT: {current_task}", version="v1", ): # print(evt) # <- useful when building/debugging