langchain/tests/unit_tests/agents
Mindaugas Sharskus a4d85f7fd5
[Fix #3365]: Changed regex to cover new line before action serious (#3367)
Fix for: [Changed regex to cover new line before action
serious.](https://github.com/hwchase17/langchain/issues/3365)
---

This PR fixes the issue where `ValueError: Could not parse LLM output:`
was thrown on seems to be valid input.

Changed regex to cover new lines before action serious (after the
keywords "Action:" and "Action Input:").

regex101: https://regex101.com/r/CXl1kB/1

---------

Co-authored-by: msarskus <msarskus@cisco.com>
2023-04-24 22:05:31 -07:00
..
__init__.py (WIP) agents (#171) 2022-11-22 06:16:26 -08:00
test_agent.py use output parsers in agents (#2987) 2023-04-16 13:15:21 -07:00
test_mrkl.py [Fix #3365]: Changed regex to cover new line before action serious (#3367) 2023-04-24 22:05:31 -07:00
test_react.py use output parsers in agents (#2987) 2023-04-16 13:15:21 -07:00
test_sql.py Harrison/fix create sql agent (#2870) 2023-04-13 22:07:58 -07:00
test_tools.py Structured Tool Bugfixes (#3324) 2023-04-24 09:58:29 -07:00