14
14
}
15
15
16
16
DEFAULT_EXCLUDE_PATTERNS = {
17
+ "assets/*" , "data/*" , "examples/*" , "images/*" , "public/*" , "static/*" , "temp/*" ,
18
+ "docs/*" ,
17
19
"venv/*" , ".venv/*" , "*test*" , "tests/*" , "docs/*" , "examples/*" , "v1/*" ,
18
- "dist/*" , "build/*" , "experimental/*" , "deprecated/*" ,
20
+ "dist/*" , "build/*" , "experimental/*" , "deprecated/*" , "misc/*" ,
19
21
"legacy/*" , ".git/*" , ".github/*" , ".next/*" , ".vscode/*" , "obj/*" , "bin/*" , "node_modules/*" , "*.log"
20
22
}
21
23
@@ -36,6 +38,10 @@ def main():
36
38
parser .add_argument ("-s" , "--max-size" , type = int , default = 100000 , help = "Maximum file size in bytes (default: 100000, about 100KB)." )
37
39
# Add language parameter for multi-language support
38
40
parser .add_argument ("--language" , default = "english" , help = "Language for the generated tutorial (default: english)" )
41
+ # Add use_cache parameter to control LLM caching
42
+ parser .add_argument ("--no-cache" , action = "store_true" , help = "Disable LLM response caching (default: caching enabled)" )
43
+ # Add max_abstraction_num parameter to control the number of abstractions
44
+ parser .add_argument ("--max-abstractions" , type = int , default = 10 , help = "Maximum number of abstractions to identify (default: 20)" )
39
45
40
46
args = parser .parse_args ()
41
47
@@ -61,6 +67,12 @@ def main():
61
67
62
68
# Add language for multi-language support
63
69
"language" : args .language ,
70
+
71
+ # Add use_cache flag (inverse of no-cache flag)
72
+ "use_cache" : not args .no_cache ,
73
+
74
+ # Add max_abstraction_num parameter
75
+ "max_abstraction_num" : args .max_abstractions ,
64
76
65
77
# Outputs will be populated by the nodes
66
78
"files" : [],
@@ -73,6 +85,7 @@ def main():
73
85
74
86
# Display starting message with repository/directory and language
75
87
print (f"Starting tutorial generation for: { args .repo or args .dir } in { args .language .capitalize ()} language" )
88
+ print (f"LLM caching: { 'Disabled' if args .no_cache else 'Enabled' } " )
76
89
77
90
# Create the flow instance
78
91
tutorial_flow = create_tutorial_flow ()
0 commit comments