This pull request includes changes to enhance logging and output formatting in the agent module. Key updates involve introducing a new logging function and improving the readability of log messages by using rich formatting.
Logging Enhancements:
src/agent/completions.py: Replaced logger.info with log_completion to log AI responses, and changed some log levels from info to debug. [1][2]
src/agent/logging.py: Added a new function log_completion to log AI responses and tool calls using rich panels for better readability. [1][2]
Output Formatting:
src/agent/tools.py: Updated write_code_to_file to print test outputs using rich panels for improved formatting.
Import Adjustments:
src/agent/completions.py, src/agent/tools.py: Added necessary imports for log_completion and rich panel formatting. [1][2]
This pull request includes changes to enhance logging and output formatting in the
agent
module. Key updates involve introducing a new logging function and improving the readability of log messages by using rich formatting.Logging Enhancements:
src/agent/completions.py
: Replacedlogger.info
withlog_completion
to log AI responses, and changed some log levels frominfo
todebug
. [1] [2]src/agent/logging.py
: Added a new functionlog_completion
to log AI responses and tool calls using rich panels for better readability. [1] [2]Output Formatting:
src/agent/tools.py
: Updatedwrite_code_to_file
to print test outputs using rich panels for improved formatting.Import Adjustments:
src/agent/completions.py
,src/agent/tools.py
: Added necessary imports forlog_completion
and rich panel formatting. [1] [2]