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

Function program_terms_enable_program_tool

core/src/tools/selector.rs:214–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212
213 #[test]
214 fn program_terms_enable_program_tool() {
215 let selected = select_tools_for_prompt(
216 &defs(&["read", "grep", "program"]),
217 "build a repo map before changing the module",
218 );
219 let names: Vec<_> = selected.iter().map(|t| t.name.as_str()).collect();
220
221 assert!(names.contains(&"read"));
222 assert!(names.contains(&"grep"));
223 assert!(names.contains(&"program"));
224 }
225
226 #[test]
227 fn web_and_git_terms_enable_relevant_tools() {

Callers

nothing calls this directly

Calls 3

select_tools_for_promptFunction · 0.85
defsFunction · 0.85
as_strMethod · 0.45

Tested by

no test coverage detected