A class that provides a custom implementation for parsing the output of a StructuredChatAgent action. It extends the AgentActionOutputParser class and extracts the action and action input from the text output, returning an AgentAction or AgentFinish object.

Hierarchy (view full)

Constructors

Methods

  • Parses the given text and returns an AgentAction or AgentFinish object. If an OutputFixingParser is provided, it is used for parsing; otherwise, the base parser is used.

    Parameters

    • text: string

      The text to parse.

    Returns Promise<any>

    A Promise that resolves to an AgentAction or AgentFinish object.