Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
langchain: support the situation when action_input is null in json ou…
…tput_parser (#29680) Description: This PR fixes handling of null action_input in [langchain.agents.output_parser]. Previously, passing null to action_input could cause OutputParserException with unclear error message which cause LLM don't know how to modify the action. The changes include: Added null-check validation before processing action_input Implemented proper fallback behavior with default values Maintained backward compatibility with existing implementations Error Examples: ``` { "action":"some action", "action_input":null } ``` Issue: None Dependencies: None
- Loading branch information