|
|
|
@ -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
|
|
|
|
|