MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / execute

Method execute

atomic-repository/src/ai/tools.rs:839–849  ·  view source on GitHub ↗
(&self, call: &ToolCall)

Source from the content-addressed store, hash-verified

837 }
838
839 fn execute(&self, call: &ToolCall) -> Result<String, String> {
840 match call.name.as_str() {
841 "kg_search" => self.exec_kg_search(&call.arguments),
842 "kg_neighbors" => self.exec_kg_neighbors(&call.arguments),
843 "read_file" => self.exec_read_file(&call.arguments),
844 "code_search" => self.exec_code_search(&call.arguments),
845 "vault_read" => self.exec_vault_read(&call.arguments),
846 "list_entities" => self.exec_list_entities(&call.arguments),
847 other => Err(format!("unknown tool: {other}")),
848 }
849 }
850}
851
852impl<'a> RepoToolExecutor<'a> {

Callers 2

run_tool_loopFunction · 0.45
test_echo_executorFunction · 0.45

Calls 7

exec_kg_searchMethod · 0.80
exec_kg_neighborsMethod · 0.80
exec_read_fileMethod · 0.80
exec_code_searchMethod · 0.80
exec_vault_readMethod · 0.80
exec_list_entitiesMethod · 0.80
as_strMethod · 0.45

Tested by 1

test_echo_executorFunction · 0.36