MCPcopy Create free account

hub / github.com/bojieli/ai-agent-book / functions

Functions13,003 in github.com/bojieli/ai-agent-book

Methodtest_full_url_prohibited_patterns
Full URL patterns block only matching scheme/host/prefix.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_security2.py:341
Functiontest_fully_compromised_agent_scores_below_mock
An agent that leaks, obeys injected instructions, and breaches its boundary on every input must score strictly below the robust mock.
tests/test_ch2_prompt_injection_robustness.py:177
Functiontest_fully_compromised_agent_scores_zero_on_blockable_dims
An agent that leaks + obeys + breaches on every payload should score 0.0 on all three resistance dimensions for blockable attacks.
tests/test_ch2_prompt_injection_robustness.py:165
Functiontest_gemini_fallback_is_namespaced_for_openrouter
The reroute path maps too: an unmapped ``gemini-*`` id reaches OpenRouter under a name it does not host and is rejected.
tests/test_providers.py:598
Functiontest_gemini_keeps_its_own_call_native
()
chapter5/provider-failover/tests/test_offline.py:88
Functiontest_gemini_neutral_flattens_foreign_tool_calls
()
chapter5/provider-failover/tests/test_offline.py:80
Methodtest_gemini_schema_with_dict_type_field
Test that Gemini schema processing handles dict 'type' field gracefully. Reproduces the AttributeError: 'dict' object has no attribute 'upper'
chapter9/browser-use-rpa/browser-use/tests/ci/test_llm_gemini_type_field_fix.py:13
Methodtest_gemini_schema_with_empty_properties_object
Test handling of empty properties in object type.
chapter9/browser-use-rpa/browser-use/tests/ci/test_llm_gemini_type_field_fix.py:66
Methodtest_gemini_schema_with_nested_dict_type_field
Test that nested dict 'type' fields are handled gracefully.
chapter9/browser-use-rpa/browser-use/tests/ci/test_llm_gemini_type_field_fix.py:28
Methodtest_gemini_schema_with_none_type_field
Test handling of None type field.
chapter9/browser-use-rpa/browser-use/tests/ci/test_llm_gemini_type_field_fix.py:46
Methodtest_gemini_schema_with_valid_string_type
Test that valid string type fields work correctly.
chapter9/browser-use-rpa/browser-use/tests/ci/test_llm_gemini_type_field_fix.py:55
Functiontest_gemini_stream_never_exposes_partial_arguments
Gemini 的流式接口把 functionCall 整块吐出来,所以这个断点在它上面不可复现。
chapter5/provider-failover/tests/test_offline.py:147
Functiontest_gemini_strip_leaves_call_without_credential
剥离思考救不了 Gemini:它的凭证挂在工具调用上,不在思考里。
chapter5/provider-failover/tests/test_offline.py:95
Functiontest_generate_blank_lines_only
(tmp_path)
chapter8/prompt-distillation/test_create_data_empty.py:23
Functiontest_generate_bpy_script_with_null_factor
()
chapter5/video-edit/test_slowmo_null_factor.py:30
Methodtest_generate_code_with_requirements
Test code generation with specific requirements.
chapter4/collaboration-tools/test_intelligence_tools.py:49
Functiontest_generate_empty_input_file
(tmp_path)
chapter8/prompt-distillation/test_create_data_empty.py:6
Methodtest_generate_gif
Test GIF generation with different settings.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_output_paths.py:178
Methodtest_generate_recent_events_summary_format
Test that _generate_recent_events_summary produces valid JSON.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_recent_events.py:287
Methodtest_generate_simple_code
Test generating simple Python code.
chapter4/collaboration-tools/test_intelligence_tools.py:32
Methodtest_generate_synthetic_perturbations_creates_edge_cases
(self)
chapter9/harness-safety-gate/test_evolution.py:167
Functiontest_generated_targets_do_not_contain_unresolved_placeholders
()
chapter8/curly-quote-sft/tests/test_curly_pipeline.py:41
Methodtest_generates_model_from_non_special_args
Should generate param model from non-special positional args
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:766
Functiontest_generic_endpoint_takes_precedence
()
chapter6/computer-use-open-model/tests/test_config.py:16
Functiontest_get_all_output_reads_full_payload
()
chapter4/execution-tools/test_multilang_output.py:7
Functiontest_get_all_uses_v3_filters_and_top_k
()
chapter3/mem0/test_agent_v3.py:53
Methodtest_get_allowed_extensions
Test getting allowed file extensions.
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:236
Methodtest_get_balance_sheet
Test getting balance sheet.
chapter4/perception-tools/test_yahoo_finance_tools.py:254
Methodtest_get_base64
Test base64 encoding
chapter4/multimodal-agent/test_multimodal.py:29
Methodtest_get_board_state
Test getting current board state.
chapter4/collaboration-tools/test_chess_tools.py:48
Methodtest_get_cash_flow
Test getting cash flow statement.
chapter4/perception-tools/test_yahoo_finance_tools.py:273
Functiontest_get_cloud_browser_cdp_url_function
Test the get_cloud_browser_cdp_url convenience function.
chapter9/browser-use-rpa/browser-use/tests/ci/test_cloud_browser.py:258
Methodtest_get_company_info_aapl
Test getting company info for Apple.
chapter4/perception-tools/test_yahoo_finance_tools.py:172
Methodtest_get_company_info_multiple
Test getting company info for multiple companies.
chapter4/perception-tools/test_yahoo_finance_tools.py:193
Methodtest_get_company_info_with_website
Test that company info includes website.
chapter4/perception-tools/test_yahoo_finance_tools.py:209
Methodtest_get_credentials
Test getting credentials.
chapter9/browser-use-rpa/browser-use/tests/ci/test_sync_client_auth.py:101
Methodtest_get_current_directory
Test getting current directory.
chapter4/execution-tools/test_terminal_controller.py:24
Methodtest_get_default_properties
Test getting default properties.
chapter4/perception-tools/test_pubchem_tools.py:171
Methodtest_get_dir
Test getting the filesystem directory.
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:768
Methodtest_get_directory_info
Test getting directory information.
chapter4/execution-tools/test_filesystem_enhanced.py:234
Methodtest_get_dropdown_options
Test that get_dropdown_options correctly retrieves options from a dropdown.
chapter9/browser-use-rpa/browser-use/tests/ci/test_tools.py:370
Methodtest_get_dropdown_options_with_aria_menu
Test that get_dropdown_options can retrieve options from ARIA menus.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_GetDropdownOptionsEvent_aria_menus.py:152
Methodtest_get_dropdown_options_with_nested_aria_menu
Test that get_dropdown_options can handle nested ARIA menus (like Sort submenu).
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_GetDropdownOptionsEvent_aria_menus.py:289
Methodtest_get_file
Test getting files from the filesystem.
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:288
Methodtest_get_file_info
Test getting file information.
chapter4/execution-tools/test_filesystem_enhanced.py:214
Methodtest_get_historical_data_1month
Test getting 1 month of historical data.
chapter4/perception-tools/test_yahoo_finance_tools.py:124
Methodtest_get_historical_data_1week
Test getting 1 week of historical data.
chapter4/perception-tools/test_yahoo_finance_tools.py:94
Methodtest_get_historical_data_weekly
Test getting weekly interval data.
chapter4/perception-tools/test_yahoo_finance_tools.py:146
Methodtest_get_income_statement
Test getting income statement.
chapter4/perception-tools/test_yahoo_finance_tools.py:227
Methodtest_get_legal_moves
Test getting legal moves.
chapter4/collaboration-tools/test_chess_tools.py:260
Methodtest_get_metadata
Test getting Excel metadata.
chapter4/collaboration-tools/test_excel_tools.py:69
Methodtest_get_properties
Test getting compound properties.
chapter4/perception-tools/test_pubchem_tools.py:148
Methodtest_get_properties_invalid_cid
Test getting properties with invalid CID.
chapter4/perception-tools/test_pubchem_tools.py:188
Methodtest_get_quarterly_income_statement
Test getting quarterly income statement.
chapter4/perception-tools/test_yahoo_finance_tools.py:292
Functiontest_get_rating_history_empty_keeps_columns
()
chapter7/elo-leaderboard/tests/test_analyze_empty_history.py:12
Methodtest_get_scroll_info
Test that get_scroll_info returns the correct scroll position information.
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry_action_parameter_injection.py:204
Methodtest_get_state
Test getting filesystem state.
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:547
Methodtest_get_stock_quote_aapl
Test getting stock quote for AAPL.
chapter4/perception-tools/test_yahoo_finance_tools.py:27
Methodtest_get_stock_quote_invalid
Test getting quote for invalid symbol.
chapter4/perception-tools/test_yahoo_finance_tools.py:62
Methodtest_get_stock_quote_multiple
Test getting quotes for multiple symbols.
chapter4/perception-tools/test_yahoo_finance_tools.py:46
Methodtest_get_stock_quote_with_metadata
Test that quote includes proper metadata.
chapter4/perception-tools/test_yahoo_finance_tools.py:73
Methodtest_get_synonyms
Test getting compound synonyms.
chapter4/perception-tools/test_pubchem_tools.py:204
Methodtest_get_synonyms_limit
Test synonym count limit.
chapter4/perception-tools/test_pubchem_tools.py:226
Methodtest_get_timer_status_timezone_aware_expiry
(self)
chapter4/collaboration-tools/test_timer_tools.py:158
Methodtest_get_todo_contents
Test getting todo file contents.
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:534
Functiontest_get_tool_non_dict_json
()
chapter9/self-evolving-tools/test_search_null_fields.py:17
Functiontest_git_commit_range_handles_all_ignored_commits
Contract: If all commits for a file are ignored, git_commit_range must return fallback commit.
tests/test_git_revision_dates.py:144
Functiontest_git_commit_range_ignores_commits_for_creation_date
Verify git_commit_range filters ignored_commits when determining creation date. Contract: If the initial creation commit of a file matches an ign
tests/test_git_revision_dates.py:98
Functiontest_git_commit_range_returns_distinct_creation_and_update_dates
(tmp_path: Path)
tests/test_git_revision_dates.py:75
Functiontest_github_pat_fine_grained_redacted
()
chapter3/log-sanitization/tests/test_github_pat.py:5
Methodtest_glob_filtering
Test glob parameter to filter files
chapter5/coding-agent/tests/test_grep_tool.py:120
Methodtest_glob_pattern_edge_cases
Test edge cases for glob pattern matching to ensure proper behavior.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_security2.py:104
Methodtest_glob_pattern_matching
Test that glob patterns in allowed_domains work correctly.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_security2.py:29
Methodtest_glob_pattern_prohibited
Wildcard patterns block subdomains and main domain for http/https only.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_security2.py:319
Functiontest_global_object_cannot_link_into_tenant
(store)
tests/test_ch5_pedo_tenant_isolation.py:91
Functiontest_global_objects_remain_readable
(store, org)
tests/test_ch5_pedo_tenant_isolation.py:113
Functiontest_global_parent_and_reference_allow_tenant_child
(store)
tests/test_ch5_pedo_tenant_isolation.py:117
Functiontest_glossary_agent_null_glossary_like_empty
()
chapter10/book-translation/tests/test_null_glossary.py:6
Functiontest_glossary_agent_tolerates_json_array
()
chapter10/book-translation/tests/test_glossary_robustness.py:54
Functiontest_glossary_agent_tolerates_missing_glossary_key
()
chapter10/book-translation/tests/test_glossary_robustness.py:59
Methodtest_go_back_action
Test that go_back action navigates to the previous page.
chapter9/browser-use-rpa/browser-use/tests/ci/test_tools.py:209
Methodtest_go_to_url_action
Test that GoToUrlAction navigates to the specified URL and test both state summary methods.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:64
Methodtest_go_to_url_network_error
Test that go_to_url handles network errors gracefully instead of throwing hard errors.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:80
Methodtest_go_to_url_new_tab
Test that GoToUrlAction with new_tab=True opens URL in a new tab.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:126
Functiontest_good_faction_vote_prompt_prioritizes_uncontested_seer_evidence
(monkeypatch)
chapter10/voice-werewolf/test_user_simulator.py:138
Methodtest_google_ainvoke_normal
Test normal text response from Google Gemini
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_chat_models.py:119
Methodtest_google_ainvoke_structured
Test structured output from Google Gemini
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_chat_models.py:133
Methodtest_google_sheets_style_calling_pattern
Test the specific pattern from Google Sheets actions that causes the error
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:276
Methodtest_google_vertex_ainvoke_normal
Test normal text response from Google Gemini via Vertex AI
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_chat_models.py:149
Methodtest_google_vertex_ainvoke_structured
Test structured output from Google Gemini via Vertex AI
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_chat_models.py:169
Functiontest_gpt5_prefers_openrouter_even_with_provider_key
gpt-5.x needs OpenAI org verification, so route it via OpenRouter.
tests/test_providers.py:412
Functiontest_gpt5_prefers_openrouter_when_both_keys_exist
(monkeypatch)
chapter1/web-search-agent/tests/test_config.py:66
Functiontest_grep_tool_execute_single_file_mismatched_glob
(temp_files)
tests/test_ch5_grep_tool_file_filters.py:70
Functiontest_grep_tool_execute_single_file_mismatched_type
(temp_files)
tests/test_ch5_grep_tool_file_filters.py:56
Functiontest_grep_tool_single_file_matching_file_type
(temp_files)
tests/test_ch5_grep_tool_file_filters.py:24
Functiontest_grep_tool_single_file_matching_glob
(temp_files)
tests/test_ch5_grep_tool_file_filters.py:40
Functiontest_grep_tool_single_file_mismatched_file_type
(temp_files)
tests/test_ch5_grep_tool_file_filters.py:32
Functiontest_grep_tool_single_file_mismatched_glob
(temp_files)
tests/test_ch5_grep_tool_file_filters.py:48
Functiontest_grep_tool_supports_multiline_content_matching
Verify GrepTool content mode supports multiline regex matching. Contract: When multiline=True is provided, GrepTool output_mode="content" must
chapter5/coding-agent/tests/test_grep_multiline_content.py:11
Methodtest_groq_ainvoke_normal
Test normal text response from Groq
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_chat_models.py:191
← previousnext →11,101–11,200 of 13,003, ranked by callers