add async method in (#9204)

pull/9220/head
Harrison Chase 1 year ago committed by GitHub
parent 03ea0762a1
commit 3f601b5809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save