From ec9b41431ea8bccccc3b9f1679c1e1e16c26e23e Mon Sep 17 00:00:00 2001 From: Mohammad Mohtashim <45242107+keenborder786@users.noreply.github.com> Date: Mon, 9 Dec 2024 11:10:19 +0500 Subject: [PATCH] [Core]: Small Docstring Clarification for `BaseTool` (#28148) - **Description:** `kwargs` are not being passed to `run` of the `BaseTool` which has been fixed - **Issue:** #28114 --------- Co-authored-by: Stevan Kapicic Co-authored-by: Erick Friis --- libs/core/langchain_core/tools/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/core/langchain_core/tools/base.py b/libs/core/langchain_core/tools/base.py index 9782234dfb1a0..815607f3b4325 100644 --- a/libs/core/langchain_core/tools/base.py +++ b/libs/core/langchain_core/tools/base.py @@ -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. @@ -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.