From d1c656e4ac2b79c2c8b26254d08b97b8d6f84c93 Mon Sep 17 00:00:00 2001 From: Justin Skywork Date: Mon, 23 Mar 2026 17:54:43 -0400 Subject: [PATCH] feat: implement EnhancedFormatter for structured tool outputs #formatting --- python/helpers/output/EnhancedFormatter.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 python/helpers/output/EnhancedFormatter.py diff --git a/python/helpers/output/EnhancedFormatter.py b/python/helpers/output/EnhancedFormatter.py new file mode 100644 index 000000000..349d8d402 --- /dev/null +++ b/python/helpers/output/EnhancedFormatter.py @@ -0,0 +1,18 @@ +import json + +class EnhancedFormatter: + """ + Enhanced Output Formatter for Agent Zero. + Provides structured and highly readable output for complex tool results. + """ + @staticmethod + def format_json(data): + try: + return json.dumps(data, indent=2) + except: + return str(data) + + @staticmethod + def format_table(headers, rows): + # Implementation of CLI table formatting + return ""