We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5715668 commit 4f8134aCopy full SHA for 4f8134a
rdagent/core/utils.py
@@ -125,7 +125,9 @@ def cache_decorator(func: Callable) -> Callable:
125
@functools.wraps(func)
126
def cache_wrapper(*args: Any, **kwargs: Any) -> Any:
127
if RD_AGENT_SETTINGS.cache_with_pickle:
128
- target_folder = Path(RD_AGENT_SETTINGS.pickle_cache_folder_path_str) / func.__module__
+ target_folder = (
129
+ Path(RD_AGENT_SETTINGS.pickle_cache_folder_path_str) / f"{func.__module__}.{func.__name__}"
130
+ )
131
target_folder.mkdir(parents=True, exist_ok=True)
132
hash_key = hash_func(*args, **kwargs)
133
if hash_key is not None and (target_folder / (hash_key + ".pkl")).exists():
0 commit comments