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>
8 months ago
..
__init__.py [core, langchain] modelio code improvements (#15277) 9 months ago
base.py Propagate context vars in all classes/methods 9 months ago
format_instructions.py [core, langchain] modelio code improvements (#15277) 9 months ago
json.py core: update json output parser (#15079) 8 months ago
list.py Improve markdown list parser (#15295) 9 months ago
string.py manual mapping (#14422) 9 months ago
transform.py In Runnable.stream_log build up final_output from adding output chunks (#12781) 10 months ago
xml.py Strip code block fences and extra test from xml when doing streaming … (#15293) 9 months ago