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

Function defs

core/src/tools/selector.rs:169–178  ·  view source on GitHub ↗
(names: &[&str])

Source from the content-addressed store, hash-verified

167 use serde_json::json;
168
169 fn defs(names: &[&str]) -> Vec<ToolDefinition> {
170 names
171 .iter()
172 .map(|name| ToolDefinition {
173 name: (*name).to_string(),
174 description: format!("{name} tool"),
175 parameters: json!({"type": "object"}),
176 })
177 .collect()
178 }
179
180 #[test]
181 fn default_turn_keeps_core_and_hides_special_tools() {

Calls

no outgoing calls