Skip to content

Commit

Permalink
[Core]: Small Docstring Clarification for BaseTool (#28148)
Browse files Browse the repository at this point in the history
- **Description:** `kwargs` are not being passed to `run` of the
`BaseTool` which has been fixed
- **Issue:** #28114

---------

Co-authored-by: Stevan Kapicic <[email protected]>
Co-authored-by: Erick Friis <[email protected]>
  • Loading branch information
3 people authored Dec 9, 2024
1 parent cef21a0 commit ec9b414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/core/langchain_core/tools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ def run(
run_id: The id of the run. Defaults to None.
config: The configuration for the tool. Defaults to None.
tool_call_id: The id of the tool call. Defaults to None.
kwargs: Additional arguments to pass to the tool
kwargs: Keyword arguments to be passed to tool callbacks
Returns:
The output of the tool.
Expand Down Expand Up @@ -721,7 +721,7 @@ async def arun(
run_id: The id of the run. Defaults to None.
config: The configuration for the tool. Defaults to None.
tool_call_id: The id of the tool call. Defaults to None.
kwargs: Additional arguments to pass to the tool
kwargs: Keyword arguments to be passed to tool callbacks
Returns:
The output of the tool.
Expand Down

0 comments on commit ec9b414

Please sign in to comment.