🤗 smolagents: a barebones library for agents that think in code.
725 matches across 15 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/test_utils.py | 0 | a valid tool function. args: input (str): input string. |
| HIGH | tests/test_tool_validation.py | 0 | a valid tool function. args: input (str): input string. |
| HIGH | tests/test_tool_validation.py | 0 | a valid tool function. args: input (str): input string. |
| HIGH | tests/test_local_python_executor.py | 0 | def func(): pass function_class = func.__getattribute__("__class__") object_class = type.__getattribute__(function_class |
| HIGH | tests/test_local_python_executor.py | 0 | def func(): pass function_class = func.__getattribute__("__class__") object_class = type.__getattribute__(function_class |
| HIGH | tests/test_local_python_executor.py | 0 | def func(): pass function_class = func.__getattribute__("__class__") object_class = type.__getattribute__(function_class |
| HIGH | tests/test_tools.py | 0 | this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th |
| HIGH | docs/source/zh/tutorials/tools.md | 0 | this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th |
| HIGH | docs/source/hi/tutorials/tools.md | 0 | this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th |
| HIGH | docs/source/en/tutorials/tools.md | 0 | this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th |
| HIGH | docs/source/zh/guided_tour.md | 0 | this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th |
| HIGH | docs/source/hi/guided_tour.md | 0 | this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th |
| HIGH | docs/source/ko/guided_tour.md | 0 | this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th |
| HIGH | docs/source/en/guided_tour.md | 0 | this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of th |
| HIGH | docs/source/zh/_config.py | 0 | # installation ! pip install smolagents # to install from source instead of the last release, comment the command above |
| HIGH | docs/source/hi/_config.py | 0 | # installation ! pip install smolagents # to install from source instead of the last release, comment the command above |
| HIGH | docs/source/ko/_config.py | 0 | # installation ! pip install smolagents # to install from source instead of the last release, comment the command above |
| HIGH | docs/source/es/_config.py | 0 | # installation ! pip install smolagents # to install from source instead of the last release, comment the command above |
| HIGH | docs/source/en/_config.py | 0 | # installation ! pip install smolagents # to install from source instead of the last release, comment the command above |
| HIGH | docs/source/zh/examples/web_browser.md | 0 | searches for text on the current page via ctrl + f and jumps to the nth occurrence. args: text: the text to search for n |
| HIGH | docs/source/en/examples/web_browser.md | 0 | searches for text on the current page via ctrl + f and jumps to the nth occurrence. args: text: the text to search for n |
| HIGH | src/smolagents/vision_web_browser.py | 0 | searches for text on the current page via ctrl + f and jumps to the nth occurrence. args: text: the text to search for n |
| HIGH | docs/source/zh/examples/web_browser.md | 0 | closes any visible modal or pop-up on the page. use this to dismiss pop-up windows! this does not work on cookie consent |
| HIGH | docs/source/ko/examples/web_browser.md | 0 | closes any visible modal or pop-up on the page. use this to dismiss pop-up windows! this does not work on cookie consent |
| HIGH | docs/source/en/examples/web_browser.md | 0 | closes any visible modal or pop-up on the page. use this to dismiss pop-up windows! this does not work on cookie consent |
| HIGH | src/smolagents/vision_web_browser.py | 0 | closes any visible modal or pop-up on the page. use this to dismiss pop-up windows! this does not work on cookie consent |
| HIGH | docs/source/zh/examples/web_browser.md | 0 | you can use helium to access websites. don't bother about the helium driver, it's already managed. we've already ran "fr |
| HIGH | docs/source/ko/examples/web_browser.md | 0 | you can use helium to access websites. don't bother about the helium driver, it's already managed. we've already ran "fr |
| HIGH | docs/source/en/examples/web_browser.md | 0 | you can use helium to access websites. don't bother about the helium driver, it's already managed. we've already ran "fr |
| HIGH | docs/source/zh/examples/web_browser.md | 0 | please navigate to https://en.wikipedia.org/wiki/chicago and give me a sentence containing the word "1992" that mentions |
| HIGH | docs/source/ko/examples/web_browser.md | 0 | please navigate to https://en.wikipedia.org/wiki/chicago and give me a sentence containing the word "1992" that mentions |
| HIGH | docs/source/en/examples/web_browser.md | 0 | please navigate to https://en.wikipedia.org/wiki/chicago and give me a sentence containing the word "1992" that mentions |
| HIGH | src/smolagents/vision_web_browser.py | 0 | please navigate to https://en.wikipedia.org/wiki/chicago and give me a sentence containing the word "1992" that mentions |
| HIGH | docs/source/zh/examples/web_browser.md | 0 | i'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 |
| HIGH | docs/source/ko/examples/web_browser.md | 0 | i'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 |
| HIGH | docs/source/en/examples/web_browser.md | 0 | i'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 |
| HIGH | src/smolagents/vision_web_browser.py | 0 | i'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 |
| HIGH | docs/source/zh/examples/multiagents.md | 0 | visits a webpage at the given url and returns its content as a markdown string. args: url: the url of the webpage to vis |
| HIGH | docs/source/hi/examples/multiagents.md | 0 | visits a webpage at the given url and returns its content as a markdown string. args: url: the url of the webpage to vis |
| HIGH | docs/source/en/examples/multiagents.md | 0 | visits a webpage at the given url and returns its content as a markdown string. args: url: the url of the webpage to vis |
| HIGH | docs/source/zh/examples/text_to_sql.md | 0 | allows you to perform sql queries on the table. returns a string representation of the result. the table is named 'recei |
| HIGH | docs/source/hi/examples/text_to_sql.md | 0 | allows you to perform sql queries on the table. returns a string representation of the result. the table is named 'recei |
| HIGH | docs/source/en/examples/text_to_sql.md | 0 | allows you to perform sql queries on the table. returns a string representation of the result. the table is named 'recei |
| HIGH | examples/text_to_sql.py | 0 | allows you to perform sql queries on the table. returns a string representation of the result. the table is named 'recei |
| HIGH | docs/source/zh/examples/text_to_sql.md | 0 | allows you to perform sql queries on the table. beware that this tool's output is a string representation of the executi |
| HIGH | docs/source/hi/examples/text_to_sql.md | 0 | allows you to perform sql queries on the table. beware that this tool's output is a string representation of the executi |
| HIGH | docs/source/ko/examples/text_to_sql.md | 0 | allows you to perform sql queries on the table. beware that this tool's output is a string representation of the executi |
| HIGH | docs/source/en/examples/text_to_sql.md | 0 | allows you to perform sql queries on the table. beware that this tool's output is a string representation of the executi |
| HIGH | docs/source/zh/tutorials/building_good_agents.md | 0 | returns the weather report. args: location: the name of the place that you want the weather for. date_time: the date and |
| HIGH | docs/source/hi/tutorials/building_good_agents.md | 0 | returns the weather report. args: location: the name of the place that you want the weather for. date_time: the date and |
| HIGH | docs/source/ko/tutorials/building_good_agents.md | 0 | returns the weather report. args: location: the name of the place that you want the weather for. date_time: the date and |
| HIGH | docs/source/en/tutorials/building_good_agents.md | 0 | returns the weather report. args: location: the name of the place that you want the weather for. date_time: the date and |
| HIGH | docs/source/zh/tutorials/building_good_agents.md | 0 | returns the weather report. args: location: the name of the place that you want the weather for. should be a place name, |
| HIGH | docs/source/hi/tutorials/building_good_agents.md | 0 | returns the weather report. args: location: the name of the place that you want the weather for. should be a place name, |
| HIGH | docs/source/ko/tutorials/building_good_agents.md | 0 | returns the weather report. args: location: the name of the place that you want the weather for. should be a place name, |
| HIGH | docs/source/en/tutorials/building_good_agents.md | 0 | returns the weather report. args: location: the name of the place that you want the weather for. should be a place name, |
| HIGH | docs/source/ko/tutorials/building_good_agents.md | 0 | {{ agent.description }} args: task: long detailed description of the task. additional_args: dictionary of extra inputs t |
| HIGH | docs/source/en/tutorials/building_good_agents.md | 0 | {{ agent.description }} args: task: long detailed description of the task. additional_args: dictionary of extra inputs t |
| HIGH | src/smolagents/prompts/code_agent.yaml | 0 | {{ agent.description }} args: task: long detailed description of the task. additional_args: dictionary of extra inputs t |
| HIGH | src/smolagents/prompts/code_agent.yaml | 0 | {{ agent.description }} args: task: long detailed description of the task. additional_args: dictionary of extra inputs t |
| 7 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_remote_executors.py | 28 | def test_send_tools_empty_tools(self): |
| LOW | tests/test_remote_executors.py | 36 | def test_send_variables_with_empty_dict_is_noop(self): |
| LOW | tests/test_remote_executors.py | 42 | def test_send_variables_non_empty_generates_executable_deserializer_code(self): |
| LOW | tests/test_remote_executors.py | 61 | def test_send_variables_allow_pickle_handles_prefixed_payload(self): |
| LOW | tests/test_remote_executors.py | 75 | def test_deserialize_final_answer_rejects_unprefixed_payload(self): |
| LOW | tests/test_remote_executors.py | 80 | def test_send_tools_with_default_wikipedia_search_tool(self): |
| LOW | tests/test_remote_executors.py | 190 | def test_final_answer_patterns(self, code_action, expected_result): |
| LOW | tests/test_remote_executors.py | 209 | def test_custom_final_answer_with_custom_inputs(self): |
| LOW | tests/test_remote_executors.py | 285 | def test_execute_multiline_output(self): |
| LOW | tests/test_remote_executors.py | 292 | def test_execute_image_output(self): |
| LOW | tests/test_remote_executors.py | 305 | def test_syntax_error_handling(self): |
| LOW | tests/test_remote_executors.py | 344 | def test_final_answer_patterns(self, code_action, expected_result): |
| LOW | tests/test_remote_executors.py | 363 | def test_custom_final_answer_with_custom_inputs(self): |
| LOW | tests/test_remote_executors.py | 478 | def test_blaxel_executor_instantiation_without_blaxel_sdk(self): |
| LOW | tests/test_remote_executors.py | 489 | def test_blaxel_executor_instantiation_with_blaxel_sdk( |
| LOW | tests/test_remote_executors.py | 531 | def test_blaxel_executor_custom_parameters( |
| LOW | tests/test_remote_executors.py | 578 | def test_blaxel_executor_cleanup(self, mock_settings, mock_sandbox_instance, mock_create_kernel): |
| LOW | tests/test_utils.py | 168 | def test_get_source_standard_class(): |
| LOW | tests/test_utils.py | 176 | def test_get_source_standard_function(): |
| LOW | tests/test_utils.py | 184 | def test_get_source_ipython_errors_empty_cells(ipython_shell): |
| LOW | tests/test_utils.py | 192 | def test_get_source_ipython_errors_definition_not_found(ipython_shell): |
| LOW | tests/test_utils.py | 200 | def test_get_source_ipython_errors_type_error(): |
| LOW | tests/test_utils.py | 467 | def test_parse_json_blob_with_valid_json(raw_json, expected_data, expected_blob): |
| LOW | tests/test_utils.py | 484 | def test_parse_json_blob_with_invalid_json(raw_json): |
| LOW | tests/test_utils.py | 520 | def test_agent_gradio_app_template_excludes_class_keyword(): |
| LOW | tests/conftest.py | 16 | def patch_multi_step_agent_with_suppressed_logging(): |
| LOW | tests/conftest.py | 19 | def init_with_suppressed_logging(self, *args, verbosity_level=LogLevel.OFF, **kwargs): |
| LOW | tests/test_function_type_hints_utils.py | 207 | def complex_docstring_types_func(): |
| LOW | tests/test_function_type_hints_utils.py | 224 | def keywords_in_description_func(): |
| LOW | tests/test_function_type_hints_utils.py | 241 | def test_get_json_schema_example(self): |
| LOW | tests/test_function_type_hints_utils.py | 298 | def test_get_json_schema_raises(self, request, fixture_name, should_fail): |
| LOW | tests/test_function_type_hints_utils.py | 319 | def test_schema_basic_structure(self, valid_func): |
| LOW | tests/test_function_type_hints_utils.py | 395 | def test_typed_docstring_parsing(self, typed_docstring_func): |
| LOW | tests/test_function_type_hints_utils.py | 414 | def test_mismatched_docstring_types(self, mismatched_types_func): |
| LOW | tests/test_function_type_hints_utils.py | 422 | def test_complex_docstring_types(self, complex_docstring_types_func): |
| LOW | tests/test_function_type_hints_utils.py | 442 | def test_type_in_description_handling(self, request, fixture_name, expected_description): |
| LOW | tests/test_function_type_hints_utils.py | 450 | def test_with_special_words_in_description_func(self, keywords_in_description_func): |
| LOW | tests/test_mcp_client.py | 29 | def structured_output_server_script(): |
| LOW | tests/test_mcp_client.py | 55 | def test_mcp_client_with_syntax(echo_server_script: str): |
| LOW | tests/test_mcp_client.py | 64 | def test_mcp_client_with_structured_output(structured_output_server_script: str): |
| LOW | tests/test_mcp_client.py | 87 | def test_mcp_client_without_structured_output(structured_output_server_script: str): |
| LOW | tests/test_mcp_client.py | 105 | def test_mcp_client_try_finally_syntax(echo_server_script: str): |
| LOW | tests/test_import.py | 6 | def test_import_smolagents_without_extras(monkeypatch): |
| LOW | tests/test_monitoring.py | 66 | def test_code_agent_metrics_max_steps(self): |
| LOW | tests/test_monitoring.py | 86 | def test_code_agent_metrics_generation_error(self): |
| LOW | tests/test_monitoring.py | 100 | def test_streaming_agent_text_output(self): |
| LOW | tests/test_monitoring.py | 119 | def test_streaming_agent_image_output(self): |
| LOW | tests/test_monitoring.py | 156 | def test_streaming_with_agent_error(self): |
| LOW | tests/test_monitoring.py | 190 | def test_replay_with_chatmessage(self): |
| LOW | tests/test_monitoring.py | 205 | def test_logger_log_task_does_not_crash_on_stray_markup_or_control_chars(self): |
| LOW | tests/test_monitoring.py | 228 | def test_logger_log_task_accepts_non_string_payloads(self): |
| LOW | tests/test_gradio_ui.py | 43 | def test_upload_file_default_types(self): |
| LOW | tests/test_gradio_ui.py | 57 | def test_upload_file_default_types_disallowed(self): |
| LOW | tests/test_gradio_ui.py | 90 | def test_upload_file_invalid_type(self): |
| LOW | tests/test_gradio_ui.py | 101 | def test_upload_file_special_chars(self): |
| LOW | tests/test_gradio_ui.py | 122 | def test_upload_file_custom_types(self): |
| LOW | tests/test_gradio_ui.py | 138 | def test_stream_to_gradio_memory_step(self, mock_pull_messages): |
| LOW | tests/test_gradio_ui.py | 153 | def test_stream_to_gradio_stream_delta(self): |
| LOW | tests/test_gradio_ui.py | 165 | def test_stream_to_gradio_multiple_deltas(self): |
| LOW | tests/test_gradio_ui.py | 188 | def test_stream_to_gradio_parameters(self, task, task_images, reset_memory, additional_args): |
| 313 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/test_import.py | 9 | # Create a virtual environment |
| MEDIUM | tests/test_gradio_ui.py | 104 | # Create a new temporary file with special characters |
| MEDIUM | tests/test_local_python_executor.py | 588 | # Create a generator expression that filters an infinite sequence |
| MEDIUM | tests/test_models.py | 445 | # Create a mock response for successful call |
| MEDIUM | tests/test_models.py | 455 | # Create a 429 rate limit error |
| MEDIUM | tests/test_models.py | 570 | # Create a mock response that contains a stop sequence in the middle |
| MEDIUM | tests/test_memory.py | 238 | # Create a mock ChatCompletion-like object (this is what was causing the error) |
| MEDIUM | tests/test_memory.py | 244 | # Create a ChatMessage with raw field containing the non-serializable object |
| MEDIUM | tests/test_serialization.py | 799 | # Create an object that needs pickle |
| MEDIUM | tests/test_serialization.py | 666 | # Create a simple test image |
| MEDIUM | tests/test_tools.py | 616 | # Define a test function with type hints and docstring |
| MEDIUM | tests/test_tools.py | 102 | # Define a tool class with the test type value |
| MEDIUM | tests/test_tools.py | 631 | # Create a tool from the function |
| MEDIUM | tests/test_tools.py | 1038 | # Create a tool with the appropriate signature |
| MEDIUM | tests/test_all_docs.py | 171 | # Initialize the class if needed |
| MEDIUM | tests/test_agents.py | 1006 | # Create a simple agent with mocked model |
| MEDIUM | tests/test_agents.py | 1548 | # Create a managed agent |
| MEDIUM | tests/test_agents.py | 1553 | # Create a main agent with the managed agent |
| MEDIUM | tests/test_agents.py | 1092 | # Create a dummy agent |
| MEDIUM | tests/test_agents.py | 1117 | # Create a test agent with a list of callbacks |
| MEDIUM | tests/test_agents.py | 1497 | # Create a test agent dictionary |
| MEDIUM | tests/test_agents.py | 1616 | # Create a valid agent first |
| MEDIUM | tests/test_agents.py | 2066 | # Create a ToolCallingAgent instance with the test tool |
| MEDIUM | tests/test_agents.py | 2070 | # Create a memory step for process_tool_calls |
| MEDIUM | tests/test_agents.py | 2285 | # Create a test agent dictionary |
| MEDIUM | examples/open_deep_research/scripts/cookies.py | 710 | # Create a RequestsCookieJar instance |
| MEDIUM | examples/open_deep_research/scripts/mdconvert.py | 644 | # Create the extraction directory if it doesn't exist |
| MEDIUM | examples/server/main.py | 9 | # Create an MCP client to connect to the MCP server |
| MEDIUM | examples/server/main.py | 16 | # Create a CodeAgent with a specific model and the tools from the MCP client |
| MEDIUM | examples/server/main.py | 23 | # Define the shutdown handler to disconnect the MCP client |
| MEDIUM | examples/plan_customization/plan_customization.py | 115 | # Define a task that will benefit from planning |
| MEDIUM | examples/async_agent/main.py | 17 | # Create a simple agent instance (customize as needed) |
| MEDIUM | src/smolagents/vision_web_browser.py | 77 | memory_step.observations_images = [image.copy()] # Create a copy to ensure it persists, important! |
| MEDIUM | src/smolagents/gradio_ui.py | 119 | # Create the tool call message |
| MEDIUM | src/smolagents/local_python_executor.py | 307 | # Create a new ThreadPoolExecutor for each call to avoid threading issues |
| MEDIUM | src/smolagents/local_python_executor.py | 1638 | # Define the actual execution logic |
| MEDIUM | src/smolagents/remote_executors.py | 158 | # Create a new class that inherits from the original FinalAnswerTool |
| MEDIUM | src/smolagents/remote_executors.py | 926 | # Create the sandbox |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/test_local_python_executor.py | 2228 | def run_in_thread(): |
| LOW | tests/test_local_python_executor.py | 1415 | except Exception as e: |
| LOW | tests/test_local_python_executor.py | 2245 | except Exception as e: |
| LOW | tests/test_local_python_executor.py | 2788 | except Exception as e: |
| MEDIUM | tests/test_serialization.py | 907 | def serialize_data(data, index): |
| LOW | tests/test_serialization.py | 912 | except Exception as e: |
| LOW | tests/test_all_docs.py | 153 | except Exception: |
| LOW | docs/source/zh/examples/multiagents.md | 93 | except Exception as e: |
| LOW | docs/source/zh/tutorials/building_good_agents.md | 95 | except Exception as e: |
| LOW | docs/source/hi/examples/multiagents.md | 92 | except Exception as e: |
| LOW | docs/source/hi/tutorials/building_good_agents.md | 96 | except Exception as e: |
| LOW | docs/source/ko/examples/multiagents.md | 90 | except Exception as e: |
| LOW | docs/source/ko/tutorials/building_good_agents.md | 95 | except Exception as e: |
| LOW | docs/source/en/examples/multiagents.md | 90 | except Exception as e: |
| LOW | docs/source/en/tutorials/secure_code_execution.md | 73 | except Exception as e: |
| LOW | docs/source/en/tutorials/secure_code_execution.md | 402 | except Exception as e: |
| MEDIUM | docs/source/en/tutorials/secure_code_execution.md | 403 | print(f"Error during cleanup: {e}") |
| LOW | docs/source/en/tutorials/building_good_agents.md | 95 | except Exception as e: |
| LOW | examples/smolagents_benchmark/run.py | 166 | except Exception as e: |
| MEDIUM | examples/smolagents_benchmark/run.py | 167 | print("Error on ", augmented_question, e) |
| LOW | examples/open_deep_research/run_gaia.py | 244 | except Exception as e: |
| MEDIUM | examples/open_deep_research/run_gaia.py | 245 | print("Error on ", augmented_question, e) |
| LOW | examples/open_deep_research/run_gaia.py | 280 | except Exception as e: |
| MEDIUM | examples/open_deep_research/run_gaia.py | 281 | print("Error when loading records: ", e) |
| LOW | examples/open_deep_research/scripts/reformulator.py | 37 | except Exception: |
| LOW | examples/open_deep_research/scripts/mdconvert.py | 274 | except Exception: |
| LOW | examples/open_deep_research/scripts/mdconvert.py | 318 | except Exception: |
| LOW | examples/open_deep_research/scripts/mdconvert.py | 443 | except Exception: |
| LOW | examples/open_deep_research/scripts/mdconvert.py | 514 | except Exception: |
| LOW | examples/open_deep_research/scripts/mdconvert.py | 553 | except Exception: |
| LOW | examples/open_deep_research/scripts/mdconvert.py | 618 | except Exception: |
| LOW | examples/open_deep_research/scripts/mdconvert.py | 864 | except Exception: |
| LOW | examples/open_deep_research/scripts/mdconvert.py | 914 | except Exception as e: |
| MEDIUM | examples/open_deep_research/scripts/mdconvert.py | 915 | print(f"Error in converting: {e}") |
| LOW | examples/open_deep_research/scripts/mdconvert.py | 921 | except Exception: |
| LOW | examples/open_deep_research/scripts/mdconvert.py | 950 | except Exception: |
| LOW | examples/open_deep_research/scripts/visual_qa.py | 127 | except Exception as e: |
| LOW | examples/open_deep_research/scripts/visual_qa.py | 183 | except Exception: |
| LOW | examples/plan_customization/plan_customization.py | 132 | except Exception as e: |
| LOW | examples/plan_customization/plan_customization.py | 159 | except Exception as resume_error: |
| LOW | examples/async_agent/main.py | 41 | except Exception as e: |
| LOW | src/smolagents/models.py | 199 | except Exception: |
| LOW | src/smolagents/models.py | 404 | except Exception as e: |
| LOW | src/smolagents/models.py | 974 | except Exception as e: |
| LOW | src/smolagents/local_python_executor.py | 1169 | except Exception as e: |
| LOW | src/smolagents/local_python_executor.py | 1254 | except Exception as e: |
| LOW | src/smolagents/local_python_executor.py | 1262 | except Exception as exit_exc: |
| LOW | src/smolagents/local_python_executor.py | 1655 | except Exception as e: |
| LOW | src/smolagents/agents.py | 106 | except Exception as e: |
| LOW | src/smolagents/agents.py | 617 | except Exception as e: |
| LOW | src/smolagents/agents.py | 803 | except Exception: |
| LOW | src/smolagents/agents.py | 849 | except Exception as e: |
| LOW | src/smolagents/agents.py | 1324 | except Exception as e: |
| LOW | src/smolagents/agents.py | 1330 | except Exception as e: |
| LOW | src/smolagents/agents.py | 1479 | except Exception as e: |
| LOW | src/smolagents/agents.py | 1490 | except Exception as e: |
| LOW | src/smolagents/agents.py | 1699 | except Exception as e: |
| LOW | src/smolagents/agents.py | 1711 | except Exception as e: |
| LOW | src/smolagents/agents.py | 1734 | except Exception as e: |
| LOW | src/smolagents/cli.py | 140 | except Exception: |
| 10 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | examples/multiple_tools.py | 53 | Converts a specified amount from one currency to another using the ExchangeRate-API. Args: amount: The |
| HIGH | examples/multiple_tools.py | 149 | Fetches the current time for a given location using the World Time API. Args: location: The location fo |
| HIGH | examples/multiple_tools.py | 196 | Fetches a summary of a Wikipedia page for a given query. Args: query: The search term to look up on Wik |
| HIGH | src/smolagents/models.py | 561 | Process the input messages and return the model's response. Parameters: messages (`list[dict[str, s |
| HIGH | src/smolagents/models.py | 861 | A class that uses Hugging Face's Transformers library for language model interaction. This model allows you to load |
| HIGH | src/smolagents/models.py | 1457 | A class to interact with Hugging Face's Inference Providers for language model interaction. This model allows you t |
| HIGH | src/smolagents/models.py | 1860 | A model class for interacting with Amazon Bedrock Server models through the Bedrock API. This class provides a |
| HIGH | src/smolagents/tools.py | 607 | Creates a [`Tool`] from a Space given its id on the Hub. Args: space_id (`str`): |
| HIGH | src/smolagents/utils.py | 199 | Extract code blocs from the LLM's output. If a valid code block is passed, it returns it directly. Args: |
| HIGH | src/smolagents/remote_executors.py | 308 | Deserialize final answer with format detection. Accepts explicit prefix-based formats only: - "safe:" f |
| HIGH | src/smolagents/serialization.py | 77 | Convert Python objects to JSON-serializable format with type markers. Args: obj: Object to convert. |
| HIGH | src/smolagents/serialization.py | 253 | Serialize object to string. Args: obj: Object to serialize allow_pickle: If Fa |
| HIGH | src/smolagents/serialization.py | 296 | Deserialize string with format detection. Args: data: Serialized string (with "safe:" or " |
| HIGH | src/smolagents/_function_type_hints_utils.py | 98 | This function generates a JSON schema for a given function, based on its docstring and type hints. This is most |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_tools.py | 64 | |
| LOW | tests/test_tools.py | 65 | |
| LOW | tests/test_agents.py | 1387 | |
| LOW | examples/smolagents_benchmark/run.py | 188 | |
| LOW | examples/open_deep_research/scripts/gaia_scorer.py | 34 | |
| LOW | examples/open_deep_research/scripts/text_web_browser.py | 55 | |
| LOW | examples/open_deep_research/scripts/text_web_browser.py | 263 | |
| LOW | examples/open_deep_research/scripts/run_agents.py | 72 | |
| LOW | examples/open_deep_research/scripts/mdconvert.py | 237 | |
| LOW | examples/open_deep_research/scripts/mdconvert.py | 337 | |
| LOW | examples/open_deep_research/scripts/mdconvert.py | 420 | |
| LOW | examples/open_deep_research/scripts/mdconvert.py | 927 | |
| LOW | examples/plan_customization/plan_customization.py | 62 | |
| LOW | examples/plan_customization/plan_customization.py | 100 | |
| LOW | src/smolagents/gradio_ui.py | 378 | |
| LOW | src/smolagents/models.py | 220 | |
| LOW | src/smolagents/models.py | 288 | |
| LOW | src/smolagents/models.py | 332 | |
| LOW | src/smolagents/models.py | 1309 | |
| LOW | src/smolagents/models.py | 1591 | |
| LOW | src/smolagents/models.py | 1707 | |
| LOW | src/smolagents/memory.py | 248 | |
| LOW | src/smolagents/local_python_executor.py | 156 | |
| LOW | src/smolagents/local_python_executor.py | 396 | |
| LOW | src/smolagents/local_python_executor.py | 540 | |
| LOW | src/smolagents/local_python_executor.py | 638 | |
| LOW | src/smolagents/local_python_executor.py | 730 | |
| LOW | src/smolagents/local_python_executor.py | 794 | |
| LOW | src/smolagents/local_python_executor.py | 825 | |
| LOW | src/smolagents/local_python_executor.py | 941 | |
| LOW | src/smolagents/local_python_executor.py | 962 | |
| LOW | src/smolagents/local_python_executor.py | 1026 | |
| LOW | src/smolagents/local_python_executor.py | 1159 | |
| LOW | src/smolagents/local_python_executor.py | 1236 | |
| LOW | src/smolagents/local_python_executor.py | 1309 | |
| LOW | src/smolagents/local_python_executor.py | 1380 | |
| LOW | src/smolagents/local_python_executor.py | 1417 | |
| LOW | src/smolagents/local_python_executor.py | 645 | |
| LOW | src/smolagents/tools.py | 1361 | |
| LOW | src/smolagents/tools.py | 144 | |
| LOW | src/smolagents/tool_validation.py | 157 | |
| LOW | src/smolagents/tool_validation.py | 49 | |
| LOW | src/smolagents/tool_validation.py | 80 | |
| LOW | src/smolagents/tool_validation.py | 90 | |
| LOW | src/smolagents/tool_validation.py | 190 | |
| LOW | src/smolagents/agents.py | 294 | |
| LOW | src/smolagents/agents.py | 416 | |
| LOW | src/smolagents/agents.py | 436 | |
| LOW | src/smolagents/agents.py | 540 | |
| LOW | src/smolagents/agents.py | 639 | |
| LOW | src/smolagents/agents.py | 1276 | |
| LOW | src/smolagents/agents.py | 1638 | |
| LOW | src/smolagents/cli.py | 188 | |
| LOW | src/smolagents/utils.py | 140 | |
| LOW | src/smolagents/utils.py | 551 | |
| LOW | src/smolagents/default_tools.py | 387 | |
| LOW | src/smolagents/default_tools.py | 408 | |
| LOW | src/smolagents/agent_types.py | 79 | |
| LOW | src/smolagents/agent_types.py | 181 | |
| LOW | src/smolagents/remote_executors.py | 481 | |
| 8 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | docs/source/zh/guided_tour.md | 89 | api_key="YOUR_API_KEY" # 如果需要可以替换为 API key |
| HIGH | docs/source/hi/guided_tour.md | 78 | api_key="YOUR_API_KEY" # replace with API key if necessary |
| HIGH | docs/source/ko/guided_tour.md | 187 | api_key="YOUR_API_KEY", # replace with API key if necessary |
| HIGH | docs/source/en/guided_tour.md | 200 | api_key="YOUR_API_KEY", # replace with API key if necessary |
| HIGH | examples/agent_from_any_llm.py | 29 | api_key="your-api-key", # replace with API key if necessary |
| HIGH | examples/multiple_tools.py | 27 | api_key = "your_api_key" # Replace with your API key from https://weatherstack.com/ |
| HIGH | examples/multiple_tools.py | 67 | api_key = "your_api_key" # Replace with your actual API key from https://www.exchangerate-api.com/ |
| HIGH | examples/multiple_tools.py | 98 | api_key = "your_api_key" # Replace with your actual API key from https://newsapi.org/ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | e2b.toml | 1 | # This is a config for E2B sandbox template. |
| LOW | tests/test_utils.py | 1 | # coding=utf-8 |
| LOW | tests/test_function_type_hints_utils.py | 1 | # coding=utf-8 |
| LOW | tests/test_search.py | 1 | # coding=utf-8 |
| LOW | tests/test_monitoring.py | 1 | # coding=utf-8 |
| LOW | tests/test_gradio_ui.py | 1 | # coding=utf-8 |
| LOW | tests/test_local_python_executor.py | 1 | # coding=utf-8 |
| LOW | tests/test_default_tools.py | 1 | # coding=utf-8 |
| LOW | tests/test_final_answer.py | 1 | # coding=utf-8 |
| LOW | tests/test_models.py | 1 | # coding=utf-8 |
| LOW | tests/test_serialization.py | 1 | #!/usr/bin/env python |
| LOW | tests/test_tools.py | 1 | # coding=utf-8 |
| LOW | tests/test_telemetry.py | 1 | # coding=utf-8 |
| LOW | tests/test_all_docs.py | 1 | # coding=utf-8 |
| LOW | tests/test_agents.py | 1 | # coding=utf-8 |
| LOW | tests/test_types.py | 1 | # coding=utf-8 |
| LOW | tests/utils/markers.py | 1 | # coding=utf-8 |
| LOW | docs/source/es/_toctree.yml | 1 | - title: Primeros Pasos |
| LOW | docs/source/es/_toctree.yml | 21 | # - title: Conceptual guides |
| LOW | docs/source/es/_toctree.yml | 41 | # - local: examples/async_agent |
| LOW | examples/rag_using_chromadb.py | 21 | knowledge_base = datasets.load_dataset("m-ric/huggingface_doc", split="train") |
| LOW | examples/structured_output_tool.py | 1 | # How to run with uv: |
| LOW | examples/multiple_tools.py | 221 | # If you want to use the ToolCallingAgent instead, uncomment the following lines as they both will work |
| LOW | examples/open_deep_research/scripts/reformulator.py | 81 | # """.strip()}]}) |
| LOW | src/smolagents/gradio_ui.py | 1 | #!/usr/bin/env python |
| LOW | src/smolagents/models.py | 1 | # Copyright 2024 The HuggingFace Inc. team. All rights reserved. |
| LOW | src/smolagents/local_python_executor.py | 1 | #!/usr/bin/env python |
| LOW | src/smolagents/monitoring.py | 1 | #!/usr/bin/env python |
| LOW | src/smolagents/tools.py | 1 | #!/usr/bin/env python |
| LOW | src/smolagents/__init__.py | 1 | #!/usr/bin/env python |
| LOW | src/smolagents/agents.py | 1 | #!/usr/bin/env python |
| LOW | src/smolagents/cli.py | 1 | #!/usr/bin/env python |
| LOW | src/smolagents/utils.py | 1 | #!/usr/bin/env python |
| LOW | src/smolagents/default_tools.py | 1 | #!/usr/bin/env python |
| LOW | src/smolagents/mcp_client.py | 1 | #!/usr/bin/env python |
| LOW | src/smolagents/agent_types.py | 1 | # coding=utf-8 |
| LOW | src/smolagents/remote_executors.py | 1 | #!/usr/bin/env python |
| LOW | src/smolagents/serialization.py | 1 | #!/usr/bin/env python |
| LOW | src/smolagents/_function_type_hints_utils.py | 1 | #!/usr/bin/env python |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_utils.py | 333 | |
| LOW | tests/test_utils.py | 226 | |
| LOW | examples/structured_output_tool.py | 19 | |
| LOW | src/smolagents/memory.py | 12 | |
| LOW | src/smolagents/tools.py | 17 | |
| LOW | src/smolagents/tools.py | 64 | |
| LOW | src/smolagents/__init__.py | 19 | |
| LOW | src/smolagents/__init__.py | 20 | |
| LOW | src/smolagents/__init__.py | 21 | |
| LOW | src/smolagents/__init__.py | 22 | |
| LOW | src/smolagents/__init__.py | 23 | |
| LOW | src/smolagents/__init__.py | 24 | |
| LOW | src/smolagents/__init__.py | 25 | |
| LOW | src/smolagents/__init__.py | 26 | |
| LOW | src/smolagents/__init__.py | 27 | |
| LOW | src/smolagents/__init__.py | 28 | |
| LOW | src/smolagents/__init__.py | 29 | |
| LOW | src/smolagents/__init__.py | 30 | |
| LOW | src/smolagents/__init__.py | 31 | |
| LOW | src/smolagents/__init__.py | 32 | |
| LOW | src/smolagents/agents.py | 45 | |
| LOW | src/smolagents/utils.py | 38 | |
| LOW | src/smolagents/mcp_client.py | 18 | |
| LOW | src/smolagents/mcp_client.py | 30 | |
| LOW | src/smolagents/remote_executors.py | 896 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_import.py | 25 | # Check if the import was successful |
| LOW | tests/test_tools.py | 115 | # Check if we expect this to raise an exception |
| LOW | examples/multiple_tools.py | 38 | if data.get("error"): # Check if there's an error in the response |
| LOW | examples/open_deep_research/scripts/mdconvert.py | 624 | # Return the result |
| LOW | src/smolagents/local_python_executor.py | 611 | # Check if it is a docstring: first statement in class body which is a string literal expression |
| LOW | src/smolagents/tools.py | 182 | # Check if all elements are strings |
| LOW | src/smolagents/tool_validation.py | 198 | # Check if the assignment is more complex than simple literals |
| LOW | src/smolagents/agents.py | 1463 | # Check if the tool exists |
| LOW | src/smolagents/cli.py | 265 | # Check if we should run in interactive mode |
| LOW | src/smolagents/utils.py | 572 | # Check if we should retry |
| LOW | src/smolagents/remote_executors.py | 183 | # Check if all keys are strings (JSON-compatible) |
| LOW | src/smolagents/remote_executors.py | 389 | # Check if the error is a FinalAnswerException |
| LOW | src/smolagents/remote_executors.py | 614 | # Check if image exists, unless forced to rebuild |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | examples/open_deep_research/scripts/mdconvert.py | 442 | alt_text = shape._element._nvXxPr.cNvPr.attrib.get("descr", "") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | examples/rag_using_chromadb.py | 27 | ## For your own PDFs, you can use the following code to load them into source_docs |
| LOW | examples/open_deep_research/run_gaia.py | 147 | # WARNING: this dataset is gated: make sure you visit the repo to require access. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_function_type_hints_utils.py | 85 | def process_data(items: list[str], config: dict[str, float], point: tuple[int, int]) -> dict: |
| LOW | tests/test_serialization.py | 453 | def my_function(): |
| LOW | tests/test_tools.py | 617 | def test_function(items: list[str]) -> str: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/smolagents/local_python_executor.py | 634 | # For declarations without values (x: int), just return None |
| LOW | src/smolagents/local_python_executor.py | 1462 | # Constant -> just return the value |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_serialization.py | 742 | person = Person(name="Bob", address=Address(street="123 Main St", city="NYC")) |
| LOW | tests/test_serialization.py | 747 | assert result["address"]["street"] == "123 Main St" |