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)