Skip to content

The agent engineering platform.

Port format instructions fix from js (#3015)

Nuno Campos79bb5c4f9541
diff --git a/langchain/output_parsers/format_instructions.py b/langchain/output_parsers/format_instructions.py
index c91d6ca702..54e5c70c32 100644
--- a/langchain/output_parsers/format_instructions.py
+++ b/langchain/output_parsers/format_instructions.py
@@ -1,6 +1,6 @@
# flake8: noqa
-STRUCTURED_FORMAT_INSTRUCTIONS = """The output should be a markdown code snippet formatted in the following schema:
+STRUCTURED_FORMAT_INSTRUCTIONS = """The output should be a markdown code snippet formatted in the following schema, including the leading and trailing "\`\`\`json" and "\`\`\`":
```json
{{