Skip to content

Commit

Permalink
Update tools.py
Browse files Browse the repository at this point in the history
Need to set by_alias=True so that alias names will be included in the final results
  • Loading branch information
gitchrisqueen authored Dec 13, 2023
1 parent 2bef450 commit 3e0febe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/core/langchain_core/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3e0febe

Please sign in to comment.