add async method in (#9204)

This commit is contained in:
Harrison Chase 2023-08-14 11:04:31 -07:00 committed by GitHub
parent 03ea0762a1
commit 3f601b5809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,5 +18,8 @@ def create_retriever_tool(
Tool class to pass to an agent Tool class to pass to an agent
""" """
return Tool( 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,
) )