-
Notifications
You must be signed in to change notification settings - Fork 68
[PROTOTYPE] Improve formatting of agent prompt and response outputs #897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -129,6 +129,15 @@ def handle_stdout_event(event) | |
| Roast::Log.logger.info { "#{format_path(event)} ❯ #{event[:stdout]}" } | ||
| end | ||
|
|
||
| #: (Event) -> void | ||
| def handle_block_event(event) | ||
| block = event[:block] | ||
| header = "[#{block[:header]}]" | ||
| content = block[:content] | ||
| separator = "-" * 40 | ||
| Roast::Log.logger.info { "#{format_path(event)} ↓\n\n#{header}\n#{separator}\n#{content}\n#{separator}" } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd like to see what it looks like to put the header on the same line as the prefix, and then Also lets consider how it looks with
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 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
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| end | ||
|
|
||
| #: (Event) -> void | ||
| def handle_unknown_event(event) | ||
| Roast::Log.logger.unknown(event.inspect) | ||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.