MCPcopy Create free account

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

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

Methodtest_real_chromium_reset_replay_and_change_invalidation
(self)
chapter9/browser-use-rpa/test_real_playwright_campaign.py:20
Functiontest_real_execution_gate_rejects_failed_receipt
()
chapter4/active-tool-discovery/test_exact_experiment.py:79
Functiontest_real_execution_gate_rejects_missing_required_receipt
()
chapter4/active-tool-discovery/test_exact_experiment.py:74
Functiontest_real_execution_gate_rejects_tampered_mock_provenance
()
chapter4/active-tool-discovery/test_exact_experiment.py:86
Functiontest_real_parallel_serial_evidence_closes_every_context_and_measures_speedup
()
chapter10/parallel-web-research/test_exp104_validation_evidence.py:8
Methodtest_real_pilot_satisfies_stricter_judge
(self)
chapter6/astra-async-steering/test_judging.py:35
Methodtest_real_pilot_satisfies_stricter_judge
(self)
chapter6/astra-async-steering/validation/runs/exp6-14-20260905-formal/source/test_judging.py:35
Functiontest_real_subprocess_completes_with_observed_metrics
(monkeypatch)
chapter6/async-agent/test_real_tasks.py:27
Functiontest_real_user_simulator_runs_prove_e2e_and_keep_negative_results_separate
()
chapter10/voice-werewolf/test_exp106_validation_evidence.py:46
Methodtest_realpath_path_traversal
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:87
Methodtest_reasoning_efforts
Test Case 5: Compare different reasoning efforts
chapter1/search-codegen/tests/manual/agent_cases.py:126
Functiontest_reasoning_is_left_on_when_the_endpoint_accepts_tools
()
chapter2/agent-skills-ppt/tests/test_reasoning_degrade.py:46
Functiontest_reasoning_model_empty_content_retries_with_larger_bounded_budget
(monkeypatch)
chapter10/voice-werewolf/test_user_simulator.py:152
Functiontest_reasoning_models_force_supported_temperature
()
chapter1/web-search-agent/tests/test_agent.py:66
Methodtest_reasoning_with_context
Test reasoning with context.
chapter4/collaboration-tools/test_intelligence_tools.py:83
Methodtest_rebuild_does_not_duplicate_the_last_token
(self)
chapter2/attention_visualization/test_streaming.py:116
Functiontest_recall_at_k_basic
()
tests/test_ch3_retrieval_stage_evaluator.py:78
Functiontest_recall_at_k_full_recall
()
tests/test_ch3_retrieval_stage_evaluator.py:90
Functiontest_recall_at_k_no_gold_returns_zero
()
tests/test_ch3_retrieval_stage_evaluator.py:85
Functiontest_receipt_requires_exact_provider_model_and_usage
()
chapter2/prompt-injection/test_campaign.py:50
Functiontest_receipt_summary_counts_calls_usage_and_errors
(tmp_path)
chapter10/generative-agents/tests/test_runner_helpers.py:20
Functiontest_receipts_are_real_image_aware_unique_and_arm_blind
()
chapter8/MiniMind-pretrain/validation/test_vlm_training_report_audit.py:96
Methodtest_recent_events_on_successful_load
Test that recent events shows successful navigation when page loads successfully
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_recent_events.py:19
Methodtest_recent_events_preserved_in_minimal_state
Test that recent events is preserved even when falling back to minimal state
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_recent_events.py:132
Methodtest_recent_events_with_different_timeouts
Test that recent events captures navigation with different timeout configurations
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_recent_events.py:193
Functiontest_recommendations_context_compression_opportunity
()
tests/test_ch6_cost_efficiency_analyzer.py:338
Functiontest_recommendations_context_compression_opportunity
()
tests/test_ch7_cost_efficiency_analyzer.py:338
Functiontest_recommendations_deadly_triad_file_read
The deadly triad recommendation is emitted for network + file read (no write).
tests/test_ch5_sandbox_evaluator.py:353
Functiontest_recommendations_deadly_triad_mentioned
The deadly triad recommendation is emitted for network + file write.
tests/test_ch5_sandbox_evaluator.py:365
Functiontest_recommendations_empty_when_safe_and_restricted
Safe code under a restrictive sandbox gets the 'adequate' recommendation only.
tests/test_ch5_sandbox_evaluator.py:377
Functiontest_recommendations_flag_cache_miss_pattern
()
tests/test_ch6_cost_efficiency_analyzer.py:323
Functiontest_recommendations_flag_cache_miss_pattern
()
tests/test_ch7_cost_efficiency_analyzer.py:323
Functiontest_recommendations_flag_expensive_turns
()
tests/test_ch6_cost_efficiency_analyzer.py:331
Functiontest_recommendations_flag_expensive_turns
()
tests/test_ch7_cost_efficiency_analyzer.py:331
Functiontest_recommendations_flag_wasteful_turns
()
tests/test_ch6_cost_efficiency_analyzer.py:317
Functiontest_recommendations_flag_wasteful_turns
()
tests/test_ch7_cost_efficiency_analyzer.py:317
Functiontest_recommendations_for_env_var_when_unfiltered
Env-var access with env vars not filtered yields a filtering recommendation.
tests/test_ch5_sandbox_evaluator.py:346
Functiontest_recommendations_for_network_when_unblocked
A network call with network not blocked yields a network-blocking recommendation.
tests/test_ch5_sandbox_evaluator.py:331
Functiontest_recommendations_for_subprocess_when_enabled
A subprocess call with subprocess not disabled yields a subprocess recommendation.
tests/test_ch5_sandbox_evaluator.py:339
Functiontest_recommendations_high_efficiency_verdict
()
tests/test_ch6_cost_efficiency_analyzer.py:355
Functiontest_recommendations_high_efficiency_verdict
()
tests/test_ch7_cost_efficiency_analyzer.py:355
Functiontest_recommendations_low_efficiency_verdict
()
tests/test_ch6_cost_efficiency_analyzer.py:346
Functiontest_recommendations_low_efficiency_verdict
()
tests/test_ch7_cost_efficiency_analyzer.py:346
Functiontest_recorder_materializes_zero_call_checkpoint
(tmp_path)
chapter10/generative-agents/tests/test_provider_adapter.py:15
Functiontest_recruiter_cannot_see_evaluations
(hiring_store, recruiter, hiring_manager, system_ctx)
chapter5/permission-embedded-data-objects/tests/test_scenarios.py:131
Methodtest_recursive_glob
Test recursive pattern search
chapter5/coding-agent/tests/test_glob_tool.py:25
Methodtest_recursive_rm_variants_require_confirmation
(self)
chapter9/harness-safety-gate/test_evolution.py:124
Methodtest_redact_material_removes_credentials_and_delivery_identifiers
(self)
chapter4/collaboration-tools/test_run_experiment_4_5.py:71
Functiontest_redact_secrets_non_serializable
(monkeypatch)
tests/test_ch9_phone_agent_redact_secrets_non_serializable.py:25
Functiontest_redact_secrets_non_serializable
(monkeypatch)
tests/test_ch6_phone_agent_redact_secrets_non_serializable.py:25
Functiontest_redaction_covers_explicit_and_pattern_credentials
()
chapter7/android-world/test_experiment.py:45
Functiontest_redis_empty_user_password_redacted
()
chapter3/log-sanitization/tests/test_url_credential_empty_user.py:5
Functiontest_redistribute_codes_discards_trailing_incomplete_frame
(tail_length)
chapter8/orpheus/test_orpheus_inference.py:49
Functiontest_redistribute_codes_returns_silence_for_only_incomplete_codes
(incomplete_length)
chapter8/orpheus/test_orpheus_inference.py:69
Functiontest_reference_agent_receives_full_score
()
chapter7/public-health-reporting-eval/tests/test_offline.py:24
Functiontest_reference_override_cannot_hide_foreign_content_reference
(store)
tests/test_ch5_pedo_tenant_isolation.py:96
Methodtest_refresh_page
Test that refresh_page correctly reloads the current page.
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry_action_parameter_injection.py:153
Functiontest_refund_scale_is_part_of_the_claim
(amount, actual, verdict)
tests/test_ch9_factual_grounding.py:147
Functiontest_refund_verifies_eligibility_before_processing
(order_service: str)
chapter5/log-diagnosis/test_campaign_orchestrator.py:30
Functiontest_refusal_that_only_restates_the_task_is_grounded
()
chapter1/context/test_grounding.py:55
Methodtest_regex_pattern
Test full regex syntax support
chapter5/coding-agent/tests/test_grep_tool.py:162
Functiontest_region_indices_separates_thinking_and_answer
()
chapter2/attention_visualization/test_attention_experiment.py:11
Methodtest_registration_preserves_display_name
(self)
chapter7/model-action-threshold/tasks/crosscutting_identity/repo/tests/test_accounts.py:13
Methodtest_registry_actions
Test that the registry contains the expected default actions.
chapter9/browser-use-rpa/browser-use/tests/ci/test_tools.py:95
Methodtest_regression_failure_rejects_candidate
(self)
chapter9/self-modifying-agent/test_evolution.py:49
Functiontest_regular_page_keeps_its_own_path
(tmp_path: Path)
tests/test_site_edit_urls.py:61
Functiontest_regular_page_maps_to_same_repository_path
(tmp_path: Path)
tests/test_git_revision_dates.py:19
Functiontest_reindex_maintains_doc_count_and_clears_stale_terms
()
tests/test_ch3_bm25_reindex_doc.py:11
Functiontest_reindex_search_engine_bm25_scores
()
tests/test_ch3_bm25_reindex_doc.py:27
Functiontest_reject_empty
()
chapter1/image-gen-workflow/tests/test_rewrite_parsing.py:37
Functiontest_reject_empty_prompt
()
chapter1/image-gen-workflow/tests/test_rewrite_parsing.py:52
Functiontest_reject_missing_prompt
()
chapter1/image-gen-workflow/tests/test_rewrite_parsing.py:47
Functiontest_reject_non_json
()
chapter1/image-gen-workflow/tests/test_rewrite_parsing.py:42
Functiontest_reject_wrong_type
()
chapter1/image-gen-workflow/tests/test_rewrite_parsing.py:57
Methodtest_rejected_control_fails_boundary_replay
(self)
chapter9/harness-safety-gate/test_evolution.py:197
Functiontest_rejected_has_completion_claim
(pairs)
chapter8/premature-completion-dpo/test_pipeline.py:87
Methodtest_rejects_expression
(self)
chapter4/collaboration-tools/test_result_parsing.py:32
Methodtest_rejects_non_mapping_literal
(self)
chapter4/collaboration-tools/test_result_parsing.py:36
Functiontest_rejects_path_traversal
(tmp_path: Path)
chapter5/agent-creator/test_creator.py:188
Functiontest_relation_target_included_in_text_content
Verify that relation matching includes target entity name.
chapter3/structured-index/test_hybrid_retriever.py:9
Functiontest_relationship_target_matching
Verify GraphRAG relationships match queries matching the target entity name.
tests/test_ch3_hybrid_structured_retriever.py:167
Methodtest_relative_path_not_falsely_flagged
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:94
Functiontest_relative_path_not_falsely_flagged_as_traversal
()
tests/test_ch8_safety_policy_gate.py:173
Functiontest_relative_path_not_falsely_flagged_as_traversal
()
tests/test_ch9_safety_policy_gate.py:173
Methodtest_relative_path_subdir_not_falsely_flagged
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:101
Methodtest_release_accepts_good_candidate
(self)
chapter9/harness-safety-gate/test_evolution.py:181
Methodtest_release_manifest_keeps_rollback_and_stable_source
(self)
chapter9/self-modifying-agent/test_evolution.py:42
Methodtest_release_rejects_when_any_gate_fails
(self)
chapter9/harness-safety-gate/test_evolution.py:190
Methodtest_release_requires_improvement_and_no_regression
(self)
chapter9/prompt-auto-optimization/tests/test_learning_and_release.py:33
Functiontest_remembered_degrade_skips_the_failing_attempt
()
chapter2/agent-skills-ppt/tests/test_reasoning_degrade.py:73
Functiontest_render_slide_skips_null_bullet
(tmp_path, monkeypatch)
chapter5/paper-to-video/test_null_bullet_item.py:5
Functiontest_rendered_links_extracts_src_and_href_from_all_asset_tags
()
tests/test_core_clean_site_links.py:8
Functiontest_repair_orphans_inserts_a_placeholder_result
()
chapter5/provider-failover/tests/test_offline.py:113
Functiontest_repeated_barge_in_does_not_truncate_historical_turns
Verify repeated barge-in does not pollute earlier completed turns.
tests/test_ch6_interruption_manager.py:189
Functiontest_repeated_barge_in_does_not_truncate_historical_turns
Verify repeated barge-in does not pollute earlier completed turns.
tests/test_ch9_interruption_manager.py:189
Methodtest_repeated_run_statistics_report_t_interval
(self)
chapter9/self-evolution-eval/test_campaign_statistics.py:7
Methodtest_replace_all_flag
Test replace_all parameter
chapter5/coding-agent/tests/test_edit_tool.py:29
Methodtest_replace_all_in_multi_edit
Test replace_all in one of multiple edits
chapter5/coding-agent/tests/test_multi_edit_tool.py:154
Methodtest_replace_cell
Test edit_mode=replace (default)
chapter5/coding-agent/tests/test_notebook_edit_tool.py:49
Methodtest_replace_requires_cell_id
Test that replace mode requires cell_id
chapter5/coding-agent/tests/test_notebook_edit_tool.py:219
← previousnext →12,101–12,200 of 13,003, ranked by callers