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/tests/unit_tests/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>
8 months ago
..
__init__.py BUG: more core fixes (#13665) 10 months ago
test_imports.py [core, langchain] modelio code improvements (#15277) 9 months ago
test_json.py core: update json output parser (#15079) 8 months ago
test_list_parser.py Improve markdown list parser (#15295) 9 months ago
test_xml_parser.py Strip code block fences and extra test from xml when doing streaming … (#15293) 9 months ago