MCPcopy Create free account
hub / github.com/RUC-NLPIR/WebThinker / get_cache_path

Function get_cache_path

scripts/lcb_runner/utils/path_utils.py:15–21  ·  view source on GitHub ↗
(model_repr:str, args)

Source from the content-addressed store, hash-verified

13
14
15def get_cache_path(model_repr:str, args) -> str:
16 scenario: Scenario = args.scenario
17 n = args.n
18 temperature = args.temperature
19 path = f"cache/{model_repr}/{scenario}_{n}_{temperature}.json"
20 ensure_dir(path)
21 return path
22
23
24def get_output_path(model_repr:str, args) -> str:

Callers 1

__init__Method · 0.90

Calls 1

ensure_dirFunction · 0.85

Tested by

no test coverage detected