mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-22 11:15:42 +00:00
18 lines
449 B
Python
18 lines
449 B
Python
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 ""
|