MCPcopy Index your code
hub / github.com/AI45Lab/Code / len

Method len

core/src/tools/registry.rs:138–141  ·  view source on GitHub ↗

Get the number of registered tools

(&self)

Source from the content-addressed store, hash-verified

136
137 /// Get the number of registered tools
138 pub fn len(&self) -> usize {
139 let tools = self.tools.read().unwrap();
140 tools.len()
141 }
142
143 /// Check if registry is empty
144 pub fn is_empty(&self) -> bool {

Callers 15

tool_output_artifactFunction · 0.45
write_textMethod · 0.45
list_dirMethod · 0.45
prompt_mentions_toolFunction · 0.45
execute_script_programFunction · 0.45
execute_host_tool_jsonFunction · 0.45
is_emptyMethod · 0.45
record_trace_eventMethod · 0.45
compact_task_outputFunction · 0.45
executeMethod · 0.45
executeMethod · 0.45

Calls

no outgoing calls

Tested by 5

extract_acl_fieldFunction · 0.36
write_textMethod · 0.36
list_dirMethod · 0.36