MCPcopy Create free account
hub / github.com/AI45Lab/Code / contains

Method contains

core/src/tools/registry.rs:113–116  ·  view source on GitHub ↗

Check if a tool exists

(&self, name: &str)

Source from the content-addressed store, hash-verified

111
112 /// Check if a tool exists
113 pub fn contains(&self, name: &str) -> bool {
114 let tools = self.tools.read().unwrap();
115 tools.contains_key(name)
116 }
117
118 /// Get all tool definitions for LLM
119 pub fn definitions(&self) -> Vec<ToolDefinition> {

Callers 15

file_containsFunction · 0.80
validate_template_valueFunction · 0.80
template_placeholdersFunction · 0.80
tool_name_to_permissionFunction · 0.80
install_git_macosFunction · 0.80
install_git_linuxFunction · 0.80
get_statusFunction · 0.80
executeMethod · 0.80
is_retryable_statusMethod · 0.80
is_transient_errorFunction · 0.80
is_yoloMethod · 0.80

Calls

no outgoing calls