package runtime import ( "testing" agentllm "agent-native/runtime/llm" ) func TestApplyToolSelectionRemovesName(t *testing.T) { decls := []agentllm.ToolDecl{{Name: "read_file"}, {Name: "write_file"}} got := applyToolSelection(decls, "-write_file,+missing") if len(got) != 1 || got[0].Name != "read_file" { t.Fatalf("%+v", got) } if same := applyToolSelection(decls, ""); len(same) != 2 { t.Fatalf("empty: %+v", same) } }