Skip to main content

format_reply

Function format_reply 

Source
pub fn format_reply(reply: &str, json: bool) -> String
Expand 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.