that require multiple inputs.prefix = """Answer the following questions as best you can. You have access to the following tools:"""suffix = """When answering, you MUST speak in the following language: {language}.Question: {input}{agent_scratchpad}"""prompt = ZeroShotAgent.create_prompt(    tools,    prefix=prefix,    suffix=suffix,    input_variables=["input", "language", "agent_scratchpad"],)llm_chain = LLMChain(llm=OpenAI(temperature=0), prompt=prompt)agent = ZeroShotAgent(llm_chain=llm_chain, tools=tools)agent_executor = AgentExecutor.from_agent_and_tools(    agent=agent, tools=tools, verbose=True)agent_executor.run(    input="How many people live in canada as of 2023?", language="italian")            > Entering new AgentExecutor chain...    Thought: I should look for recent population estimates.    Action: Search    Action Input: Canada population 2023    Observation: 39,566,248    Thought: I should double check this number.    Action: Search    Action Input: Canada population estimates 2023    Observation: Canada's population was estimated at 39,566,248 on January 1, 2023, after a record population growth of 1,050,110 people from January 1, 2022, to January 1, 2023.    Thought: I now know the final answer.    Final Answer: La popolazione del Canada √® stata stimata a 39.566.248 il 1¬∞ gennaio 2023, dopo un record di crescita demografica di 1.050.110 persone dal 1¬∞ gennaio 2022 al 1¬∞ gennaio 2023.        > Finished chain.    'La popolazione del Canada √® stata stimata a 39.566.248 il 1¬∞ gennaio 2023, dopo un record di crescita demografica di 1.050.110 persone dal 1¬∞ gennaio 2022 al 1¬∞ gennaio 2023.'PreviousCustom LLM Agent (with a ChatModel)NextCustom multi-action agentCustom LLMChainMultiple inputsCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
This notebook goes through how to create your own custom MRKL agent.
This notebook goes through how to create your own custom MRKL agent. ->: that require multiple inputs.prefix = """Answer the following questions as best you can. You have access to the following tools:"""suffix = """When answering, you MUST speak in the following language: {language}.Question: {input}{agent_scratchpad}"""prompt = ZeroShotAgent.create_prompt(    tools,    prefix=prefix,    suffix=suffix,    input_variables=["input", "language", "agent_scratchpad"],)llm_chain = LLMChain(llm=OpenAI(temperature=0), prompt=prompt)agent = ZeroShotAgent(llm_chain=llm_chain, tools=tools)agent_executor = AgentExecutor.from_agent_and_tools(    agent=agent, tools=tools, verbose=True)agent_executor.run(    input="How many people live in canada as of 2023?", language="italian")            > Entering new AgentExecutor chain...    Thought: I should look for recent population estimates.    Action: Search    Action Input: Canada population 2023    Observation: 39,566,248    Thought: I should double check this number.    Action: Search    Action Input: Canada population estimates 2023    Observation: Canada's population was estimated at 39,566,248 on January 1, 2023, after a record population growth of 1,050,110 people from January 1, 2022, to January 1, 2023.    Thought: I now know the final answer.    Final Answer: La popolazione del Canada √® stata stimata a 39.566.248 il 1¬∞ gennaio 2023, dopo un record di crescita demografica di 1.050.110 persone dal 1¬∞ gennaio 2022 al 1¬∞ gennaio 2023.        > Finished chain.    'La popolazione del Canada √® stata stimata a 39.566.248 il 1¬∞ gennaio 2023, dopo un record di crescita demografica di 1.050.110 persone dal 1¬∞ gennaio 2022 al 1¬∞ gennaio 2023.'PreviousCustom LLM Agent (with a ChatModel)NextCustom multi-action agentCustom LLMChainMultiple inputsCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.