MCPcopy Create free account

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

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

Methodtest_describe_with_content
Test describing filesystem with files containing content.
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:501
Functiontest_detailed_error_gate_requires_failed_old_name_and_actual_read
(tmp_path: Path)
chapter2/system-hint/test_experiment_2_8.py:28
Functiontest_deterministic_chosen_uses_missing_verification
()
chapter8/premature-completion-dpo/test_pipeline.py:92
Functiontest_deterministic_mode_flag
The evaluator exposes a deterministic flag and never executes code.
tests/test_ch5_sandbox_evaluator.py:389
Functiontest_deterministic_rrf_ranking
Verify RRF results order is 100% deterministic across multiple invocations.
tests/test_ch3_hybrid_structured_retriever.py:232
Functiontest_deterministic_winner_conditions
()
chapter10/voice-werewolf/test_live_human.py:129
Methodtest_diagnosis_comes_from_failed_case
(self)
chapter9/prompt-auto-optimization/tests/test_learning_and_release.py:26
Methodtest_diagnosis_selects_control_code_not_prompt
(self)
chapter9/self-modifying-agent/test_evolution.py:24
Functiontest_diagnostic_utility_empty_dimensions
()
tests/test_ch9_verifier_diagnostic_utility.py:75
Functiontest_diagnostic_utility_empty_dimensions
()
tests/test_ch8_verifier_diagnostic_utility.py:75
Functiontest_diagnostic_utility_no_failures
()
tests/test_ch9_verifier_diagnostic_utility.py:61
Functiontest_diagnostic_utility_no_failures
()
tests/test_ch8_verifier_diagnostic_utility.py:61
Functiontest_diagnostic_utility_with_dict_objects
()
tests/test_ch9_verifier_diagnostic_utility.py:33
Functiontest_diagnostic_utility_with_dict_objects
()
tests/test_ch8_verifier_diagnostic_utility.py:33
Functiontest_diagnostic_utility_with_dimension_result_objects
()
tests/test_ch9_verifier_diagnostic_utility.py:10
Functiontest_diagnostic_utility_with_dimension_result_objects
()
tests/test_ch8_verifier_diagnostic_utility.py:10
Functiontest_diagnostic_utility_with_mixed_objects
()
tests/test_ch9_verifier_diagnostic_utility.py:46
Functiontest_diagnostic_utility_with_mixed_objects
()
tests/test_ch8_verifier_diagnostic_utility.py:46
Functiontest_dict_context_empty_content_not_stringified
Regression: dict context with empty content must not be stringified to '{}'. Old code fell back to str(c), treating the raw dict repr as context t
tests/test_ch2_benchmark_compression.py:184
Functiontest_dict_empty_content_and_none_task
()
tests/test_ch2_benchmark_compression.py:144
Methodtest_dimension_scores_all_four_present
Every expected dimension key is present in the report.
tests/test_ch8_trajectory_consistency_checker.py:357
Methodtest_dimension_scores_all_four_present
Every expected dimension key is present in the report.
tests/test_ch9_trajectory_consistency_checker.py:357
Functiontest_dimension_scores_full_restriction
All protections on yields a perfect score on every dimension.
tests/test_ch5_sandbox_evaluator.py:248
Functiontest_dimension_scores_no_restriction
No protections yields zero on every dimension.
tests/test_ch5_sandbox_evaluator.py:258
Functiontest_dimension_scores_partial
Two of four protections yields an overall score of 0.5.
tests/test_ch5_sandbox_evaluator.py:268
Methodtest_dimension_scores_partial_grounding
claim_grounding reflects the fraction of grounded claims.
tests/test_ch8_trajectory_consistency_checker.py:339
Methodtest_dimension_scores_partial_grounding
claim_grounding reflects the fraction of grounded claims.
tests/test_ch9_trajectory_consistency_checker.py:339
Functiontest_dimensions_are_4_by_3_by_2
()
chapter6/controllable-tts/test_fish_s1.py:52
Functiontest_diminishing_returns_detected_for_tiny_gain
A final stage that barely moves NDCG is flagged as diminishing.
tests/test_ch3_retrieval_stage_evaluator.py:280
Functiontest_dir
Create a test directory that gets cleaned up after each test.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_output_paths.py:13
Methodtest_direct_event_dispatching
Test direct event dispatching without using the public API.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_start.py:280
Functiontest_direct_openrouter_maps_bare_model_ids
Selecting openrouter directly still needs namespaced ids, so a bare override is mapped the same way as on the fallback path.
tests/test_providers.py:591
Functiontest_direct_plan_requires_fixed_parameters_and_has_no_planner_receipt
()
chapter6/phone-agent/test_agent.py:62
Functiontest_direct_provider_key_is_used
(monkeypatch)
tests/test_providers.py:121
Functiontest_direct_record_starts_fail_closed_with_audio_provenance_slots
()
chapter6/phone-agent/test_webrtc_app.py:17
Methodtest_directory_change_persistence
Test that directory changes persist
chapter5/coding-agent/tests/test_bash_tool.py:59
Methodtest_directory_lookup_uses_same_identity
(self)
chapter7/model-action-threshold/tasks/crosscutting_identity/repo/tests/test_accounts.py:23
Methodtest_directory_size_zero
Test that directories have size 0
chapter5/coding-agent/tests/test_ls_tool.py:144
Methodtest_directory_tree
Test generating directory tree.
chapter4/execution-tools/test_filesystem_enhanced.py:137
Methodtest_directory_tree_depth_limit
Test directory tree with depth limit.
chapter4/execution-tools/test_filesystem_enhanced.py:152
Methodtest_disable_features_flag_deduplication
Test that duplicate --disable-features values are properly deduplicated.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_profile_disable_security.py:61
Methodtest_disable_security_preserves_extension_features
Test that disable_security=True doesn't break extension features by properly merging --disable-features flags.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_profile_disable_security.py:11
Functiontest_dispatch_and_wait_does_not_silently_succeed_unconfigured
Regression: dispatch_and_wait with unconfigured channels must not mark dispatched as successful. The channels_dispatched results must show succes
tests/test_ch4_notification_dispatcher.py:665
Functiontest_dispatcher_default_channels_honored
Test that configured default_channels on dispatcher are honored when request has no channels.
tests/test_ch4_notification_dispatcher.py:197
Methodtest_display_file
Test displaying file content.
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:308
Functiontest_display_metrics_empty_results
Ensure display_metrics gracefully handles empty results list.
chapter2/prompt-engineering/test_tau_bench_empty_results.py:12
Functiontest_distribution_reports_required_completion_percentiles
()
chapter7/openvla-robotwin2-eval/test_experiment.py:98
Functiontest_division_guard_math
()
chapter5/video-edit/test_slowmo_factor_zero.py:11
Functiontest_docker_availability_returns_false_on_timeout
(monkeypatch)
chapter4/execution-tools/test_code_interpreter_python_runtime.py:171
Methodtest_docker_command_enforces_isolation_and_resource_limits
(self)
chapter9/self-modifying-agent/test_candidate_sandbox.py:8
Methodtest_done_action
Test that DoneAction completes a task and reports success or failure.
chapter9/browser-use-rpa/browser-use/tests/ci/test_tools.py:321
Functiontest_double_quoted_password_with_spaces
()
chapter3/log-sanitization/tests/test_quoted_secret_spaces.py:5
Methodtest_double_url_unquoting_path_traversal
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:71
Methodtest_double_url_unquoting_sensitive_dir
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:79
Functiontest_download_paper_case_insensitive_arxiv_prefix
(monkeypatch, tmp_path)
chapter4/perception-tools/test_arxiv_request_bounds.py:70
Methodtest_download_then_upload_with_hash_verification
Download a file, then upload it to another page, verify hash matches
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_downloads_upload_full_circle.py:137
Functiontest_downloads_watchdog_file_detection
Test that DownloadsWatchdog detects file downloads.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_downloads.py:59
Functiontest_downloads_watchdog_lifecycle
Test that DownloadsWatchdog starts and stops with browser session.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_downloads.py:22
Functiontest_duplicate_comma_does_not_raise
()
chapter4/perception-tools/test_parse_page_range_trailing_comma.py:20
Methodtest_duplicate_delivery_fails
(self)
chapter6/astra-async-steering/test_judging.py:53
Methodtest_duplicate_delivery_fails
(self)
chapter6/astra-async-steering/validation/runs/exp6-14-20260905-formal/source/test_judging.py:53
Functiontest_duplicate_request_id_preserves_existing_decision
Regression: re-submitting same request ID must not discard an existing human decision by overwriting with a fresh pending record.
tests/test_ch4_notification_dispatcher.py:465
Functiontest_duplicate_side_effect_is_counted_by_fingerprint
()
chapter5/provider-failover/tests/test_offline.py:212
Functiontest_durable_campaign_passes_every_derived_gate
()
chapter6/async-agent/test_real_experiment.py:32
Methodtest_each_fixture_starts_failing_and_has_safe_test_command
(self)
chapter7/model-action-threshold/tests/test_experiment.py:45
Functiontest_edge_cases
()
tests/test_ch2_benchmark_compression.py:133
Methodtest_edit_creates_syntax_error
Test lint check detects errors introduced by edit
chapter5/coding-agent/tests/test_edit_tool.py:157
Methodtest_edit_results_tracking
Test that edit_results tracks each edit
chapter5/coding-agent/tests/test_multi_edit_tool.py:178
Functiontest_edition_of
(location, expected)
tests/test_split_search_index.py:60
Functiontest_efficiency_refinement_can_promote_without_inventing_success_gain
()
chapter7/android-world/test_experiment.py:289
Functiontest_efficiency_refinement_rejects_cheap_but_unsuccessful_treatment
()
chapter7/android-world/test_experiment.py:308
Functiontest_efficiency_score_all_productive
()
tests/test_ch6_cost_efficiency_analyzer.py:280
Functiontest_efficiency_score_all_productive
()
tests/test_ch7_cost_efficiency_analyzer.py:280
Functiontest_efficiency_score_all_wasteful
()
tests/test_ch6_cost_efficiency_analyzer.py:288
Functiontest_efficiency_score_all_wasteful
()
tests/test_ch7_cost_efficiency_analyzer.py:288
Functiontest_efficiency_score_clamped_to_unit_interval
()
tests/test_ch6_cost_efficiency_analyzer.py:308
Functiontest_efficiency_score_clamped_to_unit_interval
()
tests/test_ch7_cost_efficiency_analyzer.py:308
Functiontest_efficiency_score_mixed
()
tests/test_ch6_cost_efficiency_analyzer.py:295
Functiontest_efficiency_score_mixed
()
tests/test_ch7_cost_efficiency_analyzer.py:295
Methodtest_element_covered_by_overlay
Test clicking an element that's mostly covered by another element.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_ClickElementEvent.py:519
Methodtest_element_not_found_error
Test get_dropdown_options with invalid element index.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_GetDropdownOptionsEvent.py:456
Functiontest_embedding_caching
Verify embedding_fn output is cached on the node dictionary.
tests/test_ch3_hybrid_structured_retriever.py:195
Functiontest_empty_code_is_safe
An empty string is classified as safe with no patterns.
tests/test_ch5_sandbox_evaluator.py:311
Methodtest_empty_content
Test writing empty file
chapter5/coding-agent/tests/test_write_tool.py:120
Functiontest_empty_content_is_returned_unchanged
()
tests/test_mkdocs_figure_captions.py:103
Functiontest_empty_context_zero_savings_not_100_percent
Regression: empty context must report 0% savings, not 100%. Old code computed savings = 1.0 - (0 / max(1.0, 0)) = 1.0 - 0 = 1.0.
tests/test_ch2_benchmark_compression.py:175
Functiontest_empty_dataframe_returns_empty_list
Empty input returns [] instead of NaT ValueError.
chapter7/elo-leaderboard/tests/test_time_slices_short_span.py:33
Functiontest_empty_evidence_fails_closed
()
chapter6/async-agent/test_real_experiment.py:48
Functiontest_empty_file
(tmp_path)
tests/test_ch8_sft_data_auditor.py:279
Functiontest_empty_file
(tmp_path)
tests/test_ch7_sft_data_auditor.py:279
Methodtest_empty_file
Test reading empty file
chapter5/coding-agent/tests/test_read_tool.py:81
Functiontest_empty_history_returns_empty_frames
()
chapter7/elo-leaderboard/tests/test_animation_empty_history.py:6
Functiontest_empty_model_falls_back_to_default
An empty cfg.model falls back to the current default speech-2.8-hd.
chapter7/tts-quality-eval/test_minimax_t2a_refresh.py:76
Functiontest_empty_old_string_later_edit_rejected
(system_state, temp_dir)
chapter5/coding-agent/tests/test_multi_edit_empty_old_on_existing.py:50
Functiontest_empty_old_string_matches_edit_rejection
(system_state, temp_dir)
chapter5/coding-agent/tests/test_multi_edit_empty_old_on_existing.py:21
Functiontest_empty_old_string_on_existing_file_rejected
(system_state, temp_dir)
chapter5/coding-agent/tests/test_multi_edit_empty_old_on_existing.py:7
Methodtest_empty_old_string_replace_all_rejected
Empty old_string with replace_all must not insert between every character.
chapter5/coding-agent/tests/test_edit_tool.py:46
Methodtest_empty_or_invalid_input
(self)
chapter1/context/tests/test_calc_sandbox.py:96
Methodtest_empty_patch_is_rejected
(self)
chapter9/prompt-auto-optimization/tests/test_learning_and_release.py:49
Methodtest_empty_plan
Test with empty plan
chapter5/coding-agent/tests/test_exit_plan_mode_tool.py:58
← previousnext →10,701–10,800 of 13,003, ranked by callers