Skip to content

Commit 4516707

Browse files
Update load_full_source default value and increase max_depth in list_directory_tree function
1 parent 9ae8326 commit 4516707

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/smolagents/bp_thinkers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ def evolutive_problem_solver_folder(p_coder_model,
608608
mixer_model = None,
609609
secondary_improvement_model = None,
610610
planning_interval = DEFAULT_THINKER_PLANNING_INTERVAL,
611-
load_full_source = True
611+
load_full_source = False
612612
):
613613
def get_local_agent(p_local_model = None):
614614
if p_local_model is None: p_local_model = p_coder_model

src/smolagents/bp_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ def create_filename(topic:str, extension:str=".md") -> str:
14951495
return filename + extension
14961496

14971497
@tool
1498-
def list_directory_tree(folder_path: str, max_depth: int = 3, show_files: bool = True, add_function_signatures: bool = False) -> str:
1498+
def list_directory_tree(folder_path: str, max_depth: int = 6, show_files: bool = True, add_function_signatures: bool = False) -> str:
14991499
"""
15001500
Creates a tree-like view of a directory structure. This is useful for understanding
15011501
project structure without loading all file contents, saving context.

0 commit comments

Comments
 (0)