including the system prompt into the parallel calls related to the astream method

pull/577/head
tad dy 8 months ago
parent 10b92ec6c3
commit 9b51799e1a

@ -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(
current_task, version="v1"
f"SYSTEM: {agent.system_prompt}\nINPUT:{current_task}", version="v1"
):
# print(evt) # <- useful when building/debugging
if evt["event"] == "on_llm_end":

Loading…
Cancel
Save