File size: 299 Bytes
45c30cf
 
 
 
 
 
 
1
2
3
4
5
6
7
from langchain.utilities import GoogleSerperAPIWrapper
from langchain.tools import BaseTool, StructuredTool, tool

@tool
def search(query: str) -> str: 
    """Function that it use when you searching up something on google. Only run this tools once."""
    return GoogleSerperAPIWrapper().run(query)