You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/core/langchain_core/output_parsers
Antonio Pisani d4a98e4e04
core: update json output parser (#15079)
- **Description:** changed json.py to handle additional cases of partial
json string to be parsed, basically by dropping the last character in
the string until a valid json string is found or the string is empty.
Also added additional test cases.
  
- **Issue:** function parse_partial_json could not parse cases where the
key is present but the value is not.

---------

Co-authored-by: Nuno Campos <nuno@langchain.dev>
9 months ago
..
__init__.py
base.py Propagate context vars in all classes/methods 9 months ago
format_instructions.py
json.py core: update json output parser (#15079) 9 months ago
list.py Improve markdown list parser (#15295) 9 months ago
string.py
transform.py
xml.py Strip code block fences and extra test from xml when doing streaming … (#15293) 9 months ago