Class responsible for parsing the output of AutoGPT. It extends the BaseOutputParser class.

Hierarchy

Constructors

Methods

Constructors

Methods

  • Method not implemented in the class and will throw an error if called. It is likely meant to be overridden in subclasses to provide specific format instructions.

    Returns string

    Throws an error.

  • Asynchronous method that takes a string as input and attempts to parse it into an AutoGPTAction object. If the input string cannot be parsed directly, the method tries to preprocess the string using the preprocessJsonInput function and parse it again. If parsing fails again, it returns an AutoGPTAction object with an error message.

    Parameters

    • text: string

      The string to be parsed.

    Returns Promise<AutoGPTAction>

    A Promise that resolves to an AutoGPTAction object.

Generated using TypeDoc