MCPcopy Create free account

hub / github.com/anthropics/claude-quickstarts / functions

Functions710 in github.com/anthropics/claude-quickstarts

Functiontest_bash_tool_run_command
(bash_tool)
computer-use-demo/tests/tools/bash_test.py:22
Functiontest_bash_tool_session_creation
(bash_tool)
computer-use-demo/tests/tools/bash_test.py:35
Functiontest_bash_tool_session_error
(bash_tool)
computer-use-demo/tests/tools/bash_test.py:51
Functiontest_bash_tool_session_reuse
(bash_tool)
computer-use-demo/tests/tools/bash_test.py:42
Functiontest_bash_tool_timeout
(bash_tool)
computer-use-demo/tests/tools/bash_test.py:64
Methodtest_basic_agent
Test agent without message_params to ensure backward compatibility.
agents/test_message_params.py:57
Functiontest_batch_aggregates_and_interleaves_images
()
computer-use-best-practices/tests/test_batch.py:37
Functiontest_batch_step_exception_keeps_prior_results
An exception mid-batch is caught and reported; results from earlier steps (including images) survive.
computer-use-best-practices/tests/test_batch.py:55
Functiontest_batch_stops_on_error
()
computer-use-best-practices/tests/test_batch.py:45
Methodtest_beta_headers
Test passing beta feature headers.
agents/test_message_params.py:94
Functiontest_both_disabled_raises
(monkeypatch: pytest.MonkeyPatch)
computer-use-best-practices/tests/test_build_tools.py:44
Functiontest_browser_key_normalization
()
computer-use-best-practices/tests/test_base.py:75
Methodtest_build_tool_result_with_image
Test building tool result with base64 image.
browser-use-demo/tests/test_sampling_loop.py:141
Methodtest_build_tool_result_with_text_extraction_markers
Test handling of text extraction markers in tool results.
browser-use-demo/tests/test_sampling_loop.py:155
Functiontest_cache_control_ladders_last_n
()
computer-use-best-practices/tests/test_compaction.py:62
Functiontest_cache_control_lands_on_compaction_when_last_cacheable
()
computer-use-best-practices/tests/test_compaction.py:53
Functiontest_cache_control_on_mixed_compaction_and_tool_result
()
computer-use-best-practices/tests/test_compaction.py:75
Functiontest_call_with_retry_recovers
(monkeypatch)
computer-use-best-practices/tests/test_loop.py:76
Functiontest_call_with_retry_reraises_unrecoverable
(monkeypatch)
computer-use-best-practices/tests/test_loop.py:96
Functiontest_check_and_warn_non_required_never_exits
()
computer-use-best-practices/tests/test_preflight.py:9
Functiontest_checks_return_bool
()
computer-use-best-practices/tests/test_preflight.py:4
Methodtest_circular_reference_handling
Test handling circular references in messages.
browser-use-demo/tests/test_message_renderer.py:266
Functiontest_coerce_dict_field_from_string_errors_clearly
Dict-typed fields can't be set via env var; fail at load time rather than letting a raw str through to AttributeError later.
computer-use-best-practices/tests/test_config.py:61
Functiontest_coerce_extra_models_with_x_letter
()
computer-use-best-practices/tests/test_config.py:56
Functiontest_coerce_primitives
()
computer-use-best-practices/tests/test_config.py:13
Methodtest_combined_parameters
Test combining multiple parameter types.
agents/test_message_params.py:200
Functiontest_compaction_beta_header
()
computer-use-best-practices/tests/test_compaction.py:83
Methodtest_complete_state_initialization
Test complete state initialization flow.
browser-use-demo/tests/test_integration.py:81
Methodtest_complete_user_interaction_flow
Test complete flow from user input to message rendering.
browser-use-demo/tests/test_integration.py:266
Functiontest_computer_tool_hosted_param
()
computer-use-best-practices/tests/test_base.py:87
Functiontest_computer_tool_invalid_action
(computer_tool)
computer-use-demo/tests/tools/computer_test.py:126
Functiontest_computer_tool_missing_coordinate
(computer_tool)
computer-use-demo/tests/tools/computer_test.py:132
Functiontest_computer_tool_missing_text
(computer_tool)
computer-use-demo/tests/tools/computer_test.py:138
Functiontest_computer_tool_mouse_move
(computer_tool)
computer-use-demo/tests/tools/computer_test.py:20
Functiontest_computer_tool_no_scaling_for_unsupported_resolution
(computer_tool)
computer-use-demo/tests/tools/computer_test.py:99
Functiontest_computer_tool_scaling
(computer_tool)
computer-use-demo/tests/tools/computer_test.py:59
Functiontest_computer_tool_scaling_out_of_bounds
(computer_tool)
computer-use-demo/tests/tools/computer_test.py:115
Functiontest_computer_tool_scaling_with_different_aspect_ratio
(computer_tool)
computer-use-demo/tests/tools/computer_test.py:82
Functiontest_computer_tool_screenshot
(computer_tool)
computer-use-demo/tests/tools/computer_test.py:48
Functiontest_computer_tool_type
(computer_tool)
computer-use-demo/tests/tools/computer_test.py:31
Functiontest_computer_zoom_validation
()
computer-use-best-practices/tests/test_zoom.py:18
Methodtest_concurrent_async_operations
Test handling concurrent async operations.
browser-use-demo/tests/test_integration.py:176
Methodtest_concurrent_modification
Test behavior when session state is modified during rendering.
browser-use-demo/tests/test_message_renderer.py:335
Methodtest_concurrent_setup_state_calls
Test concurrent calls to setup_state.
browser-use-demo/tests/test_streamlit_helpers.py:270
Functiontest_create_and_view_roundtrip
(tool: EditorTool)
computer-use-best-practices/tests/test_editor.py:15
Functiontest_create_command
(edit_tool)
computer-use-demo/tests/tools/edit_test.py:81
Methodtest_create_new_loop_when_closed
Test creating new event loop when existing is closed.
browser-use-demo/tests/test_streamlit_helpers.py:131
Methodtest_create_new_loop_when_none
Test creating new event loop when none exists.
browser-use-demo/tests/test_streamlit_helpers.py:114
Methodtest_custom_headers
Test passing custom headers through message_params.
agents/test_message_params.py:71
Methodtest_deeply_nested_content
Test handling deeply nested content structures.
browser-use-demo/tests/test_message_renderer.py:321
Methodtest_deeply_nested_content_performance
Test performance with deeply nested content structures.
browser-use-demo/tests/test_integration.py:344
Functiontest_default_includes_both_sets
(monkeypatch: pytest.MonkeyPatch)
computer-use-best-practices/tests/test_build_tools.py:19
Functiontest_defaults
()
computer-use-best-practices/tests/test_config.py:6
Functiontest_delete_key_maps_to_backspace_on_mac
()
computer-use-best-practices/tests/test_base.py:56
Functiontest_disable_browser_only
(monkeypatch: pytest.MonkeyPatch)
computer-use-best-practices/tests/test_build_tools.py:36
Functiontest_disable_computer_only
(monkeypatch: pytest.MonkeyPatch)
computer-use-best-practices/tests/test_build_tools.py:26
Functiontest_effort_kwargs
()
computer-use-best-practices/tests/test_loop.py:114
Functiontest_effort_unsupported_model_raises
()
computer-use-best-practices/tests/test_loop.py:128
Methodtest_ensure_message_integrity_empty_list_content
Test message integrity with empty content list.
browser-use-demo/tests/test_sampling_loop.py:254
Methodtest_ensure_message_integrity_missing_content
Test message integrity with missing content.
browser-use-demo/tests/test_sampling_loop.py:245
Methodtest_ensure_message_integrity_missing_role
Test message integrity with missing role.
browser-use-demo/tests/test_sampling_loop.py:236
Methodtest_ensure_message_integrity_valid
Test message integrity validation with valid messages.
browser-use-demo/tests/test_sampling_loop.py:226
Functiontest_env_var_overrides_toml
(tmp_path, monkeypatch)
computer-use-best-practices/tests/test_config.py:42
Functiontest_errored_batch_replaces_images_with_placeholder
If any step errors, the batch is is_error=true and the API rejects image blocks in errored tool_results, so prior-step images become text placehol
computer-use-best-practices/tests/test_batch.py:69
Functiontest_errored_result_replaces_image_with_placeholder
()
computer-use-best-practices/tests/test_result.py:4
Methodtest_event_loop_creation_error
Test handling error during event loop creation.
browser-use-demo/tests/test_streamlit_helpers.py:168
Methodtest_exception_in_rendering
Test that exceptions during rendering are propagated.
browser-use-demo/tests/test_message_renderer.py:289
Methodtest_execute_tools_success
Test successful tool execution.
browser-use-demo/tests/test_sampling_loop.py:81
Methodtest_execute_tools_with_error
Test tool execution with error.
browser-use-demo/tests/test_sampling_loop.py:111
Methodtest_extract_text_from_message
Test extracting text from assistant message.
browser-use-demo/tests/test_sampling_loop.py:263
Methodtest_extract_text_from_message_no_text
Test extracting text when there's no text content.
browser-use-demo/tests/test_sampling_loop.py:279
Methodtest_extract_text_from_user_message
Test that text extraction returns None for non-assistant messages.
browser-use-demo/tests/test_sampling_loop.py:293
Functiontest_force_prune_then_cycle_resumes
Regression: after a force-prune the kept-count must climb again (min, min+1, ...) rather than getting pinned at min_images forever.
computer-use-best-practices/tests/test_formatters.py:115
Functiontest_format_usage_missing_cache_fields
()
computer-use-best-practices/tests/test_loop.py:62
Functiontest_format_usage_with_advisor_iterations
()
computer-use-best-practices/tests/test_advisor.py:42
Functiontest_format_usage_with_cache
()
computer-use-best-practices/tests/test_loop.py:46
Methodtest_full_conversation_rendering
Test rendering a complete conversation with various message types.
browser-use-demo/tests/test_integration.py:24
Methodtest_get_or_create_with_running_loop
Test get_or_create_event_loop when another loop is running.
browser-use-demo/tests/test_streamlit_helpers.py:297
Functiontest_hold_key_releases_on_interrupt
Ctrl+C during hold_key's sleep must still release the keys.
computer-use-best-practices/tests/test_computer.py:79
Functiontest_hosted_param_reports_resized_dimensions
Tool params are built before any screenshot, so __init__ must compute the post-resize size up front rather than defaulting to raw screen size.
computer-use-best-practices/tests/test_computer.py:64
Methodtest_initialization
Test MessageRenderer initialization.
browser-use-demo/tests/test_message_renderer.py:13
Methodtest_initialization_error_recovery
Test recovery from initialization errors.
browser-use-demo/tests/test_integration.py:236
Methodtest_initialization_with_empty_state
Test initialization with empty session state.
browser-use-demo/tests/test_message_renderer.py:23
Methodtest_initialization_with_none_state
Test initialization with None session state.
browser-use-demo/tests/test_message_renderer.py:18
Functiontest_insert
(tool: EditorTool)
computer-use-best-practices/tests/test_editor.py:48
Functiontest_insert_command
(edit_tool)
computer-use-demo/tests/tools/edit_test.py:178
Functiontest_interval_kept_count_cycles
()
computer-use-best-practices/tests/test_formatters.py:56
Functiontest_interval_noop_when_under_min
()
computer-use-best-practices/tests/test_formatters.py:91
Functiontest_interval_prefix_stable_within_window
Within one interval window, growing the history by one image must not change which earlier images were replaced; that is what keeps the prompt
computer-use-best-practices/tests/test_formatters.py:67
Functiontest_interval_replacement_is_text_block
()
computer-use-best-practices/tests/test_formatters.py:83
Methodtest_invalid_metadata_field
Test that invalid metadata fields are properly rejected by the API.
agents/test_message_params.py:178
Methodtest_invalid_sender_type
Test handling invalid sender types.
browser-use-demo/tests/test_message_renderer.py:354
Functiontest_is_empty_response
()
computer-use-best-practices/tests/test_loop.py:108
Functiontest_is_recoverable_classification
()
computer-use-best-practices/tests/test_loop.py:68
Methodtest_large_conversation_history
Test rendering very large conversation history.
browser-use-demo/tests/test_integration.py:320
Functiontest_load_from_toml
(tmp_path)
computer-use-best-practices/tests/test_config.py:25
Functiontest_long_edge_only_is_insufficient
()
computer-use-best-practices/tests/test_image.py:25
Functiontest_loop
()
computer-use-demo/tests/loop_test.py:9
Functiontest_loop_adaptive_thinking_sends_effort
()
computer-use-demo/tests/loop_test.py:106
Functiontest_loop_extended_thinking_sends_budget
()
computer-use-demo/tests/loop_test.py:116
← previousnext →501–600 of 710, ranked by callers