mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-23 07:09:31 +00:00
add async method in (#9204)
This commit is contained in:
parent
03ea0762a1
commit
3f601b5809
@ -18,5 +18,8 @@ def create_retriever_tool(
|
||||
Tool class to pass to an agent
|
||||
"""
|
||||
return Tool(
|
||||
name=name, description=description, func=retriever.get_relevant_documents
|
||||
name=name,
|
||||
description=description,
|
||||
func=retriever.get_relevant_documents,
|
||||
coroutine=retriever.aget_relevant_documents,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user