pub fn format_reply(reply: &str, json: bool) -> StringExpand description
Format an agent’s final reply for output. json wraps it as
{"result": "..."}; otherwise the reply is returned as-is. The
stream-json form is the live AgentEvent stream via an EventSink.