Repository Analysis

huggingface/smolagents

🤗 smolagents: a barebones library for agents that think in code.

23.6 Moderate AI signal View on GitHub
23.6
Adjusted Score
23.6
Raw Score
100%
Time Factor
2026-05-29
Last Push
27,598
Stars
Python
Language
46,035
Lines of Code
175
Files
725
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 89MEDIUM 46LOW 589

Pattern Findings

725 matches across 15 categories. Click a row to expand file-level details.

Cross-File Repetition67 hits · 335 pts
SeverityFileLineSnippet
HIGHtests/test_utils.py0a valid tool function. args: input (str): input string.
HIGHtests/test_tool_validation.py0a valid tool function. args: input (str): input string.
HIGHtests/test_tool_validation.py0a valid tool function. args: input (str): input string.
HIGHtests/test_local_python_executor.py0def func(): pass function_class = func.__getattribute__("__class__") object_class = type.__getattribute__(function_class
HIGHtests/test_local_python_executor.py0def func(): pass function_class = func.__getattribute__("__class__") object_class = type.__getattribute__(function_class
HIGHtests/test_local_python_executor.py0def func(): pass function_class = func.__getattribute__("__class__") object_class = type.__getattribute__(function_class
HIGHtests/test_tools.py0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th
HIGHdocs/source/zh/tutorials/tools.md0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th
HIGHdocs/source/hi/tutorials/tools.md0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th
HIGHdocs/source/en/tutorials/tools.md0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th
HIGHdocs/source/zh/guided_tour.md0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th
HIGHdocs/source/hi/guided_tour.md0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th
HIGHdocs/source/ko/guided_tour.md0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th
HIGHdocs/source/en/guided_tour.md0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th
HIGHdocs/source/zh/_config.py0# installation ! pip install smolagents # to install from source instead of the last release, comment the command above
HIGHdocs/source/hi/_config.py0# installation ! pip install smolagents # to install from source instead of the last release, comment the command above
HIGHdocs/source/ko/_config.py0# installation ! pip install smolagents # to install from source instead of the last release, comment the command above
HIGHdocs/source/es/_config.py0# installation ! pip install smolagents # to install from source instead of the last release, comment the command above
HIGHdocs/source/en/_config.py0# installation ! pip install smolagents # to install from source instead of the last release, comment the command above
HIGHdocs/source/zh/examples/web_browser.md0searches for text on the current page via ctrl + f and jumps to the nth occurrence. args: text: the text to search for n
HIGHdocs/source/en/examples/web_browser.md0searches for text on the current page via ctrl + f and jumps to the nth occurrence. args: text: the text to search for n
HIGHsrc/smolagents/vision_web_browser.py0searches for text on the current page via ctrl + f and jumps to the nth occurrence. args: text: the text to search for n
HIGHdocs/source/zh/examples/web_browser.md0closes any visible modal or pop-up on the page. use this to dismiss pop-up windows! this does not work on cookie consent
HIGHdocs/source/ko/examples/web_browser.md0closes any visible modal or pop-up on the page. use this to dismiss pop-up windows! this does not work on cookie consent
HIGHdocs/source/en/examples/web_browser.md0closes any visible modal or pop-up on the page. use this to dismiss pop-up windows! this does not work on cookie consent
HIGHsrc/smolagents/vision_web_browser.py0closes any visible modal or pop-up on the page. use this to dismiss pop-up windows! this does not work on cookie consent
HIGHdocs/source/zh/examples/web_browser.md0you can use helium to access websites. don't bother about the helium driver, it's already managed. we've already ran "fr
HIGHdocs/source/ko/examples/web_browser.md0you can use helium to access websites. don't bother about the helium driver, it's already managed. we've already ran "fr
HIGHdocs/source/en/examples/web_browser.md0you can use helium to access websites. don't bother about the helium driver, it's already managed. we've already ran "fr
HIGHdocs/source/zh/examples/web_browser.md0please navigate to https://en.wikipedia.org/wiki/chicago and give me a sentence containing the word "1992" that mentions
HIGHdocs/source/ko/examples/web_browser.md0please navigate to https://en.wikipedia.org/wiki/chicago and give me a sentence containing the word "1992" that mentions
HIGHdocs/source/en/examples/web_browser.md0please navigate to https://en.wikipedia.org/wiki/chicago and give me a sentence containing the word "1992" that mentions
HIGHsrc/smolagents/vision_web_browser.py0please navigate to https://en.wikipedia.org/wiki/chicago and give me a sentence containing the word "1992" that mentions
HIGHdocs/source/zh/examples/web_browser.md0i'm trying to find how hard i have to work to get a repo in github.com/trending. can you navigate to the profile for the
HIGHdocs/source/ko/examples/web_browser.md0i'm trying to find how hard i have to work to get a repo in github.com/trending. can you navigate to the profile for the
HIGHdocs/source/en/examples/web_browser.md0i'm trying to find how hard i have to work to get a repo in github.com/trending. can you navigate to the profile for the
HIGHsrc/smolagents/vision_web_browser.py0i'm trying to find how hard i have to work to get a repo in github.com/trending. can you navigate to the profile for the
HIGHdocs/source/zh/examples/multiagents.md0visits a webpage at the given url and returns its content as a markdown string. args: url: the url of the webpage to vis
HIGHdocs/source/hi/examples/multiagents.md0visits a webpage at the given url and returns its content as a markdown string. args: url: the url of the webpage to vis
HIGHdocs/source/en/examples/multiagents.md0visits a webpage at the given url and returns its content as a markdown string. args: url: the url of the webpage to vis
HIGHdocs/source/zh/examples/text_to_sql.md0allows you to perform sql queries on the table. returns a string representation of the result. the table is named 'recei
HIGHdocs/source/hi/examples/text_to_sql.md0allows you to perform sql queries on the table. returns a string representation of the result. the table is named 'recei
HIGHdocs/source/en/examples/text_to_sql.md0allows you to perform sql queries on the table. returns a string representation of the result. the table is named 'recei
HIGHexamples/text_to_sql.py0allows you to perform sql queries on the table. returns a string representation of the result. the table is named 'recei
HIGHdocs/source/zh/examples/text_to_sql.md0allows you to perform sql queries on the table. beware that this tool's output is a string representation of the executi
HIGHdocs/source/hi/examples/text_to_sql.md0allows you to perform sql queries on the table. beware that this tool's output is a string representation of the executi
HIGHdocs/source/ko/examples/text_to_sql.md0allows you to perform sql queries on the table. beware that this tool's output is a string representation of the executi
HIGHdocs/source/en/examples/text_to_sql.md0allows you to perform sql queries on the table. beware that this tool's output is a string representation of the executi
HIGHdocs/source/zh/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. date_time: the date and
HIGHdocs/source/hi/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. date_time: the date and
HIGHdocs/source/ko/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. date_time: the date and
HIGHdocs/source/en/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. date_time: the date and
HIGHdocs/source/zh/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. should be a place name,
HIGHdocs/source/hi/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. should be a place name,
HIGHdocs/source/ko/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. should be a place name,
HIGHdocs/source/en/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. should be a place name,
HIGHdocs/source/ko/tutorials/building_good_agents.md0{{ agent.description }} args: task: long detailed description of the task. additional_args: dictionary of extra inputs t
HIGHdocs/source/en/tutorials/building_good_agents.md0{{ agent.description }} args: task: long detailed description of the task. additional_args: dictionary of extra inputs t
HIGHsrc/smolagents/prompts/code_agent.yaml0{{ agent.description }} args: task: long detailed description of the task. additional_args: dictionary of extra inputs t
HIGHsrc/smolagents/prompts/code_agent.yaml0{{ agent.description }} args: task: long detailed description of the task. additional_args: dictionary of extra inputs t
7 more matches not shown…
Hyper-Verbose Identifiers373 hits · 281 pts
SeverityFileLineSnippet
LOWtests/test_remote_executors.py28 def test_send_tools_empty_tools(self):
LOWtests/test_remote_executors.py36 def test_send_variables_with_empty_dict_is_noop(self):
LOWtests/test_remote_executors.py42 def test_send_variables_non_empty_generates_executable_deserializer_code(self):
LOWtests/test_remote_executors.py61 def test_send_variables_allow_pickle_handles_prefixed_payload(self):
LOWtests/test_remote_executors.py75 def test_deserialize_final_answer_rejects_unprefixed_payload(self):
LOWtests/test_remote_executors.py80 def test_send_tools_with_default_wikipedia_search_tool(self):
LOWtests/test_remote_executors.py190 def test_final_answer_patterns(self, code_action, expected_result):
LOWtests/test_remote_executors.py209 def test_custom_final_answer_with_custom_inputs(self):
LOWtests/test_remote_executors.py285 def test_execute_multiline_output(self):
LOWtests/test_remote_executors.py292 def test_execute_image_output(self):
LOWtests/test_remote_executors.py305 def test_syntax_error_handling(self):
LOWtests/test_remote_executors.py344 def test_final_answer_patterns(self, code_action, expected_result):
LOWtests/test_remote_executors.py363 def test_custom_final_answer_with_custom_inputs(self):
LOWtests/test_remote_executors.py478 def test_blaxel_executor_instantiation_without_blaxel_sdk(self):
LOWtests/test_remote_executors.py489 def test_blaxel_executor_instantiation_with_blaxel_sdk(
LOWtests/test_remote_executors.py531 def test_blaxel_executor_custom_parameters(
LOWtests/test_remote_executors.py578 def test_blaxel_executor_cleanup(self, mock_settings, mock_sandbox_instance, mock_create_kernel):
LOWtests/test_utils.py168def test_get_source_standard_class():
LOWtests/test_utils.py176def test_get_source_standard_function():
LOWtests/test_utils.py184def test_get_source_ipython_errors_empty_cells(ipython_shell):
LOWtests/test_utils.py192def test_get_source_ipython_errors_definition_not_found(ipython_shell):
LOWtests/test_utils.py200def test_get_source_ipython_errors_type_error():
LOWtests/test_utils.py467def test_parse_json_blob_with_valid_json(raw_json, expected_data, expected_blob):
LOWtests/test_utils.py484def test_parse_json_blob_with_invalid_json(raw_json):
LOWtests/test_utils.py520def test_agent_gradio_app_template_excludes_class_keyword():
LOWtests/conftest.py16def patch_multi_step_agent_with_suppressed_logging():
LOWtests/conftest.py19 def init_with_suppressed_logging(self, *args, verbosity_level=LogLevel.OFF, **kwargs):
LOWtests/test_function_type_hints_utils.py207def complex_docstring_types_func():
LOWtests/test_function_type_hints_utils.py224def keywords_in_description_func():
LOWtests/test_function_type_hints_utils.py241 def test_get_json_schema_example(self):
LOWtests/test_function_type_hints_utils.py298 def test_get_json_schema_raises(self, request, fixture_name, should_fail):
LOWtests/test_function_type_hints_utils.py319 def test_schema_basic_structure(self, valid_func):
LOWtests/test_function_type_hints_utils.py395 def test_typed_docstring_parsing(self, typed_docstring_func):
LOWtests/test_function_type_hints_utils.py414 def test_mismatched_docstring_types(self, mismatched_types_func):
LOWtests/test_function_type_hints_utils.py422 def test_complex_docstring_types(self, complex_docstring_types_func):
LOWtests/test_function_type_hints_utils.py442 def test_type_in_description_handling(self, request, fixture_name, expected_description):
LOWtests/test_function_type_hints_utils.py450 def test_with_special_words_in_description_func(self, keywords_in_description_func):
LOWtests/test_mcp_client.py29def structured_output_server_script():
LOWtests/test_mcp_client.py55def test_mcp_client_with_syntax(echo_server_script: str):
LOWtests/test_mcp_client.py64def test_mcp_client_with_structured_output(structured_output_server_script: str):
LOWtests/test_mcp_client.py87def test_mcp_client_without_structured_output(structured_output_server_script: str):
LOWtests/test_mcp_client.py105def test_mcp_client_try_finally_syntax(echo_server_script: str):
LOWtests/test_import.py6def test_import_smolagents_without_extras(monkeypatch):
LOWtests/test_monitoring.py66 def test_code_agent_metrics_max_steps(self):
LOWtests/test_monitoring.py86 def test_code_agent_metrics_generation_error(self):
LOWtests/test_monitoring.py100 def test_streaming_agent_text_output(self):
LOWtests/test_monitoring.py119 def test_streaming_agent_image_output(self):
LOWtests/test_monitoring.py156 def test_streaming_with_agent_error(self):
LOWtests/test_monitoring.py190 def test_replay_with_chatmessage(self):
LOWtests/test_monitoring.py205 def test_logger_log_task_does_not_crash_on_stray_markup_or_control_chars(self):
LOWtests/test_monitoring.py228 def test_logger_log_task_accepts_non_string_payloads(self):
LOWtests/test_gradio_ui.py43 def test_upload_file_default_types(self):
LOWtests/test_gradio_ui.py57 def test_upload_file_default_types_disallowed(self):
LOWtests/test_gradio_ui.py90 def test_upload_file_invalid_type(self):
LOWtests/test_gradio_ui.py101 def test_upload_file_special_chars(self):
LOWtests/test_gradio_ui.py122 def test_upload_file_custom_types(self):
LOWtests/test_gradio_ui.py138 def test_stream_to_gradio_memory_step(self, mock_pull_messages):
LOWtests/test_gradio_ui.py153 def test_stream_to_gradio_stream_delta(self):
LOWtests/test_gradio_ui.py165 def test_stream_to_gradio_multiple_deltas(self):
LOWtests/test_gradio_ui.py188 def test_stream_to_gradio_parameters(self, task, task_images, reset_memory, additional_args):
313 more matches not shown…
Self-Referential Comments38 hits · 125 pts
SeverityFileLineSnippet
MEDIUMtests/test_import.py9 # Create a virtual environment
MEDIUMtests/test_gradio_ui.py104 # Create a new temporary file with special characters
MEDIUMtests/test_local_python_executor.py588 # Create a generator expression that filters an infinite sequence
MEDIUMtests/test_models.py445 # Create a mock response for successful call
MEDIUMtests/test_models.py455 # Create a 429 rate limit error
MEDIUMtests/test_models.py570 # Create a mock response that contains a stop sequence in the middle
MEDIUMtests/test_memory.py238 # Create a mock ChatCompletion-like object (this is what was causing the error)
MEDIUMtests/test_memory.py244 # Create a ChatMessage with raw field containing the non-serializable object
MEDIUMtests/test_serialization.py799 # Create an object that needs pickle
MEDIUMtests/test_serialization.py666 # Create a simple test image
MEDIUMtests/test_tools.py616 # Define a test function with type hints and docstring
MEDIUMtests/test_tools.py102 # Define a tool class with the test type value
MEDIUMtests/test_tools.py631 # Create a tool from the function
MEDIUMtests/test_tools.py1038 # Create a tool with the appropriate signature
MEDIUMtests/test_all_docs.py171 # Initialize the class if needed
MEDIUMtests/test_agents.py1006 # Create a simple agent with mocked model
MEDIUMtests/test_agents.py1548 # Create a managed agent
MEDIUMtests/test_agents.py1553 # Create a main agent with the managed agent
MEDIUMtests/test_agents.py1092 # Create a dummy agent
MEDIUMtests/test_agents.py1117 # Create a test agent with a list of callbacks
MEDIUMtests/test_agents.py1497 # Create a test agent dictionary
MEDIUMtests/test_agents.py1616 # Create a valid agent first
MEDIUMtests/test_agents.py2066 # Create a ToolCallingAgent instance with the test tool
MEDIUMtests/test_agents.py2070 # Create a memory step for process_tool_calls
MEDIUMtests/test_agents.py2285 # Create a test agent dictionary
MEDIUMexamples/open_deep_research/scripts/cookies.py710# Create a RequestsCookieJar instance
MEDIUMexamples/open_deep_research/scripts/mdconvert.py644 # Create the extraction directory if it doesn't exist
MEDIUMexamples/server/main.py9# Create an MCP client to connect to the MCP server
MEDIUMexamples/server/main.py16# Create a CodeAgent with a specific model and the tools from the MCP client
MEDIUMexamples/server/main.py23# Define the shutdown handler to disconnect the MCP client
MEDIUMexamples/plan_customization/plan_customization.py115 # Define a task that will benefit from planning
MEDIUMexamples/async_agent/main.py17# Create a simple agent instance (customize as needed)
MEDIUMsrc/smolagents/vision_web_browser.py77 memory_step.observations_images = [image.copy()] # Create a copy to ensure it persists, important!
MEDIUMsrc/smolagents/gradio_ui.py119 # Create the tool call message
MEDIUMsrc/smolagents/local_python_executor.py307 # Create a new ThreadPoolExecutor for each call to avoid threading issues
MEDIUMsrc/smolagents/local_python_executor.py1638 # Define the actual execution logic
MEDIUMsrc/smolagents/remote_executors.py158 # Create a new class that inherits from the original FinalAnswerTool
MEDIUMsrc/smolagents/remote_executors.py926 # Create the sandbox
Excessive Try-Catch Wrapping70 hits · 72 pts
SeverityFileLineSnippet
MEDIUMtests/test_local_python_executor.py2228def run_in_thread():
LOWtests/test_local_python_executor.py1415 except Exception as e:
LOWtests/test_local_python_executor.py2245 except Exception as e:
LOWtests/test_local_python_executor.py2788 except Exception as e:
MEDIUMtests/test_serialization.py907def serialize_data(data, index):
LOWtests/test_serialization.py912 except Exception as e:
LOWtests/test_all_docs.py153 except Exception:
LOWdocs/source/zh/examples/multiagents.md93 except Exception as e:
LOWdocs/source/zh/tutorials/building_good_agents.md95 except Exception as e:
LOWdocs/source/hi/examples/multiagents.md92 except Exception as e:
LOWdocs/source/hi/tutorials/building_good_agents.md96 except Exception as e:
LOWdocs/source/ko/examples/multiagents.md90 except Exception as e:
LOWdocs/source/ko/tutorials/building_good_agents.md95 except Exception as e:
LOWdocs/source/en/examples/multiagents.md90 except Exception as e:
LOWdocs/source/en/tutorials/secure_code_execution.md73 except Exception as e:
LOWdocs/source/en/tutorials/secure_code_execution.md402 except Exception as e:
MEDIUMdocs/source/en/tutorials/secure_code_execution.md403 print(f"Error during cleanup: {e}")
LOWdocs/source/en/tutorials/building_good_agents.md95 except Exception as e:
LOWexamples/smolagents_benchmark/run.py166 except Exception as e:
MEDIUMexamples/smolagents_benchmark/run.py167 print("Error on ", augmented_question, e)
LOWexamples/open_deep_research/run_gaia.py244 except Exception as e:
MEDIUMexamples/open_deep_research/run_gaia.py245 print("Error on ", augmented_question, e)
LOWexamples/open_deep_research/run_gaia.py280 except Exception as e:
MEDIUMexamples/open_deep_research/run_gaia.py281 print("Error when loading records: ", e)
LOWexamples/open_deep_research/scripts/reformulator.py37 except Exception:
LOWexamples/open_deep_research/scripts/mdconvert.py274 except Exception:
LOWexamples/open_deep_research/scripts/mdconvert.py318 except Exception:
LOWexamples/open_deep_research/scripts/mdconvert.py443 except Exception:
LOWexamples/open_deep_research/scripts/mdconvert.py514 except Exception:
LOWexamples/open_deep_research/scripts/mdconvert.py553 except Exception:
LOWexamples/open_deep_research/scripts/mdconvert.py618 except Exception:
LOWexamples/open_deep_research/scripts/mdconvert.py864 except Exception:
LOWexamples/open_deep_research/scripts/mdconvert.py914 except Exception as e:
MEDIUMexamples/open_deep_research/scripts/mdconvert.py915 print(f"Error in converting: {e}")
LOWexamples/open_deep_research/scripts/mdconvert.py921 except Exception:
LOWexamples/open_deep_research/scripts/mdconvert.py950 except Exception:
LOWexamples/open_deep_research/scripts/visual_qa.py127 except Exception as e:
LOWexamples/open_deep_research/scripts/visual_qa.py183 except Exception:
LOWexamples/plan_customization/plan_customization.py132 except Exception as e:
LOWexamples/plan_customization/plan_customization.py159 except Exception as resume_error:
LOWexamples/async_agent/main.py41 except Exception as e:
LOWsrc/smolagents/models.py199 except Exception:
LOWsrc/smolagents/models.py404 except Exception as e:
LOWsrc/smolagents/models.py974 except Exception as e:
LOWsrc/smolagents/local_python_executor.py1169 except Exception as e:
LOWsrc/smolagents/local_python_executor.py1254 except Exception as e:
LOWsrc/smolagents/local_python_executor.py1262 except Exception as exit_exc:
LOWsrc/smolagents/local_python_executor.py1655 except Exception as e:
LOWsrc/smolagents/agents.py106 except Exception as e:
LOWsrc/smolagents/agents.py617 except Exception as e:
LOWsrc/smolagents/agents.py803 except Exception:
LOWsrc/smolagents/agents.py849 except Exception as e:
LOWsrc/smolagents/agents.py1324 except Exception as e:
LOWsrc/smolagents/agents.py1330 except Exception as e:
LOWsrc/smolagents/agents.py1479 except Exception as e:
LOWsrc/smolagents/agents.py1490 except Exception as e:
LOWsrc/smolagents/agents.py1699 except Exception as e:
LOWsrc/smolagents/agents.py1711 except Exception as e:
LOWsrc/smolagents/agents.py1734 except Exception as e:
LOWsrc/smolagents/cli.py140 except Exception:
10 more matches not shown…
Docstring Block Structure14 hits · 70 pts
SeverityFileLineSnippet
HIGHexamples/multiple_tools.py53 Converts a specified amount from one currency to another using the ExchangeRate-API. Args: amount: The
HIGHexamples/multiple_tools.py149 Fetches the current time for a given location using the World Time API. Args: location: The location fo
HIGHexamples/multiple_tools.py196 Fetches a summary of a Wikipedia page for a given query. Args: query: The search term to look up on Wik
HIGHsrc/smolagents/models.py561Process the input messages and return the model's response. Parameters: messages (`list[dict[str, s
HIGHsrc/smolagents/models.py861A class that uses Hugging Face's Transformers library for language model interaction. This model allows you to load
HIGHsrc/smolagents/models.py1457A class to interact with Hugging Face's Inference Providers for language model interaction. This model allows you t
HIGHsrc/smolagents/models.py1860 A model class for interacting with Amazon Bedrock Server models through the Bedrock API. This class provides a
HIGHsrc/smolagents/tools.py607 Creates a [`Tool`] from a Space given its id on the Hub. Args: space_id (`str`):
HIGHsrc/smolagents/utils.py199Extract code blocs from the LLM's output. If a valid code block is passed, it returns it directly. Args:
HIGHsrc/smolagents/remote_executors.py308Deserialize final answer with format detection. Accepts explicit prefix-based formats only: - "safe:" f
HIGHsrc/smolagents/serialization.py77Convert Python objects to JSON-serializable format with type markers. Args: obj: Object to convert.
HIGHsrc/smolagents/serialization.py253 Serialize object to string. Args: obj: Object to serialize allow_pickle: If Fa
HIGHsrc/smolagents/serialization.py296 Deserialize string with format detection. Args: data: Serialized string (with "safe:" or "
HIGHsrc/smolagents/_function_type_hints_utils.py98 This function generates a JSON schema for a given function, based on its docstring and type hints. This is most
Deep Nesting68 hits · 58 pts
SeverityFileLineSnippet
LOWtests/test_tools.py64
LOWtests/test_tools.py65
LOWtests/test_agents.py1387
LOWexamples/smolagents_benchmark/run.py188
LOWexamples/open_deep_research/scripts/gaia_scorer.py34
LOWexamples/open_deep_research/scripts/text_web_browser.py55
LOWexamples/open_deep_research/scripts/text_web_browser.py263
LOWexamples/open_deep_research/scripts/run_agents.py72
LOWexamples/open_deep_research/scripts/mdconvert.py237
LOWexamples/open_deep_research/scripts/mdconvert.py337
LOWexamples/open_deep_research/scripts/mdconvert.py420
LOWexamples/open_deep_research/scripts/mdconvert.py927
LOWexamples/plan_customization/plan_customization.py62
LOWexamples/plan_customization/plan_customization.py100
LOWsrc/smolagents/gradio_ui.py378
LOWsrc/smolagents/models.py220
LOWsrc/smolagents/models.py288
LOWsrc/smolagents/models.py332
LOWsrc/smolagents/models.py1309
LOWsrc/smolagents/models.py1591
LOWsrc/smolagents/models.py1707
LOWsrc/smolagents/memory.py248
LOWsrc/smolagents/local_python_executor.py156
LOWsrc/smolagents/local_python_executor.py396
LOWsrc/smolagents/local_python_executor.py540
LOWsrc/smolagents/local_python_executor.py638
LOWsrc/smolagents/local_python_executor.py730
LOWsrc/smolagents/local_python_executor.py794
LOWsrc/smolagents/local_python_executor.py825
LOWsrc/smolagents/local_python_executor.py941
LOWsrc/smolagents/local_python_executor.py962
LOWsrc/smolagents/local_python_executor.py1026
LOWsrc/smolagents/local_python_executor.py1159
LOWsrc/smolagents/local_python_executor.py1236
LOWsrc/smolagents/local_python_executor.py1309
LOWsrc/smolagents/local_python_executor.py1380
LOWsrc/smolagents/local_python_executor.py1417
LOWsrc/smolagents/local_python_executor.py645
LOWsrc/smolagents/tools.py1361
LOWsrc/smolagents/tools.py144
LOWsrc/smolagents/tool_validation.py157
LOWsrc/smolagents/tool_validation.py49
LOWsrc/smolagents/tool_validation.py80
LOWsrc/smolagents/tool_validation.py90
LOWsrc/smolagents/tool_validation.py190
LOWsrc/smolagents/agents.py294
LOWsrc/smolagents/agents.py416
LOWsrc/smolagents/agents.py436
LOWsrc/smolagents/agents.py540
LOWsrc/smolagents/agents.py639
LOWsrc/smolagents/agents.py1276
LOWsrc/smolagents/agents.py1638
LOWsrc/smolagents/cli.py188
LOWsrc/smolagents/utils.py140
LOWsrc/smolagents/utils.py551
LOWsrc/smolagents/default_tools.py387
LOWsrc/smolagents/default_tools.py408
LOWsrc/smolagents/agent_types.py79
LOWsrc/smolagents/agent_types.py181
LOWsrc/smolagents/remote_executors.py481
8 more matches not shown…
Magic Placeholder Names8 hits · 40 pts
SeverityFileLineSnippet
HIGHdocs/source/zh/guided_tour.md89 api_key="YOUR_API_KEY" # 如果需要可以替换为 API key
HIGHdocs/source/hi/guided_tour.md78 api_key="YOUR_API_KEY" # replace with API key if necessary
HIGHdocs/source/ko/guided_tour.md187 api_key="YOUR_API_KEY", # replace with API key if necessary
HIGHdocs/source/en/guided_tour.md200 api_key="YOUR_API_KEY", # replace with API key if necessary
HIGHexamples/agent_from_any_llm.py29 api_key="your-api-key", # replace with API key if necessary
HIGHexamples/multiple_tools.py27 api_key = "your_api_key" # Replace with your API key from https://weatherstack.com/
HIGHexamples/multiple_tools.py67 api_key = "your_api_key" # Replace with your actual API key from https://www.exchangerate-api.com/
HIGHexamples/multiple_tools.py98 api_key = "your_api_key" # Replace with your actual API key from https://newsapi.org/
Over-Commented Block39 hits · 37 pts
SeverityFileLineSnippet
LOWe2b.toml1# This is a config for E2B sandbox template.
LOWtests/test_utils.py1# coding=utf-8
LOWtests/test_function_type_hints_utils.py1# coding=utf-8
LOWtests/test_search.py1# coding=utf-8
LOWtests/test_monitoring.py1# coding=utf-8
LOWtests/test_gradio_ui.py1# coding=utf-8
LOWtests/test_local_python_executor.py1# coding=utf-8
LOWtests/test_default_tools.py1# coding=utf-8
LOWtests/test_final_answer.py1# coding=utf-8
LOWtests/test_models.py1# coding=utf-8
LOWtests/test_serialization.py1#!/usr/bin/env python
LOWtests/test_tools.py1# coding=utf-8
LOWtests/test_telemetry.py1# coding=utf-8
LOWtests/test_all_docs.py1# coding=utf-8
LOWtests/test_agents.py1# coding=utf-8
LOWtests/test_types.py1# coding=utf-8
LOWtests/utils/markers.py1# coding=utf-8
LOWdocs/source/es/_toctree.yml1- title: Primeros Pasos
LOWdocs/source/es/_toctree.yml21# - title: Conceptual guides
LOWdocs/source/es/_toctree.yml41# - local: examples/async_agent
LOWexamples/rag_using_chromadb.py21knowledge_base = datasets.load_dataset("m-ric/huggingface_doc", split="train")
LOWexamples/structured_output_tool.py1# How to run with uv:
LOWexamples/multiple_tools.py221# If you want to use the ToolCallingAgent instead, uncomment the following lines as they both will work
LOWexamples/open_deep_research/scripts/reformulator.py81 # """.strip()}]})
LOWsrc/smolagents/gradio_ui.py1#!/usr/bin/env python
LOWsrc/smolagents/models.py1# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
LOWsrc/smolagents/local_python_executor.py1#!/usr/bin/env python
LOWsrc/smolagents/monitoring.py1#!/usr/bin/env python
LOWsrc/smolagents/tools.py1#!/usr/bin/env python
LOWsrc/smolagents/__init__.py1#!/usr/bin/env python
LOWsrc/smolagents/agents.py1#!/usr/bin/env python
LOWsrc/smolagents/cli.py1#!/usr/bin/env python
LOWsrc/smolagents/utils.py1#!/usr/bin/env python
LOWsrc/smolagents/default_tools.py1#!/usr/bin/env python
LOWsrc/smolagents/mcp_client.py1#!/usr/bin/env python
LOWsrc/smolagents/agent_types.py1# coding=utf-8
LOWsrc/smolagents/remote_executors.py1#!/usr/bin/env python
LOWsrc/smolagents/serialization.py1#!/usr/bin/env python
LOWsrc/smolagents/_function_type_hints_utils.py1#!/usr/bin/env python
Unused Imports25 hits · 24 pts
SeverityFileLineSnippet
LOWtests/test_utils.py333
LOWtests/test_utils.py226
LOWexamples/structured_output_tool.py19
LOWsrc/smolagents/memory.py12
LOWsrc/smolagents/tools.py17
LOWsrc/smolagents/tools.py64
LOWsrc/smolagents/__init__.py19
LOWsrc/smolagents/__init__.py20
LOWsrc/smolagents/__init__.py21
LOWsrc/smolagents/__init__.py22
LOWsrc/smolagents/__init__.py23
LOWsrc/smolagents/__init__.py24
LOWsrc/smolagents/__init__.py25
LOWsrc/smolagents/__init__.py26
LOWsrc/smolagents/__init__.py27
LOWsrc/smolagents/__init__.py28
LOWsrc/smolagents/__init__.py29
LOWsrc/smolagents/__init__.py30
LOWsrc/smolagents/__init__.py31
LOWsrc/smolagents/__init__.py32
LOWsrc/smolagents/agents.py45
LOWsrc/smolagents/utils.py38
LOWsrc/smolagents/mcp_client.py18
LOWsrc/smolagents/mcp_client.py30
LOWsrc/smolagents/remote_executors.py896
Redundant / Tautological Comments13 hits · 19 pts
SeverityFileLineSnippet
LOWtests/test_import.py25 # Check if the import was successful
LOWtests/test_tools.py115 # Check if we expect this to raise an exception
LOWexamples/multiple_tools.py38 if data.get("error"): # Check if there's an error in the response
LOWexamples/open_deep_research/scripts/mdconvert.py624 # Return the result
LOWsrc/smolagents/local_python_executor.py611 # Check if it is a docstring: first statement in class body which is a string literal expression
LOWsrc/smolagents/tools.py182 # Check if all elements are strings
LOWsrc/smolagents/tool_validation.py198 # Check if the assignment is more complex than simple literals
LOWsrc/smolagents/agents.py1463 # Check if the tool exists
LOWsrc/smolagents/cli.py265 # Check if we should run in interactive mode
LOWsrc/smolagents/utils.py572 # Check if we should retry
LOWsrc/smolagents/remote_executors.py183 # Check if all keys are strings (JSON-compatible)
LOWsrc/smolagents/remote_executors.py389 # Check if the error is a FinalAnswerException
LOWsrc/smolagents/remote_executors.py614 # Check if image exists, unless forced to rebuild
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICALexamples/open_deep_research/scripts/mdconvert.py442 alt_text = shape._element._nvXxPr.cNvPr.attrib.get("descr", "")
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippet
MEDIUMexamples/rag_using_chromadb.py27## For your own PDFs, you can use the following code to load them into source_docs
LOWexamples/open_deep_research/run_gaia.py147 # WARNING: this dataset is gated: make sure you visit the repo to require access.
Overly Generic Function Names3 hits · 4 pts
SeverityFileLineSnippet
LOWtests/test_function_type_hints_utils.py85 def process_data(items: list[str], config: dict[str, float], point: tuple[int, int]) -> dict:
LOWtests/test_serialization.py453 def my_function():
LOWtests/test_tools.py617 def test_function(items: list[str]) -> str:
AI Slop Vocabulary2 hits · 3 pts
SeverityFileLineSnippet
LOWsrc/smolagents/local_python_executor.py634 # For declarations without values (x: int), just return None
LOWsrc/smolagents/local_python_executor.py1462 # Constant -> just return the value
Fake / Example Data2 hits · 1 pts
SeverityFileLineSnippet
LOWtests/test_serialization.py742 person = Person(name="Bob", address=Address(street="123 Main St", city="NYC"))
LOWtests/test_serialization.py747 assert result["address"]["street"] == "123 Main St"