SYMBOL INDEX (536 symbols across 94 files) FILE: interpreter/__init__.py function print_markdown (line 8) | def print_markdown(message): function check_for_update (line 35) | def check_for_update(): FILE: interpreter/computer_use/loop.py function print_markdown (line 56) | def print_markdown(message): class APIProvider (line 80) | class APIProvider(StrEnum): function sampling_loop (line 113) | async def sampling_loop( function _maybe_filter_to_n_most_recent_images (line 239) | def _maybe_filter_to_n_most_recent_images( function _make_api_tool_result (line 288) | def _make_api_tool_result( function _maybe_prepend_system_tool_result (line 324) | def _maybe_prepend_system_tool_result(result: ToolResult, result_text: s... function main (line 330) | async def main(): function run_async_main (line 522) | def run_async_main(): function check_mouse_position (line 544) | def check_mouse_position(): class ChatMessage (line 566) | class ChatMessage(BaseModel): class ChatCompletionRequest (line 571) | class ChatCompletionRequest(BaseModel): FILE: interpreter/computer_use/tools/base.py class BaseAnthropicTool (line 8) | class BaseAnthropicTool(metaclass=ABCMeta): method __call__ (line 12) | def __call__(self, **kwargs) -> Any: method to_params (line 17) | def to_params( class ToolResult (line 24) | class ToolResult: method __bool__ (line 32) | def __bool__(self): method __add__ (line 35) | def __add__(self, other: "ToolResult"): method replace (line 52) | def replace(self, **kwargs): class CLIResult (line 57) | class CLIResult(ToolResult): class ToolFailure (line 61) | class ToolFailure(ToolResult): class ToolError (line 65) | class ToolError(Exception): method __init__ (line 68) | def __init__(self, message): FILE: interpreter/computer_use/tools/bash.py class _BashSession (line 10) | class _BashSession: method __init__ (line 21) | def __init__(self): method start (line 25) | async def start(self): method stop (line 41) | def stop(self): method run (line 49) | async def run(self, command: str): class BashTool (line 119) | class BashTool(BaseAnthropicTool): method __init__ (line 129) | def __init__(self): method __call__ (line 133) | async def __call__( method to_params (line 153) | def to_params(self) -> BetaToolBash20241022Param: FILE: interpreter/computer_use/tools/collection.py class ToolCollection (line 10) | class ToolCollection: method __init__ (line 13) | def __init__(self, *tools: BaseAnthropicTool): method to_params (line 17) | def to_params( method run (line 22) | async def run(self, *, name: str, tool_input: dict[str, Any]) -> ToolR... FILE: interpreter/computer_use/tools/computer.py class Resolution (line 41) | class Resolution(TypedDict): class ScalingSource (line 55) | class ScalingSource(StrEnum): class ComputerToolOptions (line 60) | class ComputerToolOptions(TypedDict): function chunks (line 66) | def chunks(s: str, chunk_size: int) -> list[str]: function smooth_move_to (line 70) | def smooth_move_to(x, y, duration=1.2): class ComputerTool (line 94) | class ComputerTool(BaseAnthropicTool): method options (line 110) | def options(self) -> ComputerToolOptions: method to_params (line 120) | def to_params(self) -> BetaToolComputerUse20241022Param: method __init__ (line 123) | def __init__(self): method __call__ (line 128) | async def __call__( method screenshot (line 222) | async def screenshot(self): method shell (line 247) | async def shell(self, command: str, take_screenshot=True) -> ToolResult: method scale_coordinates (line 259) | def scale_coordinates(self, source: ScalingSource, x: int, y: int): FILE: interpreter/computer_use/tools/edit.py class EditTool (line 20) | class EditTool(BaseAnthropicTool): method __init__ (line 31) | def __init__(self): method to_params (line 35) | def to_params(self) -> BetaToolTextEditor20241022Param: method __call__ (line 41) | async def __call__( method validate_path (line 105) | def validate_path(self, command: str, path: Path): method view (line 131) | async def view(self, path: Path, view_range: list[int] | None = None): method str_replace (line 178) | def str_replace(self, path: Path, old_str: str, new_str: str | None): method insert (line 226) | def insert(self, path: Path, insert_line: int, new_str: str): method undo_edit (line 265) | def undo_edit(self, path: Path): method read_file (line 277) | def read_file(self, path: Path): method write_file (line 284) | def write_file(self, path: Path, file: str): method _make_output (line 291) | def _make_output( FILE: interpreter/computer_use/tools/run.py function maybe_truncate (line 9) | def maybe_truncate(content: str, truncate_after: int | None = MAX_RESPON... function run (line 18) | async def run( FILE: interpreter/computer_use/unused_markdown.py class Style (line 6) | class Style(Enum): class MarkdownStreamer (line 15) | class MarkdownStreamer: method __init__ (line 16) | def __init__(self): method write_char (line 36) | def write_char(self, char: str): method handle_marker (line 48) | def handle_marker(self, char: str) -> bool: method handle_horizontal_rule (line 104) | def handle_horizontal_rule(self, char: str) -> bool: method handle_line_start (line 123) | def handle_line_start(self, char: str) -> bool: method feed (line 152) | def feed(self, char: str): method reset (line 182) | def reset(self): FILE: interpreter/core/archived_server_1.py function server (line 11) | def server(interpreter, host="0.0.0.0", port=8000): FILE: interpreter/core/archived_server_2.py class Settings (line 29) | class Settings(BaseModel): class AsyncInterpreter (line 35) | class AsyncInterpreter: method __init__ (line 36) | def __init__(self, interpreter): method _add_to_queue (line 69) | async def _add_to_queue(self, queue, item): method clear_queue (line 72) | async def clear_queue(self, queue): method clear_input_queue (line 76) | async def clear_input_queue(self): method clear_output_queue (line 79) | async def clear_output_queue(self): method input (line 82) | async def input(self, chunk): method add_to_output_queue_sync (line 106) | def add_to_output_queue_sync(self, chunk): method run (line 112) | async def run(self): method output (line 191) | async def output(self): function server (line 195) | def server(interpreter, port=8000): # Default port is 8000 if not speci... FILE: interpreter/core/async_core.py class AsyncInterpreter (line 44) | class AsyncInterpreter(OpenInterpreter): method __init__ (line 45) | def __init__(self, *args, **kwargs): method input (line 65) | async def input(self, chunk): method output (line 105) | async def output(self): method respond (line 110) | def respond(self, run_code=None): method accumulate (line 209) | def accumulate(self, chunk): function authenticate_function (line 279) | def authenticate_function(key): function create_router (line 297) | def create_router(async_interpreter): class Server (line 951) | class Server: method __init__ (line 955) | def __init__(self, async_interpreter, host=None, port=None): method host (line 984) | def host(self): method host (line 988) | def host(self, value): method port (line 993) | def port(self): method port (line 997) | def port(self, value): method run (line 1001) | def run(self, host=None, port=None, retries=5): FILE: interpreter/core/computer/ai/ai.py function split_into_chunks (line 6) | def split_into_chunks(text, tokens, llm, overlap): function chunk_responses (line 22) | def chunk_responses(responses, tokens, llm): function fast_llm (line 80) | def fast_llm(llm, system_message, user_message): function query_map_chunks (line 93) | def query_map_chunks(chunks, llm, query): function query_reduce_chunks (line 102) | def query_reduce_chunks(responses, llm, chunk_size, query): class Ai (line 116) | class Ai: method __init__ (line 117) | def __init__(self, computer): method chat (line 120) | def chat(self, text, base64=None): method query (line 167) | def query(self, text, query, custom_reduce_query=None): method summarize (line 189) | def summarize(self, text): FILE: interpreter/core/computer/browser/browser.py class Browser (line 13) | class Browser: method __init__ (line 14) | def __init__(self, computer): method driver (line 19) | def driver(self, headless=False): method driver (line 25) | def driver(self, value): method search (line 28) | def search(self, query): method fast_search (line 38) | def fast_search(self, query): method setup (line 65) | def setup(self, headless): method go_to_url (line 79) | def go_to_url(self, url): method search_google (line 84) | def search_google(self, query, delays=True): method analyze_page (line 99) | def analyze_page(self, intent): method quit (line 159) | def quit(self): FILE: interpreter/core/computer/browser/browser_next.py function setup_driver (line 14) | def setup_driver(): function fetch_page_text (line 29) | def fetch_page_text(url): function get_google_search_results (line 37) | def get_google_search_results(query): FILE: interpreter/core/computer/calendar/calendar.py class Calendar (line 23) | class Calendar: method __init__ (line 24) | def __init__(self, computer): method get_events (line 29) | def get_events(self, start_date=datetime.date.today(), end_date=None): method create_event (line 161) | def create_event( method delete_event (line 216) | def delete_event( method get_first_calendar (line 281) | def get_first_calendar(self) -> str: FILE: interpreter/core/computer/clipboard/clipboard.py class Clipboard (line 7) | class Clipboard: method __init__ (line 8) | def __init__(self, computer): method view (line 16) | def view(self): method copy (line 22) | def copy(self, text=None): method paste (line 31) | def paste(self): FILE: interpreter/core/computer/computer.py class Computer (line 22) | class Computer: method __init__ (line 23) | def __init__(self, interpreter): method languages (line 81) | def languages(self): method languages (line 85) | def languages(self, value): method _get_all_computer_tools_list (line 88) | def _get_all_computer_tools_list(self): method _get_all_computer_tools_signature_and_description (line 107) | def _get_all_computer_tools_signature_and_description(self): method _extract_tool_info (line 124) | def _extract_tool_info(self, tool): method run (line 187) | def run(self, *args, **kwargs): method exec (line 193) | def exec(self, code): method stop (line 200) | def stop(self): method terminate (line 206) | def terminate(self): method screenshot (line 212) | def screenshot(self, *args, **kwargs): method view (line 218) | def view(self, *args, **kwargs): method to_dict (line 224) | def to_dict(self): method load_dict (line 234) | def load_dict(self, data_dict): FILE: interpreter/core/computer/contacts/contacts.py class Contacts (line 6) | class Contacts: method __init__ (line 7) | def __init__(self, computer): method get_phone_number (line 10) | def get_phone_number(self, contact_name): method get_email_address (line 45) | def get_email_address(self, contact_name): method get_full_names_from_first_name (line 71) | def get_full_names_from_first_name(self, first_name): FILE: interpreter/core/computer/display/display.py class Display (line 46) | class Display: method __init__ (line 47) | def __init__(self, computer): method width (line 56) | def width(self): method height (line 62) | def height(self): method size (line 67) | def size(self): method center (line 73) | def center(self): method info (line 79) | def info(self): method view (line 85) | def view( method screenshot (line 107) | def screenshot( method find (line 216) | def find(self, description, screenshot=None): method find_text (line 277) | def find_text(self, text, screenshot=None): method get_text_as_list_of_lists (line 309) | def get_text_as_list_of_lists(self, screenshot=None): function take_screenshot_to_pil (line 342) | def take_screenshot_to_pil(screen=0, combine_screens=True): function get_displays (line 441) | def get_displays(): FILE: interpreter/core/computer/display/point/point.py function take_screenshot_to_pil (line 27) | def take_screenshot_to_pil(filename="temp_screenshot.png"): function point (line 45) | def point(description, screenshot=None, debug=False, hashes=None): function find_icon (line 52) | def find_icon(description, screenshot=None, debug=False, hashes=None): function embed_images (line 481) | def embed_images(images: List[Image.Image], model, transforms): function image_search (line 504) | def image_search(query, icons, hashes, debug): function get_element_boxes (line 551) | def get_element_boxes(image_data, debug): FILE: interpreter/core/computer/docs/docs.py class Docs (line 9) | class Docs: method __init__ (line 10) | def __init__(self, computer): method search (line 13) | def search(self, query, module=None, paths=None): FILE: interpreter/core/computer/files/files.py class Files (line 8) | class Files: method __init__ (line 9) | def __init__(self, computer): method search (line 12) | def search(self, *args, **kwargs): method edit (line 18) | def edit(self, path, original_text, replacement_text): function get_close_matches_in_text (line 39) | def get_close_matches_in_text(original_text, filedata, n=3): FILE: interpreter/core/computer/keyboard/keyboard.py class Keyboard (line 11) | class Keyboard: method __init__ (line 14) | def __init__(self, computer): method write (line 17) | def write(self, text, interval=None, delay=0.30, **kwargs): method press (line 59) | def press(self, *args, presses=1, interval=0.1): method press_and_release (line 71) | def press_and_release(self, *args, presses=1, interval=0.1): method hotkey (line 79) | def hotkey(self, *args, interval=0.1): method down (line 117) | def down(self, key): method up (line 125) | def up(self, key): FILE: interpreter/core/computer/mail/mail.py class Mail (line 9) | class Mail: method __init__ (line 10) | def __init__(self, computer): method get (line 15) | def get(self, number=5, unread: bool = False): method send (line 61) | def send(self, to, subject, body, attachments=None): method unread_count (line 109) | def unread_count(self): method calculate_upload_delay (line 136) | def calculate_upload_delay(self, attachments): method format_path_for_applescript (line 151) | def format_path_for_applescript(self, file_path): FILE: interpreter/core/computer/mouse/mouse.py class Mouse (line 20) | class Mouse: method __init__ (line 21) | def __init__(self, computer): method scroll (line 24) | def scroll(self, clicks): method position (line 30) | def position(self): method move (line 44) | def move(self, *args, x=None, y=None, icon=None, text=None, screenshot... method click (line 230) | def click(self, *args, button="left", clicks=1, interval=0.1, **kwargs): method double_click (line 238) | def double_click(self, *args, button="left", interval=0.1, **kwargs): method triple_click (line 246) | def triple_click(self, *args, button="left", interval=0.1, **kwargs): method right_click (line 254) | def right_click(self, *args, **kwargs): method down (line 262) | def down(self): method up (line 268) | def up(self): function smooth_move_to (line 279) | def smooth_move_to(x, y, duration=2): FILE: interpreter/core/computer/os/os.py class Os (line 5) | class Os: method __init__ (line 6) | def __init__(self, computer): method get_selected_text (line 9) | def get_selected_text(self): method notify (line 23) | def notify(self, text): FILE: interpreter/core/computer/skills/skills.py class Skills (line 23) | class Skills: method __init__ (line 41) | def __init__(self, computer): method list (line 46) | def list(self): method run (line 68) | def run(self, skill): method search (line 77) | def search(self, query): method import_skills (line 100) | def import_skills(self): class NewSkill (line 157) | class NewSkill: method __init__ (line 158) | def __init__(self, skills): method create (line 162) | def create(self): method name (line 177) | def name(self): method name (line 181) | def name(self, value): method add_step (line 200) | def add_step(self, step, code): method save (line 219) | def save(self): FILE: interpreter/core/computer/sms/sms.py class SMS (line 10) | class SMS: method __init__ (line 11) | def __init__(self, computer): method resolve_database_path (line 18) | def resolve_database_path(self): method send (line 29) | def send(self, to, message): method get (line 43) | def get(self, contact=None, limit=10, substring=None): method can_access_database (line 106) | def can_access_database(self): method prompt_full_disk_access (line 113) | def prompt_full_disk_access(self): FILE: interpreter/core/computer/terminal/base_language.py class BaseLanguage (line 1) | class BaseLanguage: method run (line 17) | def run(self, code): method stop (line 26) | def stop(self): method terminate (line 32) | def terminate(self): FILE: interpreter/core/computer/terminal/languages/applescript.py class AppleScript (line 6) | class AppleScript(SubprocessLanguage): method __init__ (line 10) | def __init__(self): method preprocess_code (line 14) | def preprocess_code(self, code): method add_active_line_indicators (line 35) | def add_active_line_indicators(self, code): method detect_active_line (line 50) | def detect_active_line(self, line): method detect_end_of_execution (line 58) | def detect_end_of_execution(self, line): FILE: interpreter/core/computer/terminal/languages/html.py class HTML (line 5) | class HTML(BaseLanguage): method __init__ (line 9) | def __init__(self): method run (line 12) | def run(self, code): FILE: interpreter/core/computer/terminal/languages/java.py class Java (line 10) | class Java(SubprocessLanguage): method __init__ (line 14) | def __init__(self): method preprocess_code (line 18) | def preprocess_code(self, code): method line_postprocessor (line 21) | def line_postprocessor(self, line): method detect_active_line (line 25) | def detect_active_line(self, line): method detect_end_of_execution (line 30) | def detect_end_of_execution(self, line): method run (line 33) | def run(self, code): function preprocess_java (line 128) | def preprocess_java(code): FILE: interpreter/core/computer/terminal/languages/javascript.py class JavaScript (line 6) | class JavaScript(SubprocessLanguage): method __init__ (line 10) | def __init__(self): method preprocess_code (line 14) | def preprocess_code(self, code): method line_postprocessor (line 17) | def line_postprocessor(self, line): method detect_active_line (line 29) | def detect_active_line(self, line): method detect_end_of_execution (line 34) | def detect_end_of_execution(self, line): function preprocess_javascript (line 38) | def preprocess_javascript(code): FILE: interpreter/core/computer/terminal/languages/jupyter_language.py class JupyterLanguage (line 36) | class JupyterLanguage(BaseLanguage): method __init__ (line 41) | def __init__(self, computer): method terminate (line 85) | def terminate(self): method run (line 89) | def run(self, code): method _execute_code (line 133) | def _execute_code(self, code, message_queue): method detect_active_line (line 306) | def detect_active_line(self, line): method _capture_output (line 320) | def _capture_output(self, message_queue): method stop (line 353) | def stop(self): method preprocess_code (line 356) | def preprocess_code(self, code): function preprocess_python (line 360) | def preprocess_python(code): function add_active_line_prints (line 389) | def add_active_line_prints(code): class AddLinePrints (line 414) | class AddLinePrints(ast.NodeTransformer): method insert_print_statement (line 420) | def insert_print_statement(self, line_number): method process_body (line 430) | def process_body(self, body): method visit (line 445) | def visit(self, node): function wrap_in_try_except (line 467) | def wrap_in_try_except(code): function string_to_python (line 507) | def string_to_python(code_as_string): FILE: interpreter/core/computer/terminal/languages/powershell.py class PowerShell (line 8) | class PowerShell(SubprocessLanguage): method __init__ (line 12) | def __init__(self): method preprocess_code (line 23) | def preprocess_code(self, code): method line_postprocessor (line 26) | def line_postprocessor(self, line): method detect_active_line (line 29) | def detect_active_line(self, line): method detect_end_of_execution (line 34) | def detect_end_of_execution(self, line): function preprocess_powershell (line 38) | def preprocess_powershell(code): function add_active_line_prints (line 56) | def add_active_line_prints(code): function wrap_in_try_catch (line 67) | def wrap_in_try_catch(code): FILE: interpreter/core/computer/terminal/languages/python.py class Python (line 11) | class Python(JupyterLanguage): FILE: interpreter/core/computer/terminal/languages/r.py class R (line 6) | class R(SubprocessLanguage): method __init__ (line 10) | def __init__(self): method preprocess_code (line 14) | def preprocess_code(self, code): method line_postprocessor (line 46) | def line_postprocessor(self, line): method detect_active_line (line 67) | def detect_active_line(self, line): method detect_end_of_execution (line 72) | def detect_end_of_execution(self, line): FILE: interpreter/core/computer/terminal/languages/react.py function is_incompatible (line 29) | def is_incompatible(code): class React (line 43) | class React(BaseLanguage): method run (line 49) | def run(self, code): FILE: interpreter/core/computer/terminal/languages/ruby.py class Ruby (line 6) | class Ruby(SubprocessLanguage): method __init__ (line 10) | def __init__(self): method preprocess_code (line 14) | def preprocess_code(self, code): method line_postprocessor (line 45) | def line_postprocessor(self, line): method detect_active_line (line 54) | def detect_active_line(self, line): method detect_end_of_execution (line 59) | def detect_end_of_execution(self, line): FILE: interpreter/core/computer/terminal/languages/shell.py class Shell (line 8) | class Shell(SubprocessLanguage): method __init__ (line 13) | def __init__( method preprocess_code (line 24) | def preprocess_code(self, code): method line_postprocessor (line 27) | def line_postprocessor(self, line): method detect_active_line (line 30) | def detect_active_line(self, line): method detect_end_of_execution (line 35) | def detect_end_of_execution(self, line): function preprocess_shell (line 39) | def preprocess_shell(code): function add_active_line_prints (line 61) | def add_active_line_prints(code): function has_multiline_commands (line 72) | def has_multiline_commands(script_text): FILE: interpreter/core/computer/terminal/languages/subprocess_language.py class SubprocessLanguage (line 12) | class SubprocessLanguage(BaseLanguage): method __init__ (line 13) | def __init__(self): method detect_active_line (line 20) | def detect_active_line(self, line): method detect_end_of_execution (line 23) | def detect_end_of_execution(self, line): method line_postprocessor (line 26) | def line_postprocessor(self, line): method preprocess_code (line 29) | def preprocess_code(self, code): method terminate (line 38) | def terminate(self): method start_process (line 44) | def start_process(self): method run (line 73) | def run(self, code): method handle_stream_output (line 140) | def handle_stream_output(self, stream, is_error_stream): FILE: interpreter/core/computer/terminal/terminal.py class Terminal (line 33) | class Terminal: method __init__ (line 34) | def __init__(self, computer): method sudo_install (line 50) | def sudo_install(self, package): method get_language (line 73) | def get_language(self, language): method run (line 82) | def run(self, language, code, stream=False, display=False): method _streaming_run (line 156) | def _streaming_run(self, language, code, display=False): method stop (line 196) | def stop(self): method terminate (line 200) | def terminate(self): FILE: interpreter/core/computer/utils/computer_vision.py function pytesseract_get_text (line 15) | def pytesseract_get_text(img): function pytesseract_get_text_bounding_boxes (line 25) | def pytesseract_get_text_bounding_boxes(img): function find_text_in_image (line 54) | def find_text_in_image(img, text, debug=False): FILE: interpreter/core/computer/utils/get_active_window.py function get_active_window (line 5) | def get_active_window(): FILE: interpreter/core/computer/utils/html_to_png_base64.py function html_to_png_base64 (line 15) | def html_to_png_base64(code): FILE: interpreter/core/computer/utils/recipient_utils.py function format_to_recipient (line 1) | def format_to_recipient(text, recipient): function parse_for_recipient (line 5) | def parse_for_recipient(content): FILE: interpreter/core/computer/utils/run_applescript.py function run_applescript (line 4) | def run_applescript(script): function run_applescript_capture (line 16) | def run_applescript_capture(script): FILE: interpreter/core/computer/vision/vision.py class Vision (line 15) | class Vision: method __init__ (line 16) | def __init__(self, computer): method load (line 22) | def load(self, load_moondream=True, load_easyocr=True): method ocr (line 59) | def ocr( method query (line 122) | def query( FILE: interpreter/core/core.py class OpenInterpreter (line 24) | class OpenInterpreter: method __init__ (line 42) | def __init__( method local_setup (line 141) | def local_setup(self): method wait (line 147) | def wait(self): method anonymous_telemetry (line 154) | def anonymous_telemetry(self) -> bool: method will_contribute (line 158) | def will_contribute(self): method chat (line 164) | def chat(self, message=None, display=True, stream=False, blocking=True): method _streaming_chat (line 217) | def _streaming_chat(self, message=None, display=True): method _respond_and_store (line 297) | def _respond_and_store(self): method reset (line 430) | def reset(self): method display_message (line 436) | def display_message(self, markdown): method get_oi_dir (line 443) | def get_oi_dir(self): FILE: interpreter/core/llm/llm.py class SuppressDebugFilter (line 33) | class SuppressDebugFilter(logging.Filter): method filter (line 34) | def filter(self, record): class Llm (line 41) | class Llm: method __init__ (line 46) | def __init__(self, interpreter): method run (line 79) | def run(self, messages): method model (line 331) | def model(self): method model (line 335) | def model(self, value): method load (line 339) | def load(self): function fixed_litellm_completions (line 419) | def fixed_litellm_completions(**params): FILE: interpreter/core/llm/run_function_calling_llm.py function run_function_calling_llm (line 24) | def run_function_calling_llm(llm, request_params): FILE: interpreter/core/llm/run_text_llm.py function run_text_llm (line 1) | def run_text_llm(llm, params): FILE: interpreter/core/llm/run_tool_calling_llm.py function process_messages (line 33) | def process_messages(messages): function run_tool_calling_llm (line 101) | def run_tool_calling_llm(llm, request_params): FILE: interpreter/core/llm/utils/convert_to_openai_messages.py function convert_to_openai_messages (line 9) | def convert_to_openai_messages( FILE: interpreter/core/llm/utils/merge_deltas.py function merge_deltas (line 1) | def merge_deltas(original, delta): FILE: interpreter/core/llm/utils/parse_partial_json.py function parse_partial_json (line 5) | def parse_partial_json(s): FILE: interpreter/core/render_message.py function render_message (line 4) | def render_message(interpreter, message): FILE: interpreter/core/respond.py function respond (line 14) | def respond(interpreter): FILE: interpreter/core/utils/lazy_import.py function lazy_import (line 4) | def lazy_import(name, optional=True): FILE: interpreter/core/utils/scan_code.py function scan_code (line 13) | def scan_code(code, language, interpreter): FILE: interpreter/core/utils/system_debug_info.py function get_python_version (line 10) | def get_python_version(): function get_pip_version (line 14) | def get_pip_version(): function get_oi_version (line 22) | def get_oi_version(): function get_os_version (line 37) | def get_os_version(): function get_cpu_info (line 41) | def get_cpu_info(): function get_ram_info (line 45) | def get_ram_info(): function get_package_mismatches (line 53) | def get_package_mismatches(file_path="pyproject.toml"): function interpreter_info (line 81) | def interpreter_info(interpreter): function system_info (line 129) | def system_info(interpreter): FILE: interpreter/core/utils/telemetry.py function get_or_create_uuid (line 22) | def get_or_create_uuid(): function send_telemetry (line 47) | def send_telemetry(event_name, properties=None): FILE: interpreter/core/utils/temporary_file.py function cleanup_temporary_file (line 5) | def cleanup_temporary_file(temp_file_name, verbose=False): function create_temporary_file (line 24) | def create_temporary_file(contents, extension=None, verbose=False): FILE: interpreter/core/utils/truncate_output.py function truncate_output (line 1) | def truncate_output(data, max_output_chars=2800, add_scrollbars=False): FILE: interpreter/terminal_interface/components/base_block.py class BaseBlock (line 5) | class BaseBlock: method __init__ (line 10) | def __init__(self): method update_from_message (line 16) | def update_from_message(self, message): method end (line 19) | def end(self): method refresh (line 23) | def refresh(self, cursor=True): FILE: interpreter/terminal_interface/components/code_block.py class CodeBlock (line 10) | class CodeBlock(BaseBlock): method __init__ (line 15) | def __init__(self, interpreter=None): method end (line 30) | def end(self): method refresh (line 35) | def refresh(self, cursor=True): FILE: interpreter/terminal_interface/components/message_block.py class MessageBlock (line 10) | class MessageBlock(BaseBlock): method __init__ (line 11) | def __init__(self): method refresh (line 17) | def refresh(self, cursor=True): function textify_markdown_code_blocks (line 31) | def textify_markdown_code_blocks(text): FILE: interpreter/terminal_interface/contributing_conversations.py function display_contribution_message (line 19) | def display_contribution_message(): function display_contributing_current_message (line 32) | def display_contributing_current_message(): function send_past_conversations (line 41) | def send_past_conversations(interpreter): function set_send_future_conversations (line 60) | def set_send_future_conversations(interpreter, should_send_future): function user_wants_to_contribute_past (line 71) | def user_wants_to_contribute_past(): function user_wants_to_contribute_future (line 77) | def user_wants_to_contribute_future(): function contribute_conversation_launch_logic (line 83) | def contribute_conversation_launch_logic(interpreter): class ContributionCache (line 96) | class ContributionCache(TypedDict): function contribute_past_and_future_logic (line 103) | def contribute_past_and_future_logic( function get_contribute_cache_contents (line 123) | def get_contribute_cache_contents() -> ContributionCache: function write_to_contribution_cache (line 140) | def write_to_contribution_cache(contribution_cache: ContributionCache): function get_all_conversations (line 145) | def get_all_conversations(interpreter) -> List[List]: function is_list_of_lists (line 165) | def is_list_of_lists(l): function contribute_conversations (line 169) | def contribute_conversations( FILE: interpreter/terminal_interface/conversation_navigator.py function conversation_navigator (line 16) | def conversation_navigator(interpreter): function open_folder (line 94) | def open_folder(path): FILE: interpreter/terminal_interface/local_setup.py function local_setup (line 15) | def local_setup(interpreter, provider=None, model=None): FILE: interpreter/terminal_interface/magic_commands.py function handle_undo (line 13) | def handle_undo(self, arguments): function handle_help (line 49) | def handle_help(self, arguments): function handle_verbose (line 80) | def handle_verbose(self, arguments=None): function handle_debug (line 103) | def handle_debug(self, arguments=None): function handle_auto_run (line 126) | def handle_auto_run(self, arguments=None): function handle_info (line 137) | def handle_info(self, arguments): function handle_reset (line 141) | def handle_reset(self, arguments): function default_handle (line 146) | def default_handle(self, arguments): function handle_save_message (line 151) | def handle_save_message(self, json_path): function handle_load_message (line 162) | def handle_load_message(self, json_path): function handle_count_tokens (line 173) | def handle_count_tokens(self, prompt): function get_downloads_path (line 215) | def get_downloads_path(): function install_and_import (line 228) | def install_and_import(package): function jupyter (line 259) | def jupyter(self, arguments): function markdown (line 300) | def markdown(self, export_path: str): function handle_magic_command (line 313) | def handle_magic_command(self, user_input): FILE: interpreter/terminal_interface/profiles/defaults/e2b.py class PythonE2B (line 10) | class PythonE2B: method run (line 31) | def run(self, code): method stop (line 45) | def stop(self): method terminate (line 50) | def terminate(self): FILE: interpreter/terminal_interface/profiles/profiles.py function profile (line 31) | def profile(interpreter, filename_or_url): function get_profile (line 67) | def get_profile(filename_or_url, profile_path): class RemoveInterpreter (line 123) | class RemoveInterpreter(ast.NodeTransformer): method visit_ImportFrom (line 126) | def visit_ImportFrom(self, node): method visit_Assign (line 133) | def visit_Assign(self, node): function apply_profile (line 145) | def apply_profile(interpreter, profile, profile_path): function migrate_profile (line 216) | def migrate_profile(old_path, new_path): function apply_profile_to_object (line 562) | def apply_profile_to_object(obj, profile): function open_storage_dir (line 574) | def open_storage_dir(directory): function reset_profile (line 591) | def reset_profile(specific_default_profile=None): function get_default_profile (line 653) | def get_default_profile(specific_default_profile): function determine_user_version (line 682) | def determine_user_version(): function migrate_app_directory (line 709) | def migrate_app_directory(old_dir, new_dir, profile_dir): function migrate_user_app_directory (line 756) | def migrate_user_app_directory(): function write_key_to_profile (line 768) | def write_key_to_profile(key, value): FILE: interpreter/terminal_interface/render_past_conversation.py function render_past_conversation (line 11) | def render_past_conversation(messages): FILE: interpreter/terminal_interface/start_terminal_interface.py function start_terminal_interface (line 19) | def start_terminal_interface(interpreter): function set_attributes (line 581) | def set_attributes(args, arguments): function get_argument_dictionary (line 595) | def get_argument_dictionary(arguments: list[dict], key: str) -> dict: function main (line 608) | def main(): FILE: interpreter/terminal_interface/terminal_interface.py function terminal_interface (line 47) | def terminal_interface(interpreter, message): FILE: interpreter/terminal_interface/utils/check_for_package.py function check_for_package (line 6) | def check_for_package(package): FILE: interpreter/terminal_interface/utils/check_for_update.py function check_for_update (line 6) | def check_for_update(): FILE: interpreter/terminal_interface/utils/cli_input.py function cli_input (line 1) | def cli_input(prompt: str = "") -> str: FILE: interpreter/terminal_interface/utils/count_tokens.py function count_tokens (line 9) | def count_tokens(text="", model="gpt-4"): function token_cost (line 33) | def token_cost(tokens=0, model="gpt-4"): function count_messages_tokens (line 47) | def count_messages_tokens(messages=[], model=None): FILE: interpreter/terminal_interface/utils/display_markdown_message.py function display_markdown_message (line 6) | def display_markdown_message(message): FILE: interpreter/terminal_interface/utils/display_output.py function display_output (line 10) | def display_output(output): function display_output_cli (line 37) | def display_output_cli(output): function open_file (line 75) | def open_file(file_path): FILE: interpreter/terminal_interface/utils/export_to_markdown.py function export_to_markdown (line 1) | def export_to_markdown(messages: list[dict], export_path: str): function messages_to_markdown (line 8) | def messages_to_markdown(messages: list[dict]) -> str: FILE: interpreter/terminal_interface/utils/find_image_path.py function find_image_path (line 5) | def find_image_path(text): FILE: interpreter/terminal_interface/utils/get_conversations.py function get_conversations (line 6) | def get_conversations(): FILE: interpreter/terminal_interface/utils/in_jupyter_notebook.py function in_jupyter_notebook (line 1) | def in_jupyter_notebook(): FILE: interpreter/terminal_interface/utils/local_storage_path.py function get_storage_path (line 9) | def get_storage_path(subdirectory=None): FILE: interpreter/terminal_interface/validate_llm_settings.py function validate_llm_settings (line 19) | def validate_llm_settings(interpreter): function display_welcome_message_once (line 113) | def display_welcome_message_once(interpreter): FILE: scripts/wtf.py function main (line 115) | def main(): FILE: tests/core/computer/files/test_files.py class TestFiles (line 7) | class TestFiles(unittest.TestCase): method setUp (line 8) | def setUp(self): method test_search (line 12) | def test_search(self, mock_aifs): method test_edit_original_text_in_filedata (line 23) | def test_edit_original_text_in_filedata(self): method test_edit_original_text_not_in_filedata (line 37) | def test_edit_original_text_not_in_filedata(self): FILE: tests/core/computer/test_computer.py class TestComputer (line 5) | class TestComputer(unittest.TestCase): method setUp (line 6) | def setUp(self): method test_get_all_computer_tools_list (line 9) | def test_get_all_computer_tools_list(self): method test_get_all_computer_tools_signature_and_description (line 16) | def test_get_all_computer_tools_signature_and_description(self): FILE: tests/core/test_async_core.py class TestServerConstruction (line 7) | class TestServerConstruction(TestCase): method test_host_and_port_defaults (line 13) | def test_host_and_port_defaults(self): method test_host_and_port_passed_in (line 24) | def test_host_and_port_passed_in(self): method test_host_and_port_from_env_1 (line 40) | def test_host_and_port_from_env_1(self): FILE: tests/test_interpreter.py function test_hallucinations (line 27) | def test_hallucinations(): function run_auth_server (line 77) | def run_auth_server(): function test_authenticated_acknowledging_breaking_server (line 86) | def test_authenticated_acknowledging_breaking_server(): function run_server (line 230) | def run_server(): function test_server (line 240) | def test_server(): function test_sms (line 656) | def test_sms(): function test_pytes (line 671) | def test_pytes(): function test_ai_chat (line 689) | def test_ai_chat(): function test_generator (line 693) | def test_generator(): function test_localos (line 778) | def test_localos(): function test_m_vision (line 786) | def test_m_vision(): function test_point (line 814) | def test_point(): function test_skills (line 825) | def test_skills(): function test_browser (line 876) | def test_browser(): function test_display_api (line 885) | def test_display_api(): function test_websocket_server (line 961) | def test_websocket_server(): function test_i (line 994) | def test_i(): function test_async (line 1023) | def test_async(): function test_find_text_api (line 1029) | def test_find_text_api(): function test_getActiveWindow (line 1041) | def test_getActiveWindow(): function test_notify (line 1049) | def test_notify(): function test_get_text (line 1055) | def test_get_text(): function test_keyboard (line 1061) | def test_keyboard(): function test_get_selected_text (line 1068) | def test_get_selected_text(): function test_display_verbose (line 1077) | def test_display_verbose(): function setup_function (line 1086) | def setup_function(): function test_long_message (line 1100) | def test_long_message(): function teardown_function (line 1117) | def teardown_function(): function test_spotlight (line 1122) | def test_spotlight(): function test_files (line 1126) | def test_files(): function test_vision (line 1140) | def test_vision(): function test_multiple_instances (line 1165) | def test_multiple_instances(): function test_hello_world (line 1177) | def test_hello_world(): function test_math (line 1189) | def test_math(): function test_break_execution (line 1212) | def test_break_execution(): function test_delayed_exec (line 1265) | def test_delayed_exec(): function test_nested_loops_and_multiple_newlines (line 1271) | def test_nested_loops_and_multiple_newlines(): function test_write_to_file (line 1277) | def test_write_to_file(): function test_markdown (line 1289) | def test_markdown(): function test_reset (line 1295) | def test_reset(): function test_token_counter (line 1300) | def test_token_counter():