AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

write_to_file arguments are printed on a single line, which is hard to read

Open feffy380 opened this issue 1 year ago • 6 comments

Duplicates

  • [X] I have searched the existing issues

Summary 💡

When the current COMMAND is write_to_file (and possibly others), large multiline arguments should be printed as multiple lines for readability.

Examples 🌈

Current behavior:

NEXT ACTION:  COMMAND = write_to_file ARGUMENTS = {'file': 'test.txt', 'text': 'Hello\nWorld'}

Expected behavior (or something similar):

NEXT ACTION:  COMMAND = write_to_file
ARGUMENTS = {'file': 'test.txt', 'text':
  Hello
  World
}

Motivation 🔦

Currently, the arguments for NEXT ACTION are a simple json dump, which combines all the lines into a single long string. I'd like to be able to review what write_to_file is doing, which is difficult when the text isn't formatted.

feffy380 avatar Apr 18 '23 03:04 feffy380