OptionalstopReturn the string type key uniquely identifying multi or single action agents.
Return the string type key uniquely identifying this class of agent.
Decide what to do given some input.
Steps the LLM has taken so far, along with observations from each.
User inputs.
OptionalcallbackManager: anyCallback manager.
Action specifying what tool to use.
Prepare the agent for output, if needed
Return response when agent has been stopped due to max iterations
Optional_callbackManager: any
Class representing a single action agent using a LLMChain in LangChain. Extends the BaseSingleActionAgent class and provides methods for planning agent actions based on LLMChain outputs.
Example