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

Method trust_tools

crates/chat-cli/src/cli/agent/mod.rs:455–459  ·  view source on GitHub ↗

This function assumes the relevant transformation to the tool names have been done: - model tool name -> host tool name - custom tool namespacing

(&mut self, tool_names: Vec<String>)

Source from the content-addressed store, hash-verified

453 /// - model tool name -> host tool name
454 /// - custom tool namespacing
455 pub fn trust_tools(&mut self, tool_names: Vec<String>) {
456 if let Some(agent) = self.get_active_mut() {
457 agent.allowed_tools.extend(tool_names);
458 }
459 }
460
461 /// This function assumes the relevant transformation to the tool names have been done:
462 /// - model tool name -> host tool name

Callers 2

handle_inputMethod · 0.80
executeMethod · 0.80

Calls 1

get_active_mutMethod · 0.80

Tested by

no test coverage detected