allowed_tools=tool_names)Use the Agent‚ÄãNow we can use it!agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools, verbose=True)agent_executor.run("Search for Leo DiCaprio's girlfriend on the internet.")    > Entering new AgentExecutor chain...    Thought: I should use a reliable search engine to get accurate information.    Action: Search    Action Input: "Leo DiCaprio girlfriend"    Observation:He went on to date Gisele B√ºndchen, Bar Refaeli, Blake Lively, Toni Garrn and Nina Agdal, among others, before finally settling down with current girlfriend Camila Morrone, who is 23 years his junior.    I have found the answer to the question.    Final Answer: Leo DiCaprio's current girlfriend is Camila Morrone.    > Finished chain.    "Leo DiCaprio's current girlfriend is Camila Morrone."PreviousCustom LLM agentNextCustom MRKL agentSet up environmentSet up toolsPrompt templateOutput parserSet up LLMDefine the stop sequenceSet up the AgentUse the AgentCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
This notebook goes through how to create your own custom agent based on a chat model.
This notebook goes through how to create your own custom agent based on a chat model. ->: allowed_tools=tool_names)Use the Agent‚ÄãNow we can use it!agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools, verbose=True)agent_executor.run("Search for Leo DiCaprio's girlfriend on the internet.")    > Entering new AgentExecutor chain...    Thought: I should use a reliable search engine to get accurate information.    Action: Search    Action Input: "Leo DiCaprio girlfriend"    Observation:He went on to date Gisele B√ºndchen, Bar Refaeli, Blake Lively, Toni Garrn and Nina Agdal, among others, before finally settling down with current girlfriend Camila Morrone, who is 23 years his junior.    I have found the answer to the question.    Final Answer: Leo DiCaprio's current girlfriend is Camila Morrone.    > Finished chain.    "Leo DiCaprio's current girlfriend is Camila Morrone."PreviousCustom LLM agentNextCustom MRKL agentSet up environmentSet up toolsPrompt templateOutput parserSet up LLMDefine the stop sequenceSet up the AgentUse the AgentCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.