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.
The string to be parsed.
A Promise that resolves to an AutoGPTAction object.
Generated using TypeDoc
Class responsible for parsing the output of AutoGPT. It extends the BaseOutputParser class.