Skip to content

The agent engineering platform.

core[patch]: add versionadded to `as_tool` (#24138)

ccurme122e80e04d14
diff --git a/libs/core/langchain_core/runnables/base.py b/libs/core/langchain_core/runnables/base.py
index 80284d7b63..97138c79a4 100644
--- a/libs/core/langchain_core/runnables/base.py
+++ b/libs/core/langchain_core/runnables/base.py
@@ -2073,6 +2073,8 @@ class Runnable(Generic[Input, Output], ABC):
runnable = RunnableLambda(f) | g
as_tool = runnable.as_tool()
as_tool.invoke("b")
+
+ .. versionadded:: 0.2.14
"""
# Avoid circular import
from langchain_core.tools import convert_runnable_to_tool