From 0795be2a0476b86b79dbb33bf0ef8745ff2dbdca Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Tue, 30 Sep 2025 15:43:34 -0400 Subject: [PATCH] docs(core): remove non-existent param from `as_tool` docstring (#33165) --- libs/core/langchain_core/runnables/base.py | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/libs/core/langchain_core/runnables/base.py b/libs/core/langchain_core/runnables/base.py index 031fc590c2f..ca615f93b3e 100644 --- a/libs/core/langchain_core/runnables/base.py +++ b/libs/core/langchain_core/runnables/base.py @@ -884,18 +884,18 @@ class Runnable(ABC, Generic[Input, Output]): e.g., if the underlying ``Runnable`` uses an API which supports a batch mode. Args: - inputs: A list of inputs to the ``Runnable``. - config: A config to use when invoking the ``Runnable``. - The config supports standard keys like ``'tags'``, ``'metadata'`` for - tracing purposes, ``'max_concurrency'`` for controlling how much work - to do in parallel, and other keys. Please refer to the - ``RunnableConfig`` for more details. Defaults to None. - return_exceptions: Whether to return exceptions instead of raising them. - Defaults to False. - **kwargs: Additional keyword arguments to pass to the ``Runnable``. + inputs: A list of inputs to the ``Runnable``. + config: A config to use when invoking the ``Runnable``. The config supports + standard keys like ``'tags'``, ``'metadata'`` for + tracing purposes, ``'max_concurrency'`` for controlling how much work + to do in parallel, and other keys. Please refer to the + ``RunnableConfig`` for more details. Defaults to None. + return_exceptions: Whether to return exceptions instead of raising them. + Defaults to False. + **kwargs: Additional keyword arguments to pass to the ``Runnable``. Returns: - A list of outputs from the ``Runnable``. + A list of outputs from the ``Runnable``. """ if not inputs: @@ -2534,8 +2534,6 @@ class Runnable(ABC, Generic[Input, Output]): name: The name of the tool. Defaults to None. description: The description of the tool. Defaults to None. arg_types: A dictionary of argument names to types. Defaults to None. - message_version: Version of ``ToolMessage`` to return given - :class:`~langchain_core.messages.content_blocks.ToolCall` input. Returns: A ``BaseTool`` instance.