MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / to_str_pretty

Method to_str_pretty

crates/chat-cli/src/cli/agent/mod.rs:294–298  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

292 }
293
294 pub fn to_str_pretty(&self) -> eyre::Result<String> {
295 let mut agent_clone = self.clone();
296 agent_clone.freeze();
297 Ok(serde_json::to_string_pretty(&agent_clone)?)
298 }
299
300 /// Resolves the prompt field, handling file:// URIs if present.
301 /// Returns the prompt content as-is if it doesn't start with file://,

Callers 7

executeMethod · 0.80
get_test_agentsFunction · 0.80
loadMethod · 0.80
create_agentFunction · 0.80
migrateFunction · 0.80

Calls 2

freezeMethod · 0.80
cloneMethod · 0.45