Langchain Agents‚ÄãYou can use the Tool class from the langchain.agents module to integrate the DataForSeoAPIWrapper with a langchain agent. The Tool class encapsulates a function that the agent can call.from langchain.agents import Toolsearch = DataForSeoAPIWrapper(    top_count=3,    json_result_types=["organic"],    json_result_fields=["title", "description", "type"],)tool = Tool(    name="google-search-answer",    description="My new answer tool",    func=search.run,)json_tool = Tool(    name="google-search-json",    description="My new json tool",    func=search.results,)PreviousDall-E Image GeneratorNextDuckDuckGo SearchSetting up the API credentialsThe Difference Between run and resultsGetting Results as JSONCustomizing Location and LanguageCustomizing the Search EngineCustomizing the Search TypeIntegration with Langchain AgentsCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
This notebook demonstrates how to use the DataForSeo API to obtain search engine results. The DataForSeo API retrieves SERP from most popular search engines like Google, Bing, Yahoo. It also allows to get SERPs from different search engine types like Maps, News, Events, etc.
This notebook demonstrates how to use the DataForSeo API to obtain search engine results. The DataForSeo API retrieves SERP from most popular search engines like Google, Bing, Yahoo. It also allows to get SERPs from different search engine types like Maps, News, Events, etc. ->: Langchain Agents‚ÄãYou can use the Tool class from the langchain.agents module to integrate the DataForSeoAPIWrapper with a langchain agent. The Tool class encapsulates a function that the agent can call.from langchain.agents import Toolsearch = DataForSeoAPIWrapper(    top_count=3,    json_result_types=["organic"],    json_result_fields=["title", "description", "type"],)tool = Tool(    name="google-search-answer",    description="My new answer tool",    func=search.run,)json_tool = Tool(    name="google-search-json",    description="My new json tool",    func=search.results,)PreviousDall-E Image GeneratorNextDuckDuckGo SearchSetting up the API credentialsThe Difference Between run and resultsGetting Results as JSONCustomizing Location and LanguageCustomizing the Search EngineCustomizing the Search TypeIntegration with Langchain AgentsCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.