1414}
1515
1616DEFAULT_EXCLUDE_PATTERNS = {
17+ "assets/*" , "data/*" , "examples/*" , "images/*" , "public/*" , "static/*" , "temp/*" ,
18+ "docs/*" ,
1719 "venv/*" , ".venv/*" , "*test*" , "tests/*" , "docs/*" , "examples/*" , "v1/*" ,
18- "dist/*" , "build/*" , "experimental/*" , "deprecated/*" ,
20+ "dist/*" , "build/*" , "experimental/*" , "deprecated/*" , "misc/*" ,
1921 "legacy/*" , ".git/*" , ".github/*" , ".next/*" , ".vscode/*" , "obj/*" , "bin/*" , "node_modules/*" , "*.log"
2022}
2123
@@ -36,6 +38,10 @@ def main():
3638 parser .add_argument ("-s" , "--max-size" , type = int , default = 100000 , help = "Maximum file size in bytes (default: 100000, about 100KB)." )
3739 # Add language parameter for multi-language support
3840 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)" )
3945
4046 args = parser .parse_args ()
4147
@@ -61,6 +67,12 @@ def main():
6167
6268 # Add language for multi-language support
6369 "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 ,
6476
6577 # Outputs will be populated by the nodes
6678 "files" : [],
@@ -73,6 +85,7 @@ def main():
7385
7486 # Display starting message with repository/directory and language
7587 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' } " )
7689
7790 # Create the flow instance
7891 tutorial_flow = create_tutorial_flow ()
0 commit comments