langchain_experimental.autonomous_agents.autogpt.output_parser
.preprocess_json_input¶
- langchain_experimental.autonomous_agents.autogpt.output_parser.preprocess_json_input(input_str: str) str [source]¶
Preprocesses a string to be parsed as json.
Replace single backslashes with double backslashes, while leaving already escaped ones intact.
- Parameters
input_str – String to be preprocessed
- Returns
Preprocessed string