mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-21 03:51:42 +00:00
Adding STRUCTURED_FORMAT_SIMPLE_INSTRUCTIONS
missing backticks (#12238)
This PR fixes the fact that `STRUCTURED_FORMAT_SIMPLE_INSTRUCTIONS` was missing backticks at the end
This commit is contained in:
parent
9fc28d50c3
commit
53f35c5f5c
@ -13,7 +13,7 @@ STRUCTURED_FORMAT_SIMPLE_INSTRUCTIONS = """
|
|||||||
{{
|
{{
|
||||||
{format}
|
{format}
|
||||||
}}
|
}}
|
||||||
"""
|
```"""
|
||||||
|
|
||||||
|
|
||||||
PYDANTIC_FORMAT_INSTRUCTIONS = """The output should be formatted as a JSON instance that conforms to the JSON schema below.
|
PYDANTIC_FORMAT_INSTRUCTIONS = """The output should be formatted as a JSON instance that conforms to the JSON schema below.
|
||||||
|
@ -77,6 +77,7 @@ class StructuredOutputParser(BaseOutputParser):
|
|||||||
# "foo": List[string] // a list of strings
|
# "foo": List[string] // a list of strings
|
||||||
# "bar": string // a string
|
# "bar": string // a string
|
||||||
# }
|
# }
|
||||||
|
# ```
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
only_json (bool): If True, only the json in the Markdown code snippet
|
only_json (bool): If True, only the json in the Markdown code snippet
|
||||||
|
Loading…
Reference in New Issue
Block a user