Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/claude-quickstarts
/ functions
Functions
710 in github.com/anthropics/claude-quickstarts
⨍
Functions
710
◇
Types & classes
123
↳
Endpoints
40
Function
test_loop_thinking_off_sends_no_thinking_params
()
computer-use-demo/tests/loop_test.py:101
Method
test_malformed_tool_result
Test handling malformed ToolResult objects.
browser-use-demo/tests/test_message_renderer.py:278
Function
test_max_message_mb_force_prunes_and_resets_offset
(capsys)
computer-use-best-practices/tests/test_formatters.py:99
Method
test_metadata
Test passing valid metadata fields.
agents/test_message_params.py:113
Method
test_missing_tool_in_session_state
Test handling tool_use_id that doesn't exist in session state.
browser-use-demo/tests/test_message_renderer.py:248
Method
test_normalize_content_with_various_inputs
Test _normalize_content with various input types.
browser-use-demo/tests/test_message_renderer.py:305
Function
test_ok_result_emits_image
()
computer-use-best-practices/tests/test_result.py:13
Function
test_output_truncated
()
computer-use-best-practices/tests/test_shell.py:50
Method
test_parameter_override
Test that message_params override config defaults.
agents/test_message_params.py:155
Function
test_path_escape_rejected
(tool: EditorTool)
computer-use-best-practices/tests/test_editor.py:58
Function
test_portrait_transposed
()
computer-use-best-practices/tests/test_image.py:40
Method
test_process_response_mixed_content
Test processing a response with both text and tool use.
browser-use-demo/tests/test_sampling_loop.py:57
Method
test_process_response_text_only
Test processing a response with only text content.
browser-use-demo/tests/test_sampling_loop.py:20
Method
test_process_response_tool_only
Test processing a response with only tool use.
browser-use-demo/tests/test_sampling_loop.py:37
Function
test_provider_first_party_feature_validation
()
computer-use-best-practices/tests/test_constants.py:15
Function
test_prune_keeps_last_n
()
computer-use-best-practices/tests/test_loop.py:24
Function
test_python_print
()
computer-use-best-practices/tests/test_shell.py:19
Method
test_render_dict_message_text_type
Test rendering dictionary message with text type.
browser-use-demo/tests/test_message_renderer.py:91
Method
test_render_dict_message_tool_use_type
Test rendering dictionary message with tool_use type.
browser-use-demo/tests/test_message_renderer.py:99
Method
test_render_dict_message_unknown_type
Test rendering dictionary message with unknown type.
browser-use-demo/tests/test_message_renderer.py:112
Method
test_render_empty_history
Test rendering empty conversation history.
browser-use-demo/tests/test_message_renderer.py:141
Method
test_render_empty_string
Test rendering an empty string (should skip).
browser-use-demo/tests/test_message_renderer.py:41
Method
test_render_list_content
Test rendering messages with list content.
browser-use-demo/tests/test_message_renderer.py:194
Method
test_render_missing_content_field
Test handling messages missing content field.
browser-use-demo/tests/test_message_renderer.py:174
Method
test_render_multiple_messages
Test rendering multiple messages with different roles.
browser-use-demo/tests/test_message_renderer.py:157
Method
test_render_none_content
Test handling messages with None content.
browser-use-demo/tests/test_message_renderer.py:185
Method
test_render_none_message
Test rendering None message (should skip).
browser-use-demo/tests/test_message_renderer.py:48
Method
test_render_single_message
Test rendering single message in history.
browser-use-demo/tests/test_message_renderer.py:149
Method
test_render_string_message
Test rendering a simple string message.
browser-use-demo/tests/test_message_renderer.py:33
Method
test_render_tool_result_with_error
Test rendering ToolResult with error.
browser-use-demo/tests/test_message_renderer.py:62
Method
test_render_tool_result_with_hidden_screenshots
Test that images are hidden when hide_screenshots is True.
browser-use-demo/tests/test_message_renderer.py:79
Method
test_render_tool_result_with_image
Test rendering ToolResult with image.
browser-use-demo/tests/test_message_renderer.py:69
Method
test_render_tool_result_with_output
Test rendering ToolResult with output.
browser-use-demo/tests/test_message_renderer.py:55
Method
test_render_unicode_special_chars
Test rendering messages with unicode and special characters.
browser-use-demo/tests/test_message_renderer.py:129
Method
test_render_unknown_role
Test handling messages with unknown roles.
browser-use-demo/tests/test_message_renderer.py:165
Method
test_render_very_long_message
Test rendering extremely long messages.
browser-use-demo/tests/test_message_renderer.py:121
Method
test_rendering_error_propagation
Test that rendering errors are properly propagated.
browser-use-demo/tests/test_integration.py:214
Function
test_required_with_default_raises
()
computer-use-best-practices/tests/test_base.py:24
Function
test_retina_mbp
()
computer-use-best-practices/tests/test_image.py:34
Method
test_reuse_existing_open_loop
Test reusing existing open event loop.
browser-use-demo/tests/test_streamlit_helpers.py:153
Method
test_sampling_loop_multiple_tools_with_text
Test handling of multiple tool uses with text.
browser-use-demo/tests/test_sampling_loop.py:423
Method
test_sampling_loop_preserves_text_with_tools
Test that text is preserved when tools are used.
browser-use-demo/tests/test_sampling_loop.py:311
Method
test_sampling_loop_text_only_response
Test handling of text-only responses.
browser-use-demo/tests/test_sampling_loop.py:386
Function
test_sandbox_denies_home_write
()
computer-use-best-practices/tests/test_shell.py:27
Function
test_sandbox_denies_secret_read
Credential paths under $HOME and any .env file are unreadable.
computer-use-best-practices/tests/test_shell.py:33
Function
test_schema_signature_mismatch_raises
()
computer-use-best-practices/tests/test_base.py:9
Function
test_screenshot_too_small
()
computer-use-best-practices/tests/test_image.py:52
Method
test_set_event_loop_error
Test handling error when setting event loop.
browser-use-demo/tests/test_streamlit_helpers.py:179
Method
test_setup_state_browser_tool_error
Test setup_state when BrowserTool initialization fails.
browser-use-demo/tests/test_streamlit_helpers.py:91
Method
test_setup_state_fresh_initialization
Test setup_state with completely empty session state.
browser-use-demo/tests/test_streamlit_helpers.py:19
Method
test_setup_state_lambda_evaluation
Test that lambda functions are evaluated correctly.
browser-use-demo/tests/test_streamlit_helpers.py:74
Method
test_setup_state_missing_env_variables
Test setup_state when environment variables are missing.
browser-use-demo/tests/test_streamlit_helpers.py:60
Method
test_setup_state_partial_initialization
Test setup_state when some keys already exist.
browser-use-demo/tests/test_streamlit_helpers.py:38
Method
test_setup_state_with_corrupted_state
Test setup_state with corrupted session state.
browser-use-demo/tests/test_streamlit_helpers.py:260
Method
test_setup_state_with_readonly_state
Test setup_state when session state is read-only.
browser-use-demo/tests/test_streamlit_helpers.py:316
Function
test_shell_shares_scratch_dir
Bash and the editor see the same persistent directory.
computer-use-best-practices/tests/test_editor.py:111
Function
test_simple_keeps_last_n
()
computer-use-best-practices/tests/test_formatters.py:50
Method
test_skip_image_blocks_in_history
Test that image blocks are skipped in conversation history.
browser-use-demo/tests/test_message_renderer.py:213
Function
test_small_image_unchanged
()
computer-use-best-practices/tests/test_image.py:21
Function
test_square
()
computer-use-best-practices/tests/test_image.py:46
Method
test_state_persistence_across_renders
Test that state persists across multiple render calls.
browser-use-demo/tests/test_integration.py:118
Function
test_str_replace_command
(edit_tool)
computer-use-demo/tests/tools/edit_test.py:109
Function
test_str_replace_unique
(tool: EditorTool)
computer-use-best-practices/tests/test_editor.py:35
Function
test_streamlit
(streamlit_app: AppTest)
computer-use-demo/tests/streamlit_test.py:15
Function
test_strip_advisor_removes_blocks
()
computer-use-best-practices/tests/test_advisor.py:32
Function
test_supported_models_excludes_haiku
()
computer-use-best-practices/tests/test_compaction.py:87
Function
test_thinking_effort_defaults_cover_all_models
()
computer-use-best-practices/tests/test_loop.py:122
Function
test_thinking_modes_follow_selected_model
( streamlit_app: AppTest, model: str, expected_modes: list[str] )
computer-use-demo/tests/streamlit_test.py:44
Method
test_tool_choice_parameter_set
Test that tool_choice is explicitly set to auto.
browser-use-demo/tests/test_sampling_loop.py:485
Function
test_tool_collection_hosted_computer_swap
()
computer-use-best-practices/tests/test_base.py:99
Method
test_tool_result_in_assistant_message
Test rendering tool results from assistant messages.
browser-use-demo/tests/test_message_renderer.py:231
Function
test_truncate_drops_before_compaction
()
computer-use-best-practices/tests/test_compaction.py:25
Function
test_truncate_noop_without_compaction
()
computer-use-best-practices/tests/test_compaction.py:33
Function
test_truncate_picks_most_recent
()
computer-use-best-practices/tests/test_compaction.py:42
Function
test_type_text_handles_non_ascii
Bonus over pyautogui.write(): chars with no ANSI keycode at all.
computer-use-best-practices/tests/test_computer.py:58
Function
test_type_text_sends_real_keys_for_control_chars
(captured)
computer-use-best-practices/tests/test_computer.py:52
Function
test_type_text_uses_unicode_not_keycodes
Printable chars must go through CGEventKeyboardSetUnicodeString so the active keyboard layout (Dvorak, AZERTY, ...) cannot remap them.
computer-use-best-practices/tests/test_computer.py:42
Function
test_unmapped_keys
()
computer-use-best-practices/tests/test_base.py:66
Function
test_valid_tool_ok
()
computer-use-best-practices/tests/test_base.py:40
Function
test_validate_path
(edit_tool)
computer-use-demo/tests/tools/edit_test.py:266
Function
test_view_command
(edit_tool)
computer-use-demo/tests/tools/edit_test.py:16
Function
test_view_directory
(tool: EditorTool)
computer-use-best-practices/tests/test_editor.py:65
Function
test_view_image_returns_image_block
(tool: EditorTool, tmp_path: Path)
computer-use-best-practices/tests/test_editor.py:74
Function
test_view_pdf_returns_document_block
(tool: EditorTool, tmp_path: Path)
computer-use-best-practices/tests/test_editor.py:93
Function
test_view_range
(tool: EditorTool)
computer-use-best-practices/tests/test_editor.py:23
Function
test_view_small_image_ok
Small/solid images are legitimate file content, not failed screenshots.
computer-use-best-practices/tests/test_editor.py:85
Function
test_with_overrides
()
computer-use-best-practices/tests/test_config.py:50
Function
test_zoom_in_browser_schema
()
computer-use-best-practices/tests/test_zoom.py:12
Function
test_zoom_in_computer_schema
()
computer-use-best-practices/tests/test_zoom.py:5
Function
text_delta
(text: str)
computer-use-best-practices/computer_use/render.py:57
Function
thinking_delta
(text: str)
computer-use-best-practices/computer_use/render.py:52
Method
to_api_content
(self)
computer-use-best-practices/computer_use/tools/batch.py:29
Method
to_dict
Convert to Anthropic server tool format.
agents/tools/web_search.py:18
Method
to_dict
Convert to Anthropic server tool format.
agents/tools/code_execution.py:14
Method
to_params
( self, )
browser-use-demo/browser_use_demo/tools/base.py:17
Method
to_params
Convert tool to API parameters using custom tool definition.
browser-use-demo/browser_use_demo/tools/browser.py:207
Method
to_params
(self)
computer-use-demo/computer_use_demo/tools/bash.py:119
Method
to_params
( self, )
computer-use-demo/computer_use_demo/tools/base.py:17
Method
to_params
(self)
computer-use-demo/computer_use_demo/tools/edit.py:38
Method
to_params
(self)
computer-use-demo/computer_use_demo/tools/computer.py:297
← previous
next →
601–700 of 710, ranked by callers