mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-21 22:29:51 +00:00
core[patch]: add versionadded to as_tool
(#24138)
This commit is contained in:
parent
c4417ea93c
commit
122e80e04d
@ -2073,6 +2073,8 @@ class Runnable(Generic[Input, Output], ABC):
|
|||||||
runnable = RunnableLambda(f) | g
|
runnable = RunnableLambda(f) | g
|
||||||
as_tool = runnable.as_tool()
|
as_tool = runnable.as_tool()
|
||||||
as_tool.invoke("b")
|
as_tool.invoke("b")
|
||||||
|
|
||||||
|
.. versionadded:: 0.2.14
|
||||||
"""
|
"""
|
||||||
# Avoid circular import
|
# Avoid circular import
|
||||||
from langchain_core.tools import convert_runnable_to_tool
|
from langchain_core.tools import convert_runnable_to_tool
|
||||||
|
Loading…
Reference in New Issue
Block a user