[PROTOTYPE] Improve formatting of agent prompt and response outputs#897
[PROTOTYPE] Improve formatting of agent prompt and response outputs#897LasmarKhalifa wants to merge 1 commit into
Conversation
| header = "[#{block[:header]}]" | ||
| content = block[:content] | ||
| separator = "-" * 40 | ||
| Roast::Log.logger.info { "#{format_path(event)} ↓\n\n#{header}\n#{separator}\n#{content}\n#{separator}" } |
There was a problem hiding this comment.
I'd like to see what it looks like to put the header on the same line as the prefix, and then {separator}\n{content}\n{separator} below.
Also lets consider how it looks with --- separators before and after, as you've done here, vs vvv before and ^^^ after separators
There was a problem hiding this comment.
Also, I think it'd be better to remove the extra blank like between the header and the block body, and also try putting header on the first line (with the prefix) instead of after it. I'm curious if that will look cleaner.
Which line the header goes on I feel less strongly about, but I do prefer not having the extra blank line. I think it makes the log output feel unnecessarily disconnected, and actually makes the body of the block look less associated with the header line, and more associated with whatever log line follows it


Part of the exploration for #896
Prototype for creating a new event type for long multi-line messages and applying it to prompts and response messages for agent cogs.
This is just to demonstrate the functionality and proposed implementation.
Old formatting:

New formatting:
