Class that represents an output parser for the ChatConversationalAgent class. It extends the AgentActionOutputParser class and provides methods for parsing the output of the MRKL chain into agent actions.

Hierarchy (view full)

Constructors

Methods

  • Returns the format instructions as a string. If the 'raw' option is true, returns the raw FORMAT_INSTRUCTIONS.

    Returns string

    Format instructions as a string.

  • Parses the given text into an AgentAction or AgentFinish object. If an output fixing parser is defined, uses it to parse the text.

    Parameters

    • text: string

      Text to parse.

    Returns Promise<AgentAction | AgentFinish>

    Promise that resolves to an AgentAction or AgentFinish object.

Generated using TypeDoc