Human are AGI so they can certainly be used as a tool to help out AI agent when it is confused.

```
from langchain.agents import AgentType, initialize_agent, load_toolsfrom langchain_openai import ChatOpenAI, OpenAIllm = ChatOpenAI(temperature=0.0)math_llm = OpenAI(temperature=0.0)tools = load_tools(    ["human", "llm-math"],    llm=math_llm,)agent_chain = initialize_agent(    tools,    llm,    agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,    verbose=True,)
```

In the above code you can see the tool takes input directly from command line. You can customize `prompt_func` and `input_func` according to your need (as shown below).

```
> Entering new AgentExecutor chain...I don't know Eric's surname, so I should ask a human for guidance.Action: HumanAction Input: "What is Eric's surname?"What is Eric's surname? ZhuObservation: ZhuThought:I now know Eric's surname is Zhu.Final Answer: Eric's surname is Zhu.> Finished chain.
```

By default, the `HumanInputRun` tool uses the python `input` function to get input from the user. You can customize the input\_func to be anything you’d like. For instance, if you want to accept multi-line input, you could do the following:

```
> Entering new AgentExecutor chain...I should ask a human for guidanceAction: HumanAction Input: "Can you help me attribute a quote?"Can you help me attribute a quote?Insert your text. Enter 'q' or press Ctrl-D (or Ctrl-Z on Windows) to end. vini vidi vici qObservation: vinividiviciThought:I need to provide more context about the quoteAction: HumanAction Input: "The quote is 'Veni, vidi, vici'"The quote is 'Veni, vidi, vici'Insert your text. Enter 'q' or press Ctrl-D (or Ctrl-Z on Windows) to end. oh who said it  qObservation: oh who said it Thought:I can use DuckDuckGo Search to find out who said the quoteAction: DuckDuckGo SearchAction Input: "Who said 'Veni, vidi, vici'?"Observation: Updated on September 06, 2019. "Veni, vidi, vici" is a famous phrase said to have been spoken by the Roman Emperor Julius Caesar (100-44 BCE) in a bit of stylish bragging that impressed many of the writers of his day and beyond. The phrase means roughly "I came, I saw, I conquered" and it could be pronounced approximately Vehnee, Veedee ... Veni, vidi, vici (Classical Latin: [weːniː wiːdiː wiːkiː], Ecclesiastical Latin: [ˈveni ˈvidi ˈvitʃi]; "I came; I saw; I conquered") is a Latin phrase used to refer to a swift, conclusive victory.The phrase is popularly attributed to Julius Caesar who, according to Appian, used the phrase in a letter to the Roman Senate around 47 BC after he had achieved a quick victory in his short ... veni, vidi, vici Latin quotation from Julius Caesar ve· ni, vi· di, vi· ci ˌwā-nē ˌwē-dē ˈwē-kē ˌvā-nē ˌvē-dē ˈvē-chē : I came, I saw, I conquered Articles Related to veni, vidi, vici 'In Vino Veritas' and Other Latin... Dictionary Entries Near veni, vidi, vici Venite veni, vidi, vici Venizélos See More Nearby Entries Cite this Entry Style The simplest explanation for why veni, vidi, vici is a popular saying is that it comes from Julius Caesar, one of history's most famous figures, and has a simple, strong meaning: I'm powerful and fast. But it's not just the meaning that makes the phrase so powerful. Caesar was a gifted writer, and the phrase makes use of Latin grammar to ... One of the best known and most frequently quoted Latin expression, veni, vidi, vici may be found hundreds of times throughout the centuries used as an expression of triumph. The words are said to have been used by Caesar as he was enjoying a triumph.Thought:I now know the final answerFinal Answer: Julius Caesar said the quote "Veni, vidi, vici" which means "I came, I saw, I conquered".> Finished chain.
```

```
'Julius Caesar said the quote "Veni, vidi, vici" which means "I came, I saw, I conquered".'
```