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

Method validate

crates/chat-cli/src/cli/chat/tools/fs_read.rs:68–76  ·  view source on GitHub ↗
(&mut self, os: &Os)

Source from the content-addressed store, hash-verified

66
67impl FsRead {
68 pub async fn validate(&mut self, os: &Os) -> Result<()> {
69 if self.operations.is_empty() {
70 bail!("At least one operation must be provided");
71 }
72 for op in &mut self.operations {
73 op.validate(os).await?;
74 }
75 Ok(())
76 }
77
78 pub async fn queue_description(&self, os: &Os, updates: &mut impl Write) -> Result<()> {
79 if self.operations.len() == 1 {

Callers 1

Calls 8

sanitize_path_tool_argFunction · 0.85
pre_processFunction · 0.85
format_pathFunction · 0.85
symlink_metadataMethod · 0.80
current_dirMethod · 0.80
is_supported_image_typeFunction · 0.50
is_emptyMethod · 0.45
existsMethod · 0.45

Tested by 1