feat: implement EnhancedFormatter for structured tool outputs #formatting

This commit is contained in:
Justin Skywork 2026-03-23 17:54:43 -04:00
parent fa65fa3ddc
commit d1c656e4ac

View file

@ -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 ""