Agent that calls the language model and deciding the action.
This is driven by a LLMChain. The prompt in the LLMChain MUST include a variable called "agent_scratchpad" where the agent can put its intermediary work.
Agent()LLMChain to use for agent.
Output parser to use for agent.
Allowed tools for the agent. If None, all tools are allowed.
Return values of the agent.
Return the input keys.
Prefix to append the observation with.
Prefix to append the LLM call with.
Return dictionary representation of agent.
Get allowed tools.
Given input, decided what to do.
Async given input, decided what to do.
Create the full inputs for the LLMChain from intermediate steps.
Validate that prompt matches format.
Create a prompt for this class.
Construct an agent from an LLM and tools.
Return response when agent has been stopped due to max iterations.
Return logging kwargs for tool run.