Skip to content

Commit 3023927

Browse files
Less default tools.
1 parent b1bf3be commit 3023927

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

src/smolagents/bp_thinkers.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,24 @@
3333
min_compression_chars=get_env_int("BPSA_COMPRESSION_MIN_CHARS", 4096),
3434
)
3535

36-
DEFAULT_THINKER_TOOLS = [
37-
copy_file, is_file,
36+
# tools that can be replaced via terminal
37+
# copy_file, is_file,
38+
# mkdir, delete_file, delete_directory,
39+
# read_first_n_lines, read_last_n_lines,
40+
41+
# Tools that agents do not use
42+
# remove_pascal_comments_from_string, pascal_interface_to_string,
43+
# source_code_to_string, string_to_source_code, inject_tree,
44+
45+
DEFAULT_THINKER_TOOLS = [
3846
print_file_lines, get_line_from_file, count_file_lines,
3947
read_file_range, insert_lines_into_file, replace_line_in_file,
40-
remove_pascal_comments_from_string, pascal_interface_to_string,
41-
source_code_to_string, string_to_source_code,
4248
run_os_command, replace_in_file, replace_in_file_from_files,
4349
get_file_size, load_string_from_file, save_string_to_file, append_string_to_file,
44-
list_directory_tree, inject_tree, search_in_files, get_file_info, list_directory,
50+
list_directory_tree, search_in_files, get_file_info, list_directory,
4551
extract_function_signatures, compare_files, count_lines_of_code,
46-
mkdir, delete_file, delete_directory, compare_folders,
47-
read_first_n_lines, read_last_n_lines, delete_lines_from_file]
52+
compare_folders,
53+
delete_lines_from_file]
4854

4955
#TODO: include force_directories into the DEFAULT_THINKER_TOOLS (it now fails adding)
5056

0 commit comments

Comments
 (0)