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

This commit is contained in:
ccurme 2024-07-11 14:08:08 -04:00 committed by GitHub
parent c4417ea93c
commit 122e80e04d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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