id: 1 unit: def validate_tool_attributes() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 81 LOC McCabe index: 27 number of parameters: 2 id: 2 unit: def create_app() file: src/smolagents/gradio_ui.py start line: 0 end line: 0 size: 77 LOC McCabe index: 3 number of parameters: 1 id: 3 unit: def instance_to_source() file: src/smolagents/utils.py start line: 0 end line: 0 size: 62 LOC McCabe index: 32 number of parameters: 2 id: 4 unit: def parse_arguments() file: src/smolagents/cli.py start line: 0 end line: 0 size: 57 LOC McCabe index: 2 number of parameters: 0 id: 5 unit: def validate_arguments() file: src/smolagents/tools.py start line: 0 end line: 0 size: 56 LOC McCabe index: 19 number of parameters: 1 id: 6 unit: def to_messages() file: src/smolagents/memory.py start line: 0 end line: 0 size: 55 LOC McCabe index: 10 number of parameters: 2 id: 7 unit: def _process_action_step() file: src/smolagents/gradio_ui.py start line: 0 end line: 0 size: 54 LOC McCabe index: 16 number of parameters: 2 id: 8 unit: def save() file: src/smolagents/agents.py start line: 0 end line: 0 size: 50 LOC McCabe index: 12 number of parameters: 3 id: 9 unit: def forward() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 48 LOC McCabe index: 13 number of parameters: 3 id: 10 unit: def _parse_type_hint() file: src/smolagents/_function_type_hints_utils.py start line: 0 end line: 0 size: 47 LOC McCabe index: 19 number of parameters: 1 id: 11 unit: def run_code_raise_errors() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 43 LOC McCabe index: 12 number of parameters: 2 id: 12 unit: def to_dict() file: src/smolagents/tools.py start line: 0 end line: 0 size: 40 LOC McCabe index: 8 number of parameters: 1 id: 13 unit: def _create_duckduckgo_parser() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 39 LOC McCabe index: 19 number of parameters: 1 id: 14 unit: def parse_arguments() file: src/smolagents/vision_web_browser.py start line: 0 end line: 0 size: 37 LOC McCabe index: 1 number of parameters: 0 id: 15 unit: def run_code_raise_errors() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 35 LOC McCabe index: 11 number of parameters: 2 id: 16 unit: def visualize_agent_tree() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 35 LOC McCabe index: 8 number of parameters: 2 id: 17 unit: def evaluate_import() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 34 LOC McCabe index: 16 number of parameters: 3 id: 18 unit: def new_func() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 33 LOC McCabe index: 17 number of parameters: 2 id: 19 unit: def inner_evaluate() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 33 LOC McCabe index: 7 number of parameters: 4 id: 20 unit: def provide_final_answer() file: src/smolagents/agents.py start line: 0 end line: 0 size: 33 LOC McCabe index: 4 number of parameters: 3 id: 21 unit: def to_dict() file: src/smolagents/agents.py start line: 0 end line: 0 size: 32 LOC McCabe index: 13 number of parameters: 1 id: 22 unit: def launch_gradio_demo() file: src/smolagents/tools.py start line: 0 end line: 0 size: 31 LOC McCabe index: 3 number of parameters: 1 id: 23 unit: def process_single_tool_call() file: src/smolagents/agents.py start line: 0 end line: 0 size: 30 LOC McCabe index: 6 number of parameters: 1 id: 24 unit: def run_code_raise_errors() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 29 LOC McCabe index: 11 number of parameters: 2 id: 25 unit: def execute_tool_call() file: src/smolagents/agents.py start line: 0 end line: 0 size: 29 LOC McCabe index: 10 number of parameters: 4 id: 26 unit: def get_json_schema() file: src/smolagents/_function_type_hints_utils.py start line: 0 end line: 0 size: 27 LOC McCabe index: 9 number of parameters: 1 id: 27 unit: def to_dict() file: src/smolagents/models.py start line: 0 end line: 0 size: 27 LOC McCabe index: 5 number of parameters: 1 id: 28 unit: def _convert_type_hints_to_json_schema() file: src/smolagents/_function_type_hints_utils.py start line: 0 end line: 0 size: 26 LOC McCabe index: 11 number of parameters: 2 id: 29 unit: def __init__() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 26 LOC McCabe index: 11 number of parameters: 2 id: 30 unit: def get_source() file: src/smolagents/utils.py start line: 0 end line: 0 size: 26 LOC McCabe index: 6 number of parameters: 1 id: 31 unit: def interact_with_agent() file: src/smolagents/gradio_ui.py start line: 0 end line: 0 size: 26 LOC McCabe index: 7 number of parameters: 4 id: 32 unit: def tool() file: src/smolagents/tools.py start line: 0 end line: 0 size: 26 LOC McCabe index: 6 number of parameters: 1 id: 33 unit: def from_dict() file: src/smolagents/agents.py start line: 0 end line: 0 size: 25 LOC McCabe index: 5 number of parameters: 4 id: 34 unit: def _process_final_answer_step() file: src/smolagents/gradio_ui.py start line: 0 end line: 0 size: 25 LOC McCabe index: 4 number of parameters: 1 id: 35 unit: def setup() file: src/smolagents/tools.py start line: 0 end line: 0 size: 24 LOC McCabe index: 10 number of parameters: 1 id: 36 unit: def _send_execute_request() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 23 LOC McCabe index: 1 number of parameters: 2 id: 37 unit: def __init__() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 23 LOC McCabe index: 7 number of parameters: 3 id: 38 unit: def forward() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 22 LOC McCabe index: 6 number of parameters: 2 id: 39 unit: def get_safe_module() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 22 LOC McCabe index: 12 number of parameters: 3 id: 40 unit: def from_langchain() file: src/smolagents/tools.py start line: 0 end line: 0 size: 22 LOC McCabe index: 5 number of parameters: 1 id: 41 unit: def parse_json_blob() file: src/smolagents/utils.py start line: 0 end line: 0 size: 21 LOC McCabe index: 5 number of parameters: 1 id: 42 unit: def log_markdown() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 21 LOC McCabe index: 2 number of parameters: 5 id: 43 unit: def get_tool_json_schema() file: src/smolagents/models.py start line: 0 end line: 0 size: 20 LOC McCabe index: 5 number of parameters: 1 id: 44 unit: def __call__() file: src/smolagents/agents.py start line: 0 end line: 0 size: 20 LOC McCabe index: 4 number of parameters: 3 id: 45 unit: def make_json_serializable() file: src/smolagents/utils.py start line: 0 end line: 0 size: 20 LOC McCabe index: 16 number of parameters: 1 id: 46 unit: def parse_code_blobs() file: src/smolagents/utils.py start line: 0 end line: 0 size: 20 LOC McCabe index: 5 number of parameters: 1 id: 47 unit: def search_bing() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 19 LOC McCabe index: 2 number of parameters: 2 id: 48 unit: def _start_deno_server() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 19 LOC McCabe index: 6 number of parameters: 1 id: 49 unit: def __init__() file: src/smolagents/agents.py start line: 0 end line: 0 size: 19 LOC McCabe index: 1 number of parameters: 0 id: 50 unit: def dict() file: src/smolagents/memory.py start line: 0 end line: 0 size: 18 LOC McCabe index: 9 number of parameters: 1 id: 51 unit: def __init__() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 17 LOC McCabe index: 2 number of parameters: 4 id: 52 unit: def _patch_final_answer_with_exception() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 17 LOC McCabe index: 1 number of parameters: 2 id: 53 unit: def create_python_executor() file: src/smolagents/agents.py start line: 0 end line: 0 size: 17 LOC McCabe index: 3 number of parameters: 1 id: 54 unit: def replay() file: src/smolagents/memory.py start line: 0 end line: 0 size: 17 LOC McCabe index: 10 number of parameters: 3 id: 55 unit: def save_screenshot() file: src/smolagents/vision_web_browser.py start line: 0 end line: 0 size: 17 LOC McCabe index: 7 number of parameters: 2 id: 56 unit: def __call__() file: src/smolagents/tools.py start line: 0 end line: 0 size: 17 LOC McCabe index: 8 number of parameters: 4 id: 57 unit: def validate_tool_arguments() file: src/smolagents/tools.py start line: 0 end line: 0 size: 17 LOC McCabe index: 10 number of parameters: 2 id: 58 unit: def forward() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 16 LOC McCabe index: 5 number of parameters: 2 id: 59 unit: def check_safer_result() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 16 LOC McCabe index: 12 number of parameters: 4 id: 60 unit: def get_current_value() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 16 LOC McCabe index: 8 number of parameters: 1 id: 61 unit: def from_dict() file: src/smolagents/models.py start line: 0 end line: 0 size: 16 LOC McCabe index: 3 number of parameters: 4 id: 62 unit: def get_tool_call_from_text() file: src/smolagents/models.py start line: 0 end line: 0 size: 16 LOC McCabe index: 3 number of parameters: 3 id: 63 unit: def make_stopping_criteria() file: src/smolagents/models.py start line: 0 end line: 0 size: 16 LOC McCabe index: 3 number of parameters: 3 id: 64 unit: def to_string() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 16 LOC McCabe index: 4 number of parameters: 1 id: 65 unit: def _setup_managed_agents() file: src/smolagents/agents.py start line: 0 end line: 0 size: 16 LOC McCabe index: 7 number of parameters: 2 id: 66 unit: def from_folder() file: src/smolagents/agents.py start line: 0 end line: 0 size: 16 LOC McCabe index: 4 number of parameters: 3 id: 67 unit: def upload_file() file: src/smolagents/gradio_ui.py start line: 0 end line: 0 size: 16 LOC McCabe index: 5 number of parameters: 4 id: 68 unit: def _prepare_hub_files() file: src/smolagents/tools.py start line: 0 end line: 0 size: 16 LOC McCabe index: 1 number of parameters: 1 id: 69 unit: def from_code() file: src/smolagents/tools.py start line: 0 end line: 0 size: 16 LOC McCabe index: 6 number of parameters: 3 id: 70 unit: def _get_json_schema_type() file: src/smolagents/_function_type_hints_utils.py start line: 0 end line: 0 size: 15 LOC McCabe index: 7 number of parameters: 1 id: 71 unit: def send_tools() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 15 LOC McCabe index: 7 number of parameters: 3 id: 72 unit: def handle_agent_output_types() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 15 LOC McCabe index: 6 number of parameters: 2 id: 73 unit: def initialize_system_prompt() file: src/smolagents/agents.py start line: 0 end line: 0 size: 15 LOC McCabe index: 2 number of parameters: 1 id: 74 unit: def visit_Name() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 15 LOC McCabe index: 12 number of parameters: 2 id: 75 unit: def visit_Call() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 15 LOC McCabe index: 11 number of parameters: 2 id: 76 unit: def log_code() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 15 LOC McCabe index: 1 number of parameters: 4 id: 77 unit: def to_raw() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 14 LOC McCabe index: 4 number of parameters: 1 id: 78 unit: def __init__() file: src/smolagents/agents.py start line: 0 end line: 0 size: 14 LOC McCabe index: 1 number of parameters: 0 id: 79 unit: def __call__() file: src/smolagents/tools.py start line: 0 end line: 0 size: 14 LOC McCabe index: 9 number of parameters: 4 id: 80 unit: def sanitize_argument_for_prediction() file: src/smolagents/tools.py start line: 0 end line: 0 size: 14 LOC McCabe index: 8 number of parameters: 2 id: 81 unit: def from_gradio() file: src/smolagents/tools.py start line: 0 end line: 0 size: 14 LOC McCabe index: 2 number of parameters: 1 id: 82 unit: def __init__() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 13 LOC McCabe index: 3 number of parameters: 2 id: 83 unit: def safer_eval() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 84 unit: def cleanup() file: src/smolagents/models.py start line: 0 end line: 0 size: 13 LOC McCabe index: 2 number of parameters: 1 id: 85 unit: def _handle_max_steps_reached() file: src/smolagents/agents.py start line: 0 end line: 0 size: 13 LOC McCabe index: 1 number of parameters: 3 id: 86 unit: def extract_action() file: src/smolagents/agents.py start line: 0 end line: 0 size: 13 LOC McCabe index: 3 number of parameters: 3 id: 87 unit: def pull_messages_from_step() file: src/smolagents/gradio_ui.py start line: 0 end line: 0 size: 13 LOC McCabe index: 5 number of parameters: 2 id: 88 unit: def __init__() file: src/smolagents/gradio_ui.py start line: 0 end line: 0 size: 13 LOC McCabe index: 6 number of parameters: 4 id: 89 unit: def get_tools_definition_code() file: src/smolagents/tools.py start line: 0 end line: 0 size: 13 LOC McCabe index: 3 number of parameters: 2 id: 90 unit: def get_imports() file: src/smolagents/_function_type_hints_utils.py start line: 0 end line: 0 size: 12 LOC McCabe index: 6 number of parameters: 1 id: 91 unit: def __init__() file: src/smolagents/models.py start line: 0 end line: 0 size: 12 LOC McCabe index: 1 number of parameters: 0 id: 92 unit: def _setup_tools() file: src/smolagents/agents.py start line: 0 end line: 0 size: 12 LOC McCabe index: 7 number of parameters: 3 id: 93 unit: def main() file: src/smolagents/cli.py start line: 0 end line: 0 size: 12 LOC McCabe index: 1 number of parameters: 0 id: 94 unit: def update_metrics() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 12 LOC McCabe index: 2 number of parameters: 2 id: 95 unit: def log_user_message() file: src/smolagents/gradio_ui.py start line: 0 end line: 0 size: 12 LOC McCabe index: 2 number of parameters: 3 id: 96 unit: def forward() file: src/smolagents/tools.py start line: 0 end line: 0 size: 12 LOC McCabe index: 6 number of parameters: 3 id: 97 unit: def forward() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 11 LOC McCabe index: 1 number of parameters: 2 id: 98 unit: def search_duckduckgo() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 11 LOC McCabe index: 1 number of parameters: 2 id: 99 unit: def _parse_union_type() file: src/smolagents/_function_type_hints_utils.py start line: 0 end line: 0 size: 11 LOC McCabe index: 8 number of parameters: 2 id: 100 unit: def cleanup() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 11 LOC McCabe index: 6 number of parameters: 1 id: 101 unit: def lambda_func() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 102 unit: def __call__() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 11 LOC McCabe index: 1 number of parameters: 2 id: 103 unit: def parse_tool_calls() file: src/smolagents/models.py start line: 0 end line: 0 size: 11 LOC McCabe index: 4 number of parameters: 2 id: 104 unit: def __init__() file: src/smolagents/models.py start line: 0 end line: 0 size: 11 LOC McCabe index: 1 number of parameters: 0 id: 105 unit: def _validate_tools_and_managed_agents() file: src/smolagents/agents.py start line: 0 end line: 0 size: 11 LOC McCabe index: 6 number of parameters: 3 id: 106 unit: def __init__() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 11 LOC McCabe index: 1 number of parameters: 3 id: 107 unit: def log_task() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 11 LOC McCabe index: 2 number of parameters: 5 id: 108 unit: def log_messages() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 11 LOC McCabe index: 2 number of parameters: 3 id: 109 unit: def _process_planning_step() file: src/smolagents/gradio_ui.py start line: 0 end line: 0 size: 11 LOC McCabe index: 2 number of parameters: 2 id: 110 unit: def _initialize_hub_repo() file: src/smolagents/tools.py start line: 0 end line: 0 size: 11 LOC McCabe index: 1 number of parameters: 3 id: 111 unit: def __init__() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 10 LOC McCabe index: 2 number of parameters: 3 id: 112 unit: def __init__() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 10 LOC McCabe index: 2 number of parameters: 4 id: 113 unit: def cleanup() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 114 unit: def build_import_tree() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 10 LOC McCabe index: 4 number of parameters: 1 id: 115 unit: def render_as_markdown() file: src/smolagents/models.py start line: 0 end line: 0 size: 10 LOC McCabe index: 4 number of parameters: 1 id: 116 unit: def _prepare_completion_kwargs() file: src/smolagents/models.py start line: 0 end line: 0 size: 10 LOC McCabe index: 1 number of parameters: 0 id: 117 unit: def _prepare_completion_kwargs() file: src/smolagents/models.py start line: 0 end line: 0 size: 10 LOC McCabe index: 1 number of parameters: 0 id: 118 unit: def to_raw() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 10 LOC McCabe index: 4 number of parameters: 1 id: 119 unit: def initialize_system_prompt() file: src/smolagents/agents.py start line: 0 end line: 0 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 120 unit: def from_dict() file: src/smolagents/agents.py start line: 0 end line: 0 size: 10 LOC McCabe index: 3 number of parameters: 4 id: 121 unit: def __init__() file: src/smolagents/tools.py start line: 0 end line: 0 size: 10 LOC McCabe index: 1 number of parameters: 0 id: 122 unit: def format_markdown() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 9 LOC McCabe index: 3 number of parameters: 2 id: 123 unit: def cleanup() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 124 unit: def __init__() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 125 unit: def fix_final_answer_code() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 9 LOC McCabe index: 8 number of parameters: 1 id: 126 unit: def check_import_authorized() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 9 LOC McCabe index: 4 number of parameters: 2 id: 127 unit: def __init__() file: src/smolagents/models.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 128 unit: def to_string() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 129 unit: def __init__() file: src/smolagents/agents.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 130 unit: def visit_Assign() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 9 LOC McCabe index: 6 number of parameters: 2 id: 131 unit: def visit_For() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 9 LOC McCabe index: 5 number of parameters: 2 id: 132 unit: def run_smolagent() file: src/smolagents/cli.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 133 unit: def truncate_content() file: src/smolagents/utils.py start line: 0 end line: 0 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 134 unit: def is_same_method() file: src/smolagents/utils.py start line: 0 end line: 0 size: 9 LOC McCabe index: 7 number of parameters: 2 id: 135 unit: def log_rule() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 3 id: 136 unit: def dict() file: src/smolagents/memory.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 137 unit: def to_messages() file: src/smolagents/memory.py start line: 0 end line: 0 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 138 unit: def search_item_ctrl_f() file: src/smolagents/vision_web_browser.py start line: 0 end line: 0 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 139 unit: def initialize_agent() file: src/smolagents/vision_web_browser.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 140 unit: def forward() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 141 unit: def _truncate_content() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 8 LOC McCabe index: 2 number of parameters: 3 id: 142 unit: def parse_json_if_needed() file: src/smolagents/models.py start line: 0 end line: 0 size: 8 LOC McCabe index: 3 number of parameters: 1 id: 143 unit: def __init__() file: src/smolagents/models.py start line: 0 end line: 0 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 144 unit: def create_client() file: src/smolagents/models.py start line: 0 end line: 0 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 145 unit: def __init__() file: src/smolagents/models.py start line: 0 end line: 0 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 146 unit: def create_client() file: src/smolagents/models.py start line: 0 end line: 0 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 147 unit: def create_client() file: src/smolagents/models.py start line: 0 end line: 0 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 148 unit: def create_client() file: src/smolagents/models.py start line: 0 end line: 0 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 149 unit: def create_client() file: src/smolagents/models.py start line: 0 end line: 0 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 150 unit: def run() file: src/smolagents/agents.py start line: 0 end line: 0 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 151 unit: def _handle_comprehension_generators() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 8 LOC McCabe index: 6 number of parameters: 2 id: 152 unit: def escape_code_brackets() file: src/smolagents/utils.py start line: 0 end line: 0 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 153 unit: def _clean_model_output() file: src/smolagents/gradio_ui.py start line: 0 end line: 0 size: 8 LOC McCabe index: 3 number of parameters: 1 id: 154 unit: def _format_code_content() file: src/smolagents/gradio_ui.py start line: 0 end line: 0 size: 8 LOC McCabe index: 4 number of parameters: 1 id: 155 unit: def validate_after_init() file: src/smolagents/tools.py start line: 0 end line: 0 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 156 unit: def extract_results() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 157 unit: def search() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 7 LOC McCabe index: 3 number of parameters: 2 id: 158 unit: def __init__() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 159 unit: def get_iterable() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 7 LOC McCabe index: 3 number of parameters: 1 id: 160 unit: def set_value() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 161 unit: def evaluate_python_code() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 162 unit: def __init__() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 163 unit: def last_input_token_count() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 164 unit: def last_output_token_count() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 165 unit: def generate() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 166 unit: def generate() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 167 unit: def __init__() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 168 unit: def generate() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 169 unit: def __init__() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 170 unit: def generate() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 171 unit: def generate_stream() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 172 unit: def generate() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 173 unit: def generate_stream() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 174 unit: def generate() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 175 unit: def generate_stream() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 176 unit: def generate_stream() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 177 unit: def generate() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 178 unit: def __init__() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 179 unit: def generate() file: src/smolagents/models.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 180 unit: def push_to_hub() file: src/smolagents/agents.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 181 unit: def _substitute_state_variables() file: src/smolagents/agents.py start line: 0 end line: 0 size: 7 LOC McCabe index: 4 number of parameters: 3 id: 182 unit: def to_dict() file: src/smolagents/agents.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 183 unit: def get_step_footnote_content() file: src/smolagents/gradio_ui.py start line: 0 end line: 0 size: 7 LOC McCabe index: 3 number of parameters: 2 id: 184 unit: def initialize_driver() file: src/smolagents/vision_web_browser.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 185 unit: def run_webagent() file: src/smolagents/vision_web_browser.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 186 unit: def save() file: src/smolagents/tools.py start line: 0 end line: 0 size: 7 LOC McCabe index: 2 number of parameters: 4 id: 187 unit: def push_to_hub() file: src/smolagents/tools.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 188 unit: def __init__() file: src/smolagents/tools.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 189 unit: def forward() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 6 LOC McCabe index: 3 number of parameters: 2 id: 190 unit: def __init__() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 191 unit: def _create_deno_runner() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 192 unit: def evaluate_attribute() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 193 unit: def evaluate_unaryop() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 194 unit: def evaluate_lambda() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 195 unit: def evaluate_while() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 196 unit: def create_function() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 197 unit: def evaluate_function_def() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 198 unit: def evaluate_class_def() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 199 unit: def evaluate_annassign() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 200 unit: def evaluate_augassign() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 201 unit: def evaluate_boolop() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 202 unit: def evaluate_binop() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 203 unit: def evaluate_assign() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 204 unit: def evaluate_call() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 205 unit: def evaluate_subscript() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 206 unit: def evaluate_name() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 207 unit: def evaluate_condition() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 208 unit: def evaluate_if() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 209 unit: def evaluate_for() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 210 unit: def evaluate_listcomp() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 211 unit: def evaluate_setcomp() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 212 unit: def evaluate_try() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 213 unit: def evaluate_raise() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 214 unit: def evaluate_assert() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 215 unit: def evaluate_with() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 216 unit: def evaluate_dictcomp() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 217 unit: def evaluate_delete() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 218 unit: def evaluate_ast() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 219 unit: def get_dict_from_nested_dataclasses() file: src/smolagents/models.py start line: 0 end line: 0 size: 6 LOC McCabe index: 4 number of parameters: 2 id: 220 unit: def _prepare_completion_args() file: src/smolagents/models.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 221 unit: def populate_template() file: src/smolagents/agents.py start line: 0 end line: 0 size: 6 LOC McCabe index: 2 number of parameters: 3 id: 222 unit: def _validate_final_answer() file: src/smolagents/agents.py start line: 0 end line: 0 size: 6 LOC McCabe index: 3 number of parameters: 2 id: 223 unit: def _finalize_step() file: src/smolagents/agents.py start line: 0 end line: 0 size: 6 LOC McCabe index: 3 number of parameters: 2 id: 224 unit: def from_hub() file: src/smolagents/agents.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 225 unit: def visit_arguments() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 6 LOC McCabe index: 4 number of parameters: 2 id: 226 unit: def visit_With() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 6 LOC McCabe index: 4 number of parameters: 2 id: 227 unit: def load_model() file: src/smolagents/cli.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 228 unit: def _is_package_available() file: src/smolagents/utils.py start line: 0 end line: 0 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 229 unit: def extract_code_from_text() file: src/smolagents/utils.py start line: 0 end line: 0 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 230 unit: def get_tools() file: src/smolagents/mcp_client.py start line: 0 end line: 0 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 231 unit: def dict() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 232 unit: def dict() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 233 unit: def __init__() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 3 id: 234 unit: def __init__() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 6 LOC McCabe index: 2 number of parameters: 3 id: 235 unit: def stream_to_gradio() file: src/smolagents/gradio_ui.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 236 unit: def from_hub() file: src/smolagents/tools.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 237 unit: def from_space() file: src/smolagents/tools.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 238 unit: def load_tool() file: src/smolagents/tools.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 239 unit: def add_description() file: src/smolagents/tools.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 240 unit: def forward() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 5 LOC McCabe index: 2 number of parameters: 2 id: 241 unit: def __new__() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 3 id: 242 unit: def __init__() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 3 id: 243 unit: def install_packages() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 5 LOC McCabe index: 2 number of parameters: 2 id: 244 unit: def __init__() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 245 unit: def remove_stop_sequences() file: src/smolagents/models.py start line: 0 end line: 0 size: 5 LOC McCabe index: 3 number of parameters: 2 id: 246 unit: def get_clean_message_list() file: src/smolagents/models.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 247 unit: def __init__() file: src/smolagents/models.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 248 unit: def to_raw() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 249 unit: def to_string() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 250 unit: def logs() file: src/smolagents/agents.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 251 unit: def visit_ImportFrom() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 5 LOC McCabe index: 4 number of parameters: 2 id: 252 unit: def visit_AnnAssign() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 5 LOC McCabe index: 3 number of parameters: 2 id: 253 unit: def is_same_item() file: src/smolagents/utils.py start line: 0 end line: 0 size: 5 LOC McCabe index: 3 number of parameters: 2 id: 254 unit: def disconnect() file: src/smolagents/mcp_client.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 255 unit: def __exit__() file: src/smolagents/mcp_client.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 256 unit: def get_total_token_counts() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 257 unit: def log() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 5 LOC McCabe index: 3 number of parameters: 4 id: 258 unit: def to_messages() file: src/smolagents/memory.py start line: 0 end line: 0 size: 5 LOC McCabe index: 3 number of parameters: 2 id: 259 unit: def _get_gradio_app_code() file: src/smolagents/tools.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 260 unit: def from_hub() file: src/smolagents/tools.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 261 unit: def __init__() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 262 unit: def parse_results() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 2 id: 263 unit: def encode() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 264 unit: def send_variables() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 265 unit: def nodunder_getattr() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 4 LOC McCabe index: 3 number of parameters: 3 id: 266 unit: def safer_func() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 267 unit: def _check_return() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 268 unit: def supports_stop_parameter() file: src/smolagents/models.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 269 unit: def handle_agent_input_types() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 4 LOC McCabe index: 5 number of parameters: 2 id: 270 unit: def _validate_name() file: src/smolagents/agents.py start line: 0 end line: 0 size: 4 LOC McCabe index: 3 number of parameters: 2 id: 271 unit: def visit_Import() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 4 LOC McCabe index: 3 number of parameters: 2 id: 272 unit: def visit_ExceptHandler() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 2 id: 273 unit: def __init__() file: src/smolagents/utils.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 274 unit: def visit_Import() file: src/smolagents/utils.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 2 id: 275 unit: def visit_ImportFrom() file: src/smolagents/utils.py start line: 0 end line: 0 size: 4 LOC McCabe index: 3 number of parameters: 2 id: 276 unit: def get_method_source() file: src/smolagents/utils.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 277 unit: def encode_image_base64() file: src/smolagents/utils.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 278 unit: def make_init_file() file: src/smolagents/utils.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 279 unit: def reset() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 280 unit: def to_messages() file: src/smolagents/memory.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 2 id: 281 unit: def get_succinct_steps() file: src/smolagents/memory.py start line: 0 end line: 0 size: 4 LOC McCabe index: 4 number of parameters: 1 id: 282 unit: def get_full_steps() file: src/smolagents/memory.py start line: 0 end line: 0 size: 4 LOC McCabe index: 3 number of parameters: 1 id: 283 unit: def return_full_code() file: src/smolagents/memory.py start line: 0 end line: 0 size: 4 LOC McCabe index: 4 number of parameters: 1 id: 284 unit: def from_dict() file: src/smolagents/tools.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 4 id: 285 unit: def forward() file: src/smolagents/tools.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 286 unit: def forward() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 287 unit: def __init__() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 288 unit: def install_packages() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 289 unit: def append() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 290 unit: def __iadd__() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 291 unit: def create_client() file: src/smolagents/models.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 292 unit: def _ipython_display_() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 293 unit: def save() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 4 id: 294 unit: def _ipython_display_() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 295 unit: def get_variable_names() file: src/smolagents/agents.py start line: 0 end line: 0 size: 3 LOC McCabe index: 2 number of parameters: 2 id: 296 unit: def system_prompt() file: src/smolagents/agents.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 297 unit: def write_memory_to_messages() file: src/smolagents/agents.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 298 unit: def cleanup() file: src/smolagents/agents.py start line: 0 end line: 0 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 299 unit: def visit_ListComp() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 300 unit: def visit_DictComp() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 301 unit: def visit_SetComp() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 302 unit: def visit_Attribute() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 3 LOC McCabe index: 3 number of parameters: 2 id: 303 unit: def visit_ClassDef() file: src/smolagents/tool_validation.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 304 unit: def __init__() file: src/smolagents/mcp_client.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 305 unit: def __init__() file: src/smolagents/memory.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 306 unit: def main() file: src/smolagents/vision_web_browser.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 307 unit: def __init_subclass__() file: src/smolagents/tools.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 308 unit: def forward() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 309 unit: def __init__() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 310 unit: def forward() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 311 unit: def decode() file: src/smolagents/default_tools.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 312 unit: def get_package_name() file: src/smolagents/_function_type_hints_utils.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 313 unit: def _parse_google_format_docstring() file: src/smolagents/_function_type_hints_utils.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 314 unit: def run_code_raise_errors() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 315 unit: def __call__() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 316 unit: def delete() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 317 unit: def delete() file: src/smolagents/remote_executors.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 318 unit: def custom_print() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 319 unit: def __init__() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 320 unit: def __str__() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 321 unit: def __repr__() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 322 unit: def __len__() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 323 unit: def __init__() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 324 unit: def __init__() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 325 unit: def final_answer() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 326 unit: def send_variables() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 327 unit: def send_tools() file: src/smolagents/local_python_executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 3 id: 328 unit: def __str__() file: src/smolagents/models.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 329 unit: def roles() file: src/smolagents/models.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 1 id: 330 unit: def model_dump_json() file: src/smolagents/models.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 331 unit: def dict() file: src/smolagents/models.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 332 unit: def agglomerate_stream_deltas() file: src/smolagents/models.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 333 unit: def __call__() file: src/smolagents/models.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 3 id: 334 unit: def from_dict() file: src/smolagents/models.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 3 id: 335 unit: def __init__() file: src/smolagents/models.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 336 unit: def create_client() file: src/smolagents/models.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 337 unit: def __init__() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 338 unit: def __str__() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 339 unit: def to_raw() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 340 unit: def to_string() file: src/smolagents/agent_types.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 341 unit: def system_prompt() file: src/smolagents/agents.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 342 unit: def _run_stream() file: src/smolagents/agents.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 343 unit: def _generate_planning_step() file: src/smolagents/agents.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 344 unit: def initialize_system_prompt() file: src/smolagents/agents.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 345 unit: def interrupt() file: src/smolagents/agents.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 346 unit: def _step_stream() file: src/smolagents/agents.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 347 unit: def step() file: src/smolagents/agents.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 348 unit: def visualize() file: src/smolagents/agents.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 349 unit: def replay() file: src/smolagents/agents.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 350 unit: def tools_and_managed_agents() file: src/smolagents/agents.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 351 unit: def _step_stream() file: src/smolagents/agents.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 352 unit: def process_tool_calls() file: src/smolagents/agents.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 353 unit: def __enter__() file: src/smolagents/agents.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 354 unit: def __exit__() file: src/smolagents/agents.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 4 id: 355 unit: def _step_stream() file: src/smolagents/agents.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 356 unit: def dict() file: src/smolagents/utils.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 357 unit: def __init__() file: src/smolagents/utils.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 358 unit: def make_image_url() file: src/smolagents/utils.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 359 unit: def is_valid_name() file: src/smolagents/utils.py start line: 0 end line: 0 size: 2 LOC McCabe index: 3 number of parameters: 1 id: 360 unit: def connect() file: src/smolagents/mcp_client.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 361 unit: def __enter__() file: src/smolagents/mcp_client.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 362 unit: def __post_init__() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 363 unit: def duration() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 1 id: 364 unit: def __repr__() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 365 unit: def log_error() file: src/smolagents/monitoring.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 366 unit: def launch() file: src/smolagents/gradio_ui.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 3 id: 367 unit: def dict() file: src/smolagents/memory.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 368 unit: def to_messages() file: src/smolagents/memory.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 369 unit: def reset() file: src/smolagents/memory.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 370 unit: def go_back() file: src/smolagents/vision_web_browser.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 371 unit: def close_popups() file: src/smolagents/vision_web_browser.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 372 unit: def __init__() file: src/smolagents/tools.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 3 id: 373 unit: def forward() file: src/smolagents/tools.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 3 id: 374 unit: def setup() file: src/smolagents/tools.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 375 unit: def _write_file() file: src/smolagents/tools.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 3 id: 376 unit: def _get_tool_code() file: src/smolagents/tools.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 377 unit: def _get_requirements() file: src/smolagents/tools.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 378 unit: def __init__() file: src/smolagents/tools.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 379 unit: def from_mcp() file: src/smolagents/tools.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 380 unit: def encode() file: src/smolagents/tools.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 381 unit: def decode() file: src/smolagents/tools.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2