diff --git a/libs/core/langchain_core/tools.py b/libs/core/langchain_core/tools.py index 8b73580358a29..55753fcf6f278 100644 --- a/libs/core/langchain_core/tools.py +++ b/libs/core/langchain_core/tools.py @@ -244,7 +244,7 @@ def _parse_input( else: if input_args is not None: result = input_args.parse_obj(tool_input) - return {k: v for k, v in result.dict().items() if k in tool_input} + return {k: v for k, v in result.dict(by_alias=True).items() if k in tool_input} return tool_input @root_validator()