formatting code in prompt

pull/577/head
tad dy 5 months ago
parent 23cfe542e8
commit 2b70a79abf

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

Loading…
Cancel
Save