Return the string type key uniquely identifying multi or single action agents.
Return the string type key uniquely identifying this class of agent.
Constructs the agent's scratchpad, which is a string representation of the agent's previous steps.
Array of AgentStep instances representing the agent's previous steps.
Promise resolving to a string representing the agent's scratchpad.
Name of tool to use to terminate the chain.
Prefix to append the LLM call with.
Prefix to append the observation with.
Decide what to do given some input.
Steps the LLM has taken so far, along with observations from each.
User inputs.
OptionalcallbackManager: anyCallback manager to use for this call.
Action specifying what tool to use.
Prepare the agent for output, if needed
Return response when agent has been stopped due to max iterations
OptionalcallbackManager: anyStaticcreateCreate prompt in the style of the zero shot agent.
List of tools the agent will have access to, used to format the prompt.
Optionalargs: ChatCreatePromptArgsArguments to create the prompt with.
Interface for arguments used to create a chat prompt.
OptionalformatInstructions?: stringFormattable string to use as the instructions template.
OptionalhumanMessageTemplate?: stringString to use directly as the human message template.
OptionalinputVariables?: string[]List of input variables the final prompt will expect.
Optionalprefix?: stringString to put before the list of tools.
Optionalsuffix?: stringString to put after the list of tools.
StaticdeserializeLoad an agent from a json-like object describing it.
StaticfromCreates a ChatAgent instance using a language model, tools, and optional arguments.
BaseLanguageModelInterface instance to use in the agent.
Array of Tool instances to include in the agent.
Optionalargs: ChatCreatePromptArgs & AgentArgsOptional arguments to customize the agent and prompt.
ChatAgent instance
StaticgetReturns a default output parser for the ChatAgent.
Optional_fields: OutputParserArgsOptional OutputParserArgs to customize the output parser.
ChatAgentOutputParser instance
Staticlc_StaticvalidateValidates that all tools have descriptions. Throws an error if a tool without a description is found.
Array of Tool instances to validate.
void
Agent for the MRKL chain.