agent-tools-interface 0.7.8

Agent Tools Interface — secure CLI for AI agent tool execution
Documentation
1
2
3
4
5
6
use serde_json::Value;

/// Format a JSON value as pretty-printed JSON.
pub fn format(value: &Value) -> String {
    serde_json::to_string_pretty(value).unwrap_or_else(|_| value.to_string())
}