similar to a given URL.        The url passed in should be a URL returned from `search`    """    return client.find_similar(url, num_results=5)tools = [search, get_contents, find_similar]Use in an agent‚Äãfrom langchain.chat_models import ChatOpenAIllm = ChatOpenAI(temperature=0)from langchain.agents import OpenAIFunctionsAgentfrom langchain.schema import SystemMessagesystem_message = SystemMessage(content="You are a web researcher who uses search engines to look up information.")prompt = OpenAIFunctionsAgent.create_prompt(system_message=system_message)agent = OpenAIFunctionsAgent(llm=llm, tools=tools, prompt=prompt)from langchain.agents import AgentExecutoragent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True)agent_executor.run("Find the hottest AI agent startups and what they do")            > Entering new AgentExecutor chain...        Invoking: `search` with `{'query': 'hottest AI agent startups'}`            SearchResponse(results=[Result(title='A Search Engine for Machine Intelligence', url='https://bellow.ai/', id='bdYc6hvHww_JvLv9k8NhPA', score=0.19460266828536987, published_date='2023-01-01', author=None, extract=None), Result(title='Adept: Useful General Intelligence', url='https://www.adept.ai/', id='aNBppxBZvQRZMov6sFVj9g', score=0.19103890657424927, published_date='2000-01-01', author=None, extract=None), Result(title='HiOperator | Generative AI-Enhanced Customer Service', url='https://www.hioperator.com/', id='jieb6sB53mId3EDo0z-SDw', score=0.18549954891204834, published_date='2000-01-01', author=None, extract=None), Result(title='Home - Stylo', url='https://www.askstylo.com/', id='kUiCuCjJYMD4N0NXdCtqlQ', score=0.1837376356124878, published_date='2000-01-01', author=None, extract=None), Result(title='DirectAI', url='https://directai.io/?utm_source=twitter&utm_medium=raw_message&utm_campaign=first_launch', id='45iSS8KnJ9tL1ilPg3dL9A', score=0.1835256814956665, published_date='2023-01-01', author=None, extract=None),
Metaphor is a search engine fully designed to be used by LLMs. You can search and then get the contents for any page.
Metaphor is a search engine fully designed to be used by LLMs. You can search and then get the contents for any page. ->: similar to a given URL.        The url passed in should be a URL returned from `search`    """    return client.find_similar(url, num_results=5)tools = [search, get_contents, find_similar]Use in an agent‚Äãfrom langchain.chat_models import ChatOpenAIllm = ChatOpenAI(temperature=0)from langchain.agents import OpenAIFunctionsAgentfrom langchain.schema import SystemMessagesystem_message = SystemMessage(content="You are a web researcher who uses search engines to look up information.")prompt = OpenAIFunctionsAgent.create_prompt(system_message=system_message)agent = OpenAIFunctionsAgent(llm=llm, tools=tools, prompt=prompt)from langchain.agents import AgentExecutoragent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True)agent_executor.run("Find the hottest AI agent startups and what they do")            > Entering new AgentExecutor chain...        Invoking: `search` with `{'query': 'hottest AI agent startups'}`            SearchResponse(results=[Result(title='A Search Engine for Machine Intelligence', url='https://bellow.ai/', id='bdYc6hvHww_JvLv9k8NhPA', score=0.19460266828536987, published_date='2023-01-01', author=None, extract=None), Result(title='Adept: Useful General Intelligence', url='https://www.adept.ai/', id='aNBppxBZvQRZMov6sFVj9g', score=0.19103890657424927, published_date='2000-01-01', author=None, extract=None), Result(title='HiOperator | Generative AI-Enhanced Customer Service', url='https://www.hioperator.com/', id='jieb6sB53mId3EDo0z-SDw', score=0.18549954891204834, published_date='2000-01-01', author=None, extract=None), Result(title='Home - Stylo', url='https://www.askstylo.com/', id='kUiCuCjJYMD4N0NXdCtqlQ', score=0.1837376356124878, published_date='2000-01-01', author=None, extract=None), Result(title='DirectAI', url='https://directai.io/?utm_source=twitter&utm_medium=raw_message&utm_campaign=first_launch', id='45iSS8KnJ9tL1ilPg3dL9A', score=0.1835256814956665, published_date='2023-01-01', author=None, extract=None),