Skip to content

The agent engineering platform.

Fix json parsing error of MULTI_PROMPT_ROUTER_TEMPLATE (#9944)

Lucas Rodrigues Pereira5c7afe8aae1a
diff --git a/libs/langchain/langchain/chains/router/multi_prompt_prompt.py b/libs/langchain/langchain/chains/router/multi_prompt_prompt.py
index 5221ea9334..b879e718a4 100644
--- a/libs/langchain/langchain/chains/router/multi_prompt_prompt.py
+++ b/libs/langchain/langchain/chains/router/multi_prompt_prompt.py
@@ -28,4 +28,5 @@ modifications are needed.
{{input}}
<< OUTPUT (must include ```json at the start of the response) >>
+<< OUTPUT (must end with ```) >>
"""