langchain/libs/core/tests/unit_tests
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>
2024-01-02 16:34:43 -08:00
..
_api REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
callbacks Use tz-aware utc datetimes in tracer (#15187) 2024-01-02 12:36:40 -08:00
data Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
documents REFACTOR: combine core documents files (#13733) 2023-11-22 10:10:26 -08:00
example_selectors BUG: more core fixes (#13665) 2023-11-21 15:15:48 -08:00
examples core:adds tests for partial_variables (#15427) 2024-01-02 15:00:06 -08:00
fake core[patch]: add response kwarg to on_llm_error 2023-12-04 15:04:48 -08:00
language_models [core: minor] fix getters (#15181) 2023-12-26 12:32:55 -08:00
load BUG: more core fixes (#13665) 2023-11-21 15:15:48 -08:00
messages Fixes for opengpts release (#13960) 2023-11-28 21:49:43 +00:00
output_parsers core: update json output parser (#15079) 2024-01-02 16:34:43 -08:00
outputs BUG: more core fixes (#13665) 2023-11-21 15:15:48 -08:00
prompts core:adds tests for partial_variables (#15427) 2024-01-02 15:00:06 -08:00
runnables Use tz-aware utc datetimes in tracer (#15187) 2024-01-02 12:36:40 -08:00
tracers core[patch], langchain[patch]: fix required deps (#14373) 2023-12-07 14:24:58 -08:00
utils Update _retrieve_ref inside json_schema.py to include an isdigit() check (#14745) 2024-01-01 16:25:42 -08:00
__init__.py Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
conftest.py core[patch], langchain[patch]: fix required deps (#14373) 2023-12-07 14:24:58 -08:00
prompt_file.txt Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
test_globals.py Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
test_imports.py infra: Fix test filesystem paths incompatible with windows (#14388) 2023-12-21 13:45:42 -08:00
test_messages.py \Fix tool_calls message merge (#14613) 2023-12-13 12:37:40 -08:00
test_outputs.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
test_tools.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00