SYMBOL INDEX (506 symbols across 85 files) FILE: agents/agent.py class ModelConfig (line 18) | class ModelConfig: class Agent (line 33) | class Agent: method __init__ (line 36) | def __init__( method _prepare_message_params (line 80) | def _prepare_message_params(self) -> dict[str, Any]: method _agent_loop (line 96) | async def _agent_loop(self, user_input: str) -> list[dict[str, Any]]: method run_async (line 157) | async def run_async(self, user_input: str) -> list[dict[str, Any]]: method run (line 171) | def run(self, user_input: str) -> list[dict[str, Any]]: FILE: agents/test_message_params.py class TestMessageParams (line 17) | class TestMessageParams: method __init__ (line 20) | def __init__(self, verbose: bool = True): method _print (line 30) | def _print(self, message: str) -> None: method _run_test (line 35) | def _run_test(self, test_name: str, test_func: callable) -> None: method test_basic_agent (line 57) | def test_basic_agent(self) -> None: method test_custom_headers (line 71) | def test_custom_headers(self) -> None: method test_beta_headers (line 94) | def test_beta_headers(self) -> None: method test_metadata (line 113) | def test_metadata(self) -> None: method test_api_parameters (line 131) | def test_api_parameters(self) -> None: method test_parameter_override (line 155) | def test_parameter_override(self) -> None: method test_invalid_metadata_field (line 178) | def test_invalid_metadata_field(self) -> None: method test_combined_parameters (line 200) | def test_combined_parameters(self) -> None: method run_all_tests (line 230) | def run_all_tests(self) -> None: function main (line 256) | def main(): FILE: agents/tools/base.py class Tool (line 8) | class Tool: method to_dict (line 15) | def to_dict(self) -> dict[str, Any]: method execute (line 23) | async def execute(self, **kwargs) -> str: FILE: agents/tools/calculator_mcp.py function calculator (line 13) | def calculator(number1: float, number2: float, operator: str) -> str: FILE: agents/tools/code_execution.py class CodeExecutionServerTool (line 8) | class CodeExecutionServerTool: method to_dict (line 14) | def to_dict(self) -> dict[str, Any]: FILE: agents/tools/file_tools.py class FileReadTool (line 11) | class FileReadTool(Tool): method __init__ (line 14) | def __init__(self): method execute (line 49) | async def execute( method _read_file (line 74) | async def _read_file(self, path: str, max_lines: int = 0) -> str: method _list_files (line 104) | async def _list_files(self, directory: str, pattern: str = "*") -> str: class FileWriteTool (line 138) | class FileWriteTool(Tool): method __init__ (line 141) | def __init__(self): method execute (line 180) | async def execute( method _write_file (line 214) | async def _write_file(self, path: str, content: str) -> str: method _edit_file (line 232) | async def _edit_file(self, path: str, old_text: str, new_text: str) ->... FILE: agents/tools/mcp_tool.py class MCPTool (line 8) | class MCPTool(Tool): method __init__ (line 9) | def __init__( method execute (line 21) | async def execute(self, **kwargs) -> str: FILE: agents/tools/think.py class ThinkTool (line 6) | class ThinkTool(Tool): method __init__ (line 9) | def __init__(self): method execute (line 30) | async def execute(self, thought: str) -> str: FILE: agents/tools/web_search.py class WebSearchServerTool (line 8) | class WebSearchServerTool: method to_dict (line 18) | def to_dict(self) -> dict[str, Any]: FILE: agents/utils/connections.py class MCPConnection (line 14) | class MCPConnection(ABC): method __init__ (line 17) | def __init__(self): method _create_rw_context (line 23) | async def _create_rw_context(self): method __aenter__ (line 26) | async def __aenter__(self): method __aexit__ (line 36) | async def __aexit__(self, exc_type, exc_val, exc_tb): method list_tools (line 50) | async def list_tools(self) -> Any: method call_tool (line 55) | async def call_tool( class MCPConnectionStdio (line 62) | class MCPConnectionStdio(MCPConnection): method __init__ (line 65) | def __init__( method _create_rw_context (line 73) | async def _create_rw_context(self): class MCPConnectionSSE (line 81) | class MCPConnectionSSE(MCPConnection): method __init__ (line 84) | def __init__(self, url: str, headers: dict[str, str] = None): method _create_rw_context (line 89) | async def _create_rw_context(self): function create_mcp_connection (line 93) | def create_mcp_connection(config: dict[str, Any]) -> MCPConnection: function setup_mcp_connections (line 117) | async def setup_mcp_connections( FILE: agents/utils/history_util.py class MessageHistory (line 6) | class MessageHistory: method __init__ (line 9) | def __init__( method add_message (line 44) | async def add_message( method truncate (line 69) | def truncate(self) -> None: method format_for_api (line 113) | def format_for_api(self) -> list[dict[str, Any]]: FILE: agents/utils/tool_util.py function _execute_single_tool (line 7) | async def _execute_single_tool( function execute_tools (line 27) | async def execute_tools( FILE: autonomous-coding/agent.py function run_agent_session (line 23) | async def run_agent_session( function run_autonomous_agent (line 97) | async def run_autonomous_agent( FILE: autonomous-coding/autonomous_agent_demo.py function parse_args (line 27) | def parse_args() -> argparse.Namespace: function main (line 75) | def main() -> None: FILE: autonomous-coding/client.py function create_client (line 40) | def create_client(project_dir: Path, model: str) -> ClaudeSDKClient: FILE: autonomous-coding/progress.py function count_passing_tests (line 12) | def count_passing_tests(project_dir: Path) -> tuple[int, int]: function print_session_header (line 39) | def print_session_header(session_num: int, is_initializer: bool) -> None: function print_progress_summary (line 49) | def print_progress_summary(project_dir: Path) -> None: FILE: autonomous-coding/prompts.py function load_prompt (line 15) | def load_prompt(name: str) -> str: function get_initializer_prompt (line 21) | def get_initializer_prompt() -> str: function get_coding_prompt (line 26) | def get_coding_prompt() -> str: function copy_spec_to_project (line 31) | def copy_spec_to_project(project_dir: Path) -> None: FILE: autonomous-coding/security.py function split_command_segments (line 47) | def split_command_segments(command_string: str) -> list[str]: function extract_commands (line 77) | def extract_commands(command_string: str) -> list[str]: function validate_pkill_command (line 161) | def validate_pkill_command(command_string: str) -> tuple[bool, str]: function validate_chmod_command (line 209) | def validate_chmod_command(command_string: str) -> tuple[bool, str]: function validate_init_script (line 254) | def validate_init_script(command_string: str) -> tuple[bool, str]: function get_command_for_validation (line 279) | def get_command_for_validation(cmd: str, segments: list[str]) -> str: function bash_security_hook (line 297) | async def bash_security_hook(input_data, tool_use_id=None, context=None): FILE: autonomous-coding/test_security.py function test_hook (line 21) | def test_hook(command: str, should_block: bool) -> bool: function test_extract_commands (line 44) | def test_extract_commands(): function test_validate_chmod (line 72) | def test_validate_chmod(): function test_validate_init_script (line 115) | def test_validate_init_script(): function main (line 154) | def main(): FILE: browser-use-demo/browser_use_demo/browser_tool_utils/browser_dom_script.js function getRole (line 24) | function getRole(element) { function getCleanName (line 71) | function getCleanName(element) { function isVisible (line 180) | function isVisible(element) { function isInteractive (line 191) | function isInteractive(element) { function isSemantic (line 213) | function isSemantic(element) { function shouldIncludeElement (line 235) | function shouldIncludeElement(element, options) { function isContainerElement (line 319) | function isContainerElement(element) { function processElement (line 347) | function processElement(element, depth, options) { FILE: browser-use-demo/browser_use_demo/browser_tool_utils/browser_key_map.py class KeyInfo (line 6) | class KeyInfo(TypedDict, total=False): FILE: browser-use-demo/browser_use_demo/loop.py class APIProvider (line 31) | class APIProvider(StrEnum): function sampling_loop (line 66) | async def sampling_loop( function _maybe_filter_to_n_most_recent_images (line 176) | def _maybe_filter_to_n_most_recent_images( FILE: browser-use-demo/browser_use_demo/message_handler.py class ProcessedResponse (line 25) | class ProcessedResponse: class ResponseProcessor (line 34) | class ResponseProcessor: method process_response (line 42) | def process_response(self, response) -> ProcessedResponse: method execute_tools (line 82) | async def execute_tools( method _build_tool_result (line 134) | def _build_tool_result( class MessageBuilder (line 189) | class MessageBuilder: method add_assistant_message (line 197) | def add_assistant_message( method add_tool_results (line 215) | def add_tool_results( method ensure_message_integrity (line 233) | def ensure_message_integrity( method extract_text_from_message (line 263) | def extract_text_from_message( FILE: browser-use-demo/browser_use_demo/message_renderer.py class Sender (line 18) | class Sender: class MessageRenderer (line 26) | class MessageRenderer: method __init__ (line 29) | def __init__(self, session_state): method _scale_browser_coordinates (line 37) | def _scale_browser_coordinates(self, input_dict: dict) -> dict: method render (line 79) | def render(self, sender: str, message: str | BetaContentBlockParam | T... method _should_skip_message (line 93) | def _should_skip_message(self, message) -> bool: method _render_message_content (line 112) | def _render_message_content(self, message): method _render_tool_result (line 134) | def _render_tool_result(self, tool_result: ToolResult): method _render_dict_message (line 169) | def _render_dict_message(self, message: dict): method _render_tool_use (line 188) | def _render_tool_use(self, message: dict): method _render_stored_tool_result (line 203) | def _render_stored_tool_result(self, message: dict): method render_conversation_history (line 213) | def render_conversation_history(self, messages: list): method _render_message_by_role (line 225) | def _render_message_by_role(self, message: dict): method _render_user_content (line 240) | def _render_user_content(self, content): method _render_assistant_content (line 265) | def _render_assistant_content(self, content): method _normalize_content (line 287) | def _normalize_content(self, content): FILE: browser-use-demo/browser_use_demo/streamlit.py function setup_state (line 60) | def setup_state(): function _clean_text_extraction_markers (line 98) | def _clean_text_extraction_markers(text: str) -> str: function create_transcript_zip (line 113) | def create_transcript_zip(messages: list, include_images: bool = False) ... class ImageExtractor (line 174) | class ImageExtractor: method __init__ (line 177) | def __init__(self): method extract_image (line 181) | def extract_image(self, source: dict) -> dict: method process_image_content (line 193) | def process_image_content(self, item: dict) -> dict: method process_text_content (line 198) | def process_text_content(self, item: dict) -> dict: method process_tool_use_content (line 205) | def process_tool_use_content(self, item: dict) -> dict: method process_tool_result_content (line 213) | def process_tool_result_content(self, item: dict) -> dict: method process_default_content (line 233) | def process_default_content(self, item: dict) -> dict: function extract_images_from_messages (line 238) | def extract_images_from_messages(messages: list) -> tuple: function format_transcript_for_download (line 291) | def format_transcript_for_download(messages: list, include_images: bool ... function _format_text_content (line 319) | def _format_text_content(item: dict, include_images: bool = False) -> dict: function _format_tool_use_content (line 327) | def _format_tool_use_content(item: dict, include_images: bool = False) -... function _format_tool_result_content (line 336) | def _format_tool_result_content(item: dict, include_images: bool = False... function _format_image_content (line 364) | def _format_image_content(item: dict, include_images: bool = False) -> d... function _format_default_content (line 377) | def _format_default_content(item: dict, include_images: bool = False) ->... function _format_content_item (line 391) | def _format_content_item(item, include_images: bool = False): function _format_message_content (line 404) | def _format_message_content(content, include_images: bool = False): function authenticate (line 417) | def authenticate(): function get_or_create_event_loop (line 426) | def get_or_create_event_loop(): function run_agent (line 442) | async def run_agent(user_input: str): function main (line 531) | def main(): FILE: browser-use-demo/browser_use_demo/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: browser-use-demo/browser_use_demo/tools/browser.py class BrowserOptions (line 126) | class BrowserOptions(TypedDict): class BrowserTool (line 158) | class BrowserTool(BaseAnthropicTool): method __init__ (line 185) | def __init__(self): method options (line 196) | def options(self) -> BrowserOptions: method to_params (line 207) | def to_params(self) -> BetaToolUnionParam: method _ensure_browser (line 218) | async def _ensure_browser(self) -> None: method _execute_js_from_file (line 323) | async def _execute_js_from_file(self, filename: str, *args) -> Any: method _take_screenshot (line 352) | async def _take_screenshot(self) -> ToolResult: method _zoom_screenshot (line 374) | async def _zoom_screenshot( method _navigate (line 397) | async def _navigate(self, url: str) -> ToolResult: method _scale_coordinates (line 416) | def _scale_coordinates(self, x: int, y: int) -> tuple[int, int]: method _click (line 457) | async def _click( method _type_text (line 558) | async def _type_text(self, text: str) -> ToolResult: method _press_key (line 569) | async def _press_key( method _scroll (line 616) | async def _scroll( method _scroll_to (line 666) | async def _scroll_to(self, ref: str) -> ToolResult: method _drag (line 693) | async def _drag( method _mouse_down (line 718) | async def _mouse_down(self, x: int, y: int) -> ToolResult: method _mouse_up (line 734) | async def _mouse_up(self, x: int, y: int) -> ToolResult: method _hover (line 750) | async def _hover( method _read_page (line 814) | async def _read_page(self, filter_type: str = "") -> ToolResult: method _get_page_text (line 857) | async def _get_page_text(self) -> ToolResult: method _find (line 903) | async def _find(self, search_query: str) -> ToolResult: method _form_input (line 1047) | async def _form_input(self, ref: str, value: Any) -> ToolResult: method _wait (line 1068) | async def _wait(self, duration: float) -> ToolResult: method _execute_js (line 1079) | async def _execute_js(self, code: str) -> ToolResult: method __call__ (line 1105) | async def __call__( method cleanup (line 1250) | async def cleanup(self): FILE: browser-use-demo/browser_use_demo/tools/collection.py class ToolCollection (line 8) | class ToolCollection: method __init__ (line 11) | def __init__(self, *tools: BaseAnthropicTool): method to_params (line 15) | def to_params(self) -> list[BetaToolUnionParam]: FILE: browser-use-demo/browser_use_demo/tools/coordinate_scaling.py class CoordinateScaler (line 9) | class CoordinateScaler: method get_documented_size_for_aspect_ratio (line 36) | def get_documented_size_for_aspect_ratio(cls, viewport_width: int, vie... method get_scale_factors (line 71) | def get_scale_factors( method scale_coordinates (line 107) | def scale_coordinates( method scale_coordinate_list (line 156) | def scale_coordinate_list( FILE: browser-use-demo/image/http_server.py class HTTPServerV6 (line 6) | class HTTPServerV6(HTTPServer): function run_server (line 10) | def run_server(): FILE: browser-use-demo/tests/conftest.py function mock_streamlit (line 17) | def mock_streamlit(): function mock_browser_tool (line 50) | def mock_browser_tool(): function sample_tool_result (line 59) | def sample_tool_result(): function sample_messages (line 79) | def sample_messages(): function edge_case_messages (line 131) | def edge_case_messages(): function _create_circular_reference (line 153) | def _create_circular_reference(): function mock_asyncio_loop (line 161) | def mock_asyncio_loop(): function mock_environment (line 170) | def mock_environment(monkeypatch): function clean_environment (line 183) | def clean_environment(monkeypatch): function mock_provider (line 196) | def mock_provider(): function mock_api_response_with_text_and_tools (line 206) | def mock_api_response_with_text_and_tools(): function mock_tool_collection (line 229) | def mock_tool_collection(): function sample_mixed_content_messages (line 250) | def sample_mixed_content_messages(): FILE: browser-use-demo/tests/test_integration.py class TestFullMessageRenderingPipeline (line 16) | class TestFullMessageRenderingPipeline: method test_full_conversation_rendering (line 24) | def test_full_conversation_rendering( class TestStateInitializationAndPersistence (line 76) | class TestStateInitializationAndPersistence: method test_complete_state_initialization (line 81) | def test_complete_state_initialization(self, mock_browser_tool, mock_s... method test_state_persistence_across_renders (line 118) | def test_state_persistence_across_renders(self, mock_state): class TestEventLoopManagementWithAsync (line 143) | class TestEventLoopManagementWithAsync: method test_async_agent_execution (line 146) | def test_async_agent_execution(self): method test_concurrent_async_operations (line 176) | def test_concurrent_async_operations(self, mock_state): class TestErrorPropagationAndHandling (line 209) | class TestErrorPropagationAndHandling: method test_rendering_error_propagation (line 214) | def test_rendering_error_propagation(self, mock_error, mock_state): method test_initialization_error_recovery (line 236) | def test_initialization_error_recovery(self, mock_state): class TestCompleteWorkflow (line 257) | class TestCompleteWorkflow: method test_complete_user_interaction_flow (line 266) | def test_complete_user_interaction_flow( class TestPerformanceAndScalability (line 314) | class TestPerformanceAndScalability: method test_large_conversation_history (line 320) | def test_large_conversation_history( method test_deeply_nested_content_performance (line 344) | def test_deeply_nested_content_performance(self, mock_state): FILE: browser-use-demo/tests/test_message_renderer.py class TestMessageRenderer (line 10) | class TestMessageRenderer: method test_initialization (line 13) | def test_initialization(self, mock_streamlit): method test_initialization_with_none_state (line 18) | def test_initialization_with_none_state(self): method test_initialization_with_empty_state (line 23) | def test_initialization_with_empty_state(self): class TestRenderMethod (line 30) | class TestRenderMethod: method test_render_string_message (line 33) | def test_render_string_message(self, mock_streamlit): method test_render_empty_string (line 41) | def test_render_empty_string(self, mock_streamlit): method test_render_none_message (line 48) | def test_render_none_message(self, mock_streamlit): method test_render_tool_result_with_output (line 55) | def test_render_tool_result_with_output(self, mock_streamlit, sample_t... method test_render_tool_result_with_error (line 62) | def test_render_tool_result_with_error(self, mock_streamlit, sample_to... method test_render_tool_result_with_image (line 69) | def test_render_tool_result_with_image(self, mock_streamlit, sample_to... method test_render_tool_result_with_hidden_screenshots (line 79) | def test_render_tool_result_with_hidden_screenshots( method test_render_dict_message_text_type (line 91) | def test_render_dict_message_text_type(self, mock_streamlit): method test_render_dict_message_tool_use_type (line 99) | def test_render_dict_message_tool_use_type(self, mock_streamlit): method test_render_dict_message_unknown_type (line 112) | def test_render_dict_message_unknown_type(self, mock_streamlit): method test_render_very_long_message (line 121) | def test_render_very_long_message(self, mock_streamlit): method test_render_unicode_special_chars (line 129) | def test_render_unicode_special_chars(self, mock_streamlit): class TestConversationHistory (line 138) | class TestConversationHistory: method test_render_empty_history (line 141) | def test_render_empty_history(self, mock_streamlit): method test_render_single_message (line 149) | def test_render_single_message(self, mock_streamlit): method test_render_multiple_messages (line 157) | def test_render_multiple_messages(self, mock_streamlit, sample_messages): method test_render_unknown_role (line 165) | def test_render_unknown_role(self, mock_streamlit): method test_render_missing_content_field (line 174) | def test_render_missing_content_field(self, mock_streamlit): method test_render_none_content (line 185) | def test_render_none_content(self, mock_streamlit): method test_render_list_content (line 194) | def test_render_list_content(self, mock_streamlit): method test_skip_image_blocks_in_history (line 213) | def test_skip_image_blocks_in_history(self, mock_streamlit): method test_tool_result_in_assistant_message (line 231) | def test_tool_result_in_assistant_message(self, mock_streamlit, sample... method test_missing_tool_in_session_state (line 248) | def test_missing_tool_in_session_state(self, mock_streamlit): class TestEdgeCases (line 263) | class TestEdgeCases: method test_circular_reference_handling (line 266) | def test_circular_reference_handling(self, mock_streamlit): method test_malformed_tool_result (line 278) | def test_malformed_tool_result(self, mock_streamlit): method test_exception_in_rendering (line 289) | def test_exception_in_rendering(self, mock_streamlit): method test_normalize_content_with_various_inputs (line 305) | def test_normalize_content_with_various_inputs(self, mock_streamlit): method test_deeply_nested_content (line 321) | def test_deeply_nested_content(self, mock_streamlit): method test_concurrent_modification (line 335) | def test_concurrent_modification(self, mock_streamlit): method test_invalid_sender_type (line 354) | def test_invalid_sender_type(self, mock_streamlit): method test_base64_decode_error (line 364) | def test_base64_decode_error(self, mock_streamlit): FILE: browser-use-demo/tests/test_sampling_loop.py class TestResponseProcessor (line 17) | class TestResponseProcessor: method test_process_response_text_only (line 20) | def test_process_response_text_only(self): method test_process_response_tool_only (line 37) | def test_process_response_tool_only(self): method test_process_response_mixed_content (line 57) | def test_process_response_mixed_content(self): method test_execute_tools_success (line 81) | def test_execute_tools_success(self): method test_execute_tools_with_error (line 111) | def test_execute_tools_with_error(self): method test_build_tool_result_with_image (line 141) | def test_build_tool_result_with_image(self): method test_build_tool_result_with_text_extraction_markers (line 155) | def test_build_tool_result_with_text_extraction_markers(self): class TestMessageBuilder (line 170) | class TestMessageBuilder: method test_add_assistant_message (line 173) | def test_add_assistant_message(self): method test_add_assistant_message_empty_content (line 188) | def test_add_assistant_message_empty_content(self): method test_add_tool_results (line 198) | def test_add_tool_results(self): method test_add_tool_results_empty (line 216) | def test_add_tool_results_empty(self): method test_ensure_message_integrity_valid (line 226) | def test_ensure_message_integrity_valid(self): method test_ensure_message_integrity_missing_role (line 236) | def test_ensure_message_integrity_missing_role(self): method test_ensure_message_integrity_missing_content (line 245) | def test_ensure_message_integrity_missing_content(self): method test_ensure_message_integrity_empty_list_content (line 254) | def test_ensure_message_integrity_empty_list_content(self): method test_extract_text_from_message (line 263) | def test_extract_text_from_message(self): method test_extract_text_from_message_no_text (line 279) | def test_extract_text_from_message_no_text(self): method test_extract_text_from_user_message (line 293) | def test_extract_text_from_user_message(self): class TestSamplingLoopIntegration (line 307) | class TestSamplingLoopIntegration: method test_sampling_loop_preserves_text_with_tools (line 311) | def test_sampling_loop_preserves_text_with_tools(self, mock_anthropic): method test_sampling_loop_text_only_response (line 386) | def test_sampling_loop_text_only_response(self, mock_anthropic): method test_sampling_loop_multiple_tools_with_text (line 423) | def test_sampling_loop_multiple_tools_with_text(self, mock_anthropic): method test_tool_choice_parameter_set (line 485) | def test_tool_choice_parameter_set(self, mock_anthropic): FILE: browser-use-demo/tests/test_streamlit_helpers.py class TestSetupState (line 15) | class TestSetupState: method test_setup_state_fresh_initialization (line 19) | def test_setup_state_fresh_initialization(self, mock_state, mock_envir... method test_setup_state_partial_initialization (line 38) | def test_setup_state_partial_initialization(self, mock_state): method test_setup_state_missing_env_variables (line 60) | def test_setup_state_missing_env_variables(self, mock_state, clean_env... method test_setup_state_lambda_evaluation (line 74) | def test_setup_state_lambda_evaluation(self, mock_state, mock_provider): method test_setup_state_browser_tool_error (line 91) | def test_setup_state_browser_tool_error(self, mock_state): class TestGetOrCreateEventLoop (line 108) | class TestGetOrCreateEventLoop: method test_create_new_loop_when_none (line 114) | def test_create_new_loop_when_none(self, mock_set_loop, mock_new_loop,... method test_create_new_loop_when_closed (line 131) | def test_create_new_loop_when_closed( method test_reuse_existing_open_loop (line 153) | def test_reuse_existing_open_loop(self, mock_set_loop, mock_new_loop, ... method test_event_loop_creation_error (line 168) | def test_event_loop_creation_error(self, mock_new_loop, mock_state): method test_set_event_loop_error (line 179) | def test_set_event_loop_error(self, mock_set_loop, mock_state): class TestAuthenticate (line 189) | class TestAuthenticate: method test_authenticate_with_valid_key (line 195) | def test_authenticate_with_valid_key( method test_authenticate_with_missing_key (line 212) | def test_authenticate_with_missing_key( method test_authenticate_with_none_key (line 231) | def test_authenticate_with_none_key( method test_authenticate_non_anthropic_provider (line 245) | def test_authenticate_non_anthropic_provider(self, mock_state, mock_pr... class TestEdgeCasesAndErrors (line 256) | class TestEdgeCasesAndErrors: method test_setup_state_with_corrupted_state (line 260) | def test_setup_state_with_corrupted_state(self, mock_state): method test_concurrent_setup_state_calls (line 270) | def test_concurrent_setup_state_calls(self, mock_state): method test_get_or_create_with_running_loop (line 297) | def test_get_or_create_with_running_loop(self, mock_get_loop, mock_sta... method test_setup_state_with_readonly_state (line 316) | def test_setup_state_with_readonly_state(self, mock_state): FILE: browser-use-demo/validate_env.py function validate_env (line 19) | def validate_env(): FILE: computer-use-demo/computer_use_demo/loop.py class APIProvider (line 42) | class APIProvider(StrEnum): function sampling_loop (line 70) | async def sampling_loop( function _maybe_filter_to_n_most_recent_images (line 193) | def _maybe_filter_to_n_most_recent_images( function _response_to_params (line 242) | def _response_to_params( function _inject_prompt_caching (line 265) | def _inject_prompt_caching( function _make_api_tool_result (line 291) | def _make_api_tool_result( function _maybe_prepend_system_tool_result (line 327) | def _maybe_prepend_system_tool_result(result: ToolResult, result_text: s... FILE: computer-use-demo/computer_use_demo/streamlit.py class ModelConfig (line 42) | class ModelConfig: class Sender (line 115) | class Sender(StrEnum): function setup_state (line 121) | def setup_state(): function _reset_model (line 155) | def _reset_model(): function _reset_model_conf (line 162) | def _reset_model_conf(): function main (line 179) | async def main(): function maybe_add_interruption_blocks (line 354) | def maybe_add_interruption_blocks(): function track_sampling_loop (line 379) | def track_sampling_loop(): function validate_auth (line 385) | def validate_auth(provider: APIProvider, api_key: str | None): function load_from_storage (line 408) | def load_from_storage(filename: str) -> str | None: function save_to_storage (line 421) | def save_to_storage(filename: str, data: str) -> None: function _api_response_callback (line 433) | def _api_response_callback( function _tool_output_callback (line 450) | def _tool_output_callback( function _render_api_response (line 458) | def _render_api_response( function _render_error (line 482) | def _render_error(error: Exception): function _render_message (line 497) | def _render_message( FILE: computer-use-demo/computer_use_demo/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: computer-use-demo/computer_use_demo/tools/bash.py class _BashSession (line 8) | class _BashSession: method __init__ (line 19) | def __init__(self): method start (line 23) | async def start(self): method stop (line 39) | def stop(self): method run (line 47) | async def run(self, command: str): class BashTool20250124 (line 104) | class BashTool20250124(BaseAnthropicTool): method __init__ (line 115) | def __init__(self): method to_params (line 119) | def to_params(self) -> Any: method __call__ (line 125) | async def __call__( class BashTool20241022 (line 146) | class BashTool20241022(BashTool20250124): FILE: computer-use-demo/computer_use_demo/tools/collection.py class ToolCollection (line 15) | class ToolCollection: method __init__ (line 18) | def __init__(self, *tools: BaseAnthropicTool): method to_params (line 24) | def to_params( method run (line 29) | async def run(self, *, name: str, tool_input: dict[str, Any]) -> ToolR... FILE: computer-use-demo/computer_use_demo/tools/computer.py class Resolution (line 51) | class Resolution(TypedDict): class ScalingSource (line 73) | class ScalingSource(StrEnum): class ComputerToolOptions (line 78) | class ComputerToolOptions(TypedDict): function chunks (line 84) | def chunks(s: str, chunk_size: int) -> list[str]: class BaseComputerTool (line 88) | class BaseComputerTool: method options (line 103) | def options(self) -> ComputerToolOptions: method __init__ (line 113) | def __init__(self): method __call__ (line 128) | async def __call__( method validate_and_get_coordinates (line 220) | def validate_and_get_coordinates(self, coordinate: tuple[int, int] | N... method screenshot (line 228) | async def screenshot(self): method shell (line 256) | async def shell(self, command: str, take_screenshot=True) -> ToolResult: method scale_coordinates (line 268) | def scale_coordinates(self, source: ScalingSource, x: int, y: int): class ComputerTool20241022 (line 294) | class ComputerTool20241022(BaseComputerTool, BaseAnthropicTool): method to_params (line 297) | def to_params(self) -> BetaToolComputerUse20241022Param: class ComputerTool20250124 (line 301) | class ComputerTool20250124(BaseComputerTool, BaseAnthropicTool): method to_params (line 304) | def to_params(self): method __call__ (line 310) | async def __call__( class ComputerTool20251124 (line 417) | class ComputerTool20251124(ComputerTool20250124): method options (line 421) | def options(self) -> ComputerToolOptions: # pyright: ignore[reportInc... method __call__ (line 424) | async def __call__( FILE: computer-use-demo/computer_use_demo/tools/edit.py class EditTool20250728 (line 18) | class EditTool20250728(BaseAnthropicTool): method __init__ (line 34) | def __init__(self): method to_params (line 38) | def to_params(self) -> Any: method __call__ (line 44) | async def __call__( method validate_path (line 87) | def validate_path(self, command: str, path: Path): method view (line 113) | async def view(self, path: Path, view_range: list[int] | None = None): method str_replace (line 160) | def str_replace(self, path: Path, old_str: str, new_str: str | None): method insert (line 208) | def insert(self, path: Path, insert_line: int, new_str: str): method read_file (line 247) | def read_file(self, path: Path): method write_file (line 254) | def write_file(self, path: Path, file: str): method _make_output (line 261) | def _make_output( FILE: computer-use-demo/computer_use_demo/tools/groups.py class ToolGroup (line 24) | class ToolGroup: FILE: computer-use-demo/computer_use_demo/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: computer-use-demo/image/http_server.py class HTTPServerV6 (line 6) | class HTTPServerV6(HTTPServer): function run_server (line 10) | def run_server(): FILE: computer-use-demo/tests/conftest.py function mock_screen_dimensions (line 8) | def mock_screen_dimensions(): FILE: computer-use-demo/tests/loop_test.py function test_loop (line 9) | async def test_loop(): FILE: computer-use-demo/tests/streamlit_test.py function streamlit_app (line 11) | def streamlit_app(): function test_streamlit (line 15) | def test_streamlit(streamlit_app: AppTest): FILE: computer-use-demo/tests/tools/bash_test.py function bash_tool (line 7) | def bash_tool(request): function test_bash_tool_restart (line 12) | async def test_bash_tool_restart(bash_tool): function test_bash_tool_run_command (line 22) | async def test_bash_tool_run_command(bash_tool): function test_bash_tool_no_command (line 29) | async def test_bash_tool_no_command(bash_tool): function test_bash_tool_session_creation (line 35) | async def test_bash_tool_session_creation(bash_tool): function test_bash_tool_session_reuse (line 42) | async def test_bash_tool_session_reuse(bash_tool): function test_bash_tool_session_error (line 51) | async def test_bash_tool_session_error(bash_tool): function test_bash_tool_non_zero_exit (line 57) | async def test_bash_tool_non_zero_exit(bash_tool): function test_bash_tool_timeout (line 64) | async def test_bash_tool_timeout(bash_tool): FILE: computer-use-demo/tests/tools/computer_test.py function computer_tool (line 15) | def computer_tool(request): function test_computer_tool_mouse_move (line 20) | async def test_computer_tool_mouse_move(computer_tool): function test_computer_tool_type (line 31) | async def test_computer_tool_type(computer_tool): function test_computer_tool_screenshot (line 48) | async def test_computer_tool_screenshot(computer_tool): function test_computer_tool_scaling (line 59) | async def test_computer_tool_scaling(computer_tool): function test_computer_tool_scaling_with_different_aspect_ratio (line 82) | async def test_computer_tool_scaling_with_different_aspect_ratio(compute... function test_computer_tool_no_scaling_for_unsupported_resolution (line 99) | async def test_computer_tool_no_scaling_for_unsupported_resolution(compu... function test_computer_tool_scaling_out_of_bounds (line 115) | async def test_computer_tool_scaling_out_of_bounds(computer_tool): function test_computer_tool_invalid_action (line 126) | async def test_computer_tool_invalid_action(computer_tool): function test_computer_tool_missing_coordinate (line 132) | async def test_computer_tool_missing_coordinate(computer_tool): function test_computer_tool_missing_text (line 138) | async def test_computer_tool_missing_text(computer_tool): FILE: computer-use-demo/tests/tools/edit_test.py function edit_tool (line 11) | def edit_tool(): function test_view_command (line 16) | async def test_view_command(edit_tool): function test_create_command (line 81) | async def test_create_command(edit_tool): function test_str_replace_command (line 109) | async def test_str_replace_command(edit_tool): function test_insert_command (line 178) | async def test_insert_command(edit_tool): function test_validate_path (line 266) | async def test_validate_path(edit_tool): FILE: customer-support-agent/app/api/chat/route.ts function sanitizeHeaderValue (line 50) | function sanitizeHeaderValue(value: string): string { function POST (line 64) | async function POST(req: Request) { FILE: customer-support-agent/app/layout.tsx function RootLayout (line 14) | function RootLayout({ FILE: customer-support-agent/app/lib/utils.ts function cn (line 20) | function cn(...inputs: ClassValue[]) { type RAGSource (line 24) | interface RAGSource { function retrieveContext (line 31) | async function retrieveContext( FILE: customer-support-agent/app/page.tsx function Home (line 14) | function Home() { FILE: customer-support-agent/components/ChatArea.tsx type ThinkingContent (line 43) | type ThinkingContent = { type ConversationHeaderProps (line 51) | interface ConversationHeaderProps { type Model (line 194) | type Model = { type Message (line 199) | interface Message { type ConversationHeaderProps (line 206) | interface ConversationHeaderProps { type KnowledgeBase (line 216) | type KnowledgeBase = { function ChatArea (line 300) | function ChatArea() { FILE: customer-support-agent/components/FullSourceModal.tsx type FullSourceModalProps (line 12) | interface FullSourceModalProps { FILE: customer-support-agent/components/LeftSidebar.tsx type ThinkingContent (line 17) | interface ThinkingContent { constant MAX_THINKING_HISTORY (line 45) | const MAX_THINKING_HISTORY = 15; FILE: customer-support-agent/components/RightSidebar.tsx type RAGSource (line 8) | interface RAGSource { type RAGHistoryItem (line 16) | interface RAGHistoryItem { type DebugInfo (line 22) | interface DebugInfo { type SidebarEvent (line 26) | interface SidebarEvent { constant MAX_HISTORY (line 43) | const MAX_HISTORY = 15; FILE: customer-support-agent/components/TopNavBar.tsx type ThemeName (line 26) | type ThemeName = keyof typeof themes; FILE: customer-support-agent/components/theme-provider.tsx function ThemeProvider (line 7) | function ThemeProvider({ children, ...props }: ThemeProviderProps) { FILE: customer-support-agent/components/ui/button.tsx type ButtonProps (line 36) | interface ButtonProps FILE: customer-support-agent/components/ui/input.tsx type InputProps (line 5) | interface InputProps FILE: customer-support-agent/components/ui/textarea.tsx type TextareaProps (line 5) | interface TextareaProps FILE: customer-support-agent/config.ts type Config (line 1) | type Config = { FILE: customer-support-agent/lib/utils.ts function cn (line 4) | function cn(...inputs: ClassValue[]) { FILE: financial-data-analyst/app/api/finance/route.ts type ChartToolResponse (line 23) | interface ChartToolResponse extends ChartData { type ToolSchema (line 27) | interface ToolSchema { function POST (line 103) | async function POST(req: NextRequest) { FILE: financial-data-analyst/app/finance/page.tsx type Message (line 45) | interface Message { type Model (line 59) | type Model = { type FileUpload (line 64) | interface FileUpload { type APIResponse (line 79) | interface APIResponse { type MessageComponentProps (line 91) | interface MessageComponentProps { function AIChat (line 197) | function AIChat() { FILE: financial-data-analyst/app/layout.tsx function RootLayout (line 23) | function RootLayout({ FILE: financial-data-analyst/app/page.tsx function Home (line 7) | function Home() { FILE: financial-data-analyst/components/ChartRenderer.tsx function BarChartComponent (line 33) | function BarChartComponent({ data }: { data: ChartData }) { function MultiBarChartComponent (line 91) | function MultiBarChartComponent({ data }: { data: ChartData }) { function LineChartComponent (line 150) | function LineChartComponent({ data }: { data: ChartData }) { function PieChartComponent (line 218) | function PieChartComponent({ data }: { data: ChartData }) { function AreaChartComponent (line 310) | function AreaChartComponent({ function ChartRenderer (line 391) | function ChartRenderer({ data }: { data: ChartData }) { FILE: financial-data-analyst/components/FilePreview.tsx type FilePreviewProps (line 6) | interface FilePreviewProps { FILE: financial-data-analyst/components/TopNavBar.tsx type TopNavBarProps (line 15) | interface TopNavBarProps { FILE: financial-data-analyst/components/theme-provider.tsx function ThemeProvider (line 8) | function ThemeProvider({ children, ...props }: ThemeProviderProps) { FILE: financial-data-analyst/components/ui/badge.tsx type BadgeProps (line 26) | interface BadgeProps function Badge (line 30) | function Badge({ className, variant, ...props }: BadgeProps) { FILE: financial-data-analyst/components/ui/button.tsx type ButtonProps (line 37) | interface ButtonProps FILE: financial-data-analyst/components/ui/chart.tsx constant THEMES (line 14) | const THEMES = { light: "", dark: ".dark" } as const type ChartConfig (line 16) | type ChartConfig = { type ChartContextProps (line 26) | type ChartContextProps = { function useChart (line 32) | function useChart() { function getPayloadConfigFromPayload (line 325) | function getPayloadConfigFromPayload( FILE: financial-data-analyst/components/ui/textarea.tsx type TextareaProps (line 5) | interface TextareaProps FILE: financial-data-analyst/components/ui/toast.tsx type ToastProps (line 115) | type ToastProps = React.ComponentPropsWithoutRef type ToastActionElement (line 117) | type ToastActionElement = React.ReactElement FILE: financial-data-analyst/components/ui/toaster.tsx function Toaster (line 13) | function Toaster() { FILE: financial-data-analyst/hooks/use-toast.ts constant TOAST_LIMIT (line 11) | const TOAST_LIMIT = 1 constant TOAST_REMOVE_DELAY (line 12) | const TOAST_REMOVE_DELAY = 1000000 type ToasterToast (line 14) | type ToasterToast = ToastProps & { function genId (line 30) | function genId() { type ActionType (line 35) | type ActionType = typeof actionTypes type Action (line 37) | type Action = type State (line 55) | interface State { function dispatch (line 136) | function dispatch(action: Action) { type Toast (line 143) | type Toast = Omit function toast (line 145) | function toast({ ...props }: Toast) { function useToast (line 174) | function useToast() { FILE: financial-data-analyst/lib/utils.ts function cn (line 4) | function cn(...inputs: ClassValue[]) { FILE: financial-data-analyst/types/chart.ts type ChartConfig (line 2) | interface ChartConfig { type ChartData (line 10) | interface ChartData { FILE: financial-data-analyst/utils/fileHandling.ts type FileUpload (line 94) | interface FileUpload {