Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bojieli/ai-agent-book
/ functions
Functions
13,003 in github.com/bojieli/ai-agent-book
⨍
Functions
13,003
◇
Types & classes
1,574
↳
Endpoints
161
Method
test_real_chromium_reset_replay_and_change_invalidation
(self)
chapter9/browser-use-rpa/test_real_playwright_campaign.py:20
Function
test_real_execution_gate_rejects_failed_receipt
()
chapter4/active-tool-discovery/test_exact_experiment.py:79
Function
test_real_execution_gate_rejects_missing_required_receipt
()
chapter4/active-tool-discovery/test_exact_experiment.py:74
Function
test_real_execution_gate_rejects_tampered_mock_provenance
()
chapter4/active-tool-discovery/test_exact_experiment.py:86
Function
test_real_parallel_serial_evidence_closes_every_context_and_measures_speedup
()
chapter10/parallel-web-research/test_exp104_validation_evidence.py:8
Method
test_real_pilot_satisfies_stricter_judge
(self)
chapter6/astra-async-steering/test_judging.py:35
Method
test_real_pilot_satisfies_stricter_judge
(self)
chapter6/astra-async-steering/validation/runs/exp6-14-20260905-formal/source/test_judging.py:35
Function
test_real_subprocess_completes_with_observed_metrics
(monkeypatch)
chapter6/async-agent/test_real_tasks.py:27
Function
test_real_user_simulator_runs_prove_e2e_and_keep_negative_results_separate
()
chapter10/voice-werewolf/test_exp106_validation_evidence.py:46
Method
test_realpath_path_traversal
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:87
Method
test_reasoning_efforts
Test Case 5: Compare different reasoning efforts
chapter1/search-codegen/tests/manual/agent_cases.py:126
Function
test_reasoning_is_left_on_when_the_endpoint_accepts_tools
()
chapter2/agent-skills-ppt/tests/test_reasoning_degrade.py:46
Function
test_reasoning_model_empty_content_retries_with_larger_bounded_budget
(monkeypatch)
chapter10/voice-werewolf/test_user_simulator.py:152
Function
test_reasoning_models_force_supported_temperature
()
chapter1/web-search-agent/tests/test_agent.py:66
Method
test_reasoning_with_context
Test reasoning with context.
chapter4/collaboration-tools/test_intelligence_tools.py:83
Method
test_rebuild_does_not_duplicate_the_last_token
(self)
chapter2/attention_visualization/test_streaming.py:116
Function
test_recall_at_k_basic
()
tests/test_ch3_retrieval_stage_evaluator.py:78
Function
test_recall_at_k_full_recall
()
tests/test_ch3_retrieval_stage_evaluator.py:90
Function
test_recall_at_k_no_gold_returns_zero
()
tests/test_ch3_retrieval_stage_evaluator.py:85
Function
test_receipt_requires_exact_provider_model_and_usage
()
chapter2/prompt-injection/test_campaign.py:50
Function
test_receipt_summary_counts_calls_usage_and_errors
(tmp_path)
chapter10/generative-agents/tests/test_runner_helpers.py:20
Function
test_receipts_are_real_image_aware_unique_and_arm_blind
()
chapter8/MiniMind-pretrain/validation/test_vlm_training_report_audit.py:96
Method
test_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
Method
test_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
Method
test_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
Function
test_recommendations_context_compression_opportunity
()
tests/test_ch6_cost_efficiency_analyzer.py:338
Function
test_recommendations_context_compression_opportunity
()
tests/test_ch7_cost_efficiency_analyzer.py:338
Function
test_recommendations_deadly_triad_file_read
The deadly triad recommendation is emitted for network + file read (no write).
tests/test_ch5_sandbox_evaluator.py:353
Function
test_recommendations_deadly_triad_mentioned
The deadly triad recommendation is emitted for network + file write.
tests/test_ch5_sandbox_evaluator.py:365
Function
test_recommendations_empty_when_safe_and_restricted
Safe code under a restrictive sandbox gets the 'adequate' recommendation only.
tests/test_ch5_sandbox_evaluator.py:377
Function
test_recommendations_flag_cache_miss_pattern
()
tests/test_ch6_cost_efficiency_analyzer.py:323
Function
test_recommendations_flag_cache_miss_pattern
()
tests/test_ch7_cost_efficiency_analyzer.py:323
Function
test_recommendations_flag_expensive_turns
()
tests/test_ch6_cost_efficiency_analyzer.py:331
Function
test_recommendations_flag_expensive_turns
()
tests/test_ch7_cost_efficiency_analyzer.py:331
Function
test_recommendations_flag_wasteful_turns
()
tests/test_ch6_cost_efficiency_analyzer.py:317
Function
test_recommendations_flag_wasteful_turns
()
tests/test_ch7_cost_efficiency_analyzer.py:317
Function
test_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
Function
test_recommendations_for_network_when_unblocked
A network call with network not blocked yields a network-blocking recommendation.
tests/test_ch5_sandbox_evaluator.py:331
Function
test_recommendations_for_subprocess_when_enabled
A subprocess call with subprocess not disabled yields a subprocess recommendation.
tests/test_ch5_sandbox_evaluator.py:339
Function
test_recommendations_high_efficiency_verdict
()
tests/test_ch6_cost_efficiency_analyzer.py:355
Function
test_recommendations_high_efficiency_verdict
()
tests/test_ch7_cost_efficiency_analyzer.py:355
Function
test_recommendations_low_efficiency_verdict
()
tests/test_ch6_cost_efficiency_analyzer.py:346
Function
test_recommendations_low_efficiency_verdict
()
tests/test_ch7_cost_efficiency_analyzer.py:346
Function
test_recorder_materializes_zero_call_checkpoint
(tmp_path)
chapter10/generative-agents/tests/test_provider_adapter.py:15
Function
test_recruiter_cannot_see_evaluations
(hiring_store, recruiter, hiring_manager, system_ctx)
chapter5/permission-embedded-data-objects/tests/test_scenarios.py:131
Method
test_recursive_glob
Test recursive pattern search
chapter5/coding-agent/tests/test_glob_tool.py:25
Method
test_recursive_rm_variants_require_confirmation
(self)
chapter9/harness-safety-gate/test_evolution.py:124
Method
test_redact_material_removes_credentials_and_delivery_identifiers
(self)
chapter4/collaboration-tools/test_run_experiment_4_5.py:71
Function
test_redact_secrets_non_serializable
(monkeypatch)
tests/test_ch9_phone_agent_redact_secrets_non_serializable.py:25
Function
test_redact_secrets_non_serializable
(monkeypatch)
tests/test_ch6_phone_agent_redact_secrets_non_serializable.py:25
Function
test_redaction_covers_explicit_and_pattern_credentials
()
chapter7/android-world/test_experiment.py:45
Function
test_redis_empty_user_password_redacted
()
chapter3/log-sanitization/tests/test_url_credential_empty_user.py:5
Function
test_redistribute_codes_discards_trailing_incomplete_frame
(tail_length)
chapter8/orpheus/test_orpheus_inference.py:49
Function
test_redistribute_codes_returns_silence_for_only_incomplete_codes
(incomplete_length)
chapter8/orpheus/test_orpheus_inference.py:69
Function
test_reference_agent_receives_full_score
()
chapter7/public-health-reporting-eval/tests/test_offline.py:24
Function
test_reference_override_cannot_hide_foreign_content_reference
(store)
tests/test_ch5_pedo_tenant_isolation.py:96
Method
test_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
Function
test_refund_scale_is_part_of_the_claim
(amount, actual, verdict)
tests/test_ch9_factual_grounding.py:147
Function
test_refund_verifies_eligibility_before_processing
(order_service: str)
chapter5/log-diagnosis/test_campaign_orchestrator.py:30
Function
test_refusal_that_only_restates_the_task_is_grounded
()
chapter1/context/test_grounding.py:55
Method
test_regex_pattern
Test full regex syntax support
chapter5/coding-agent/tests/test_grep_tool.py:162
Function
test_region_indices_separates_thinking_and_answer
()
chapter2/attention_visualization/test_attention_experiment.py:11
Method
test_registration_preserves_display_name
(self)
chapter7/model-action-threshold/tasks/crosscutting_identity/repo/tests/test_accounts.py:13
Method
test_registry_actions
Test that the registry contains the expected default actions.
chapter9/browser-use-rpa/browser-use/tests/ci/test_tools.py:95
Method
test_regression_failure_rejects_candidate
(self)
chapter9/self-modifying-agent/test_evolution.py:49
Function
test_regular_page_keeps_its_own_path
(tmp_path: Path)
tests/test_site_edit_urls.py:61
Function
test_regular_page_maps_to_same_repository_path
(tmp_path: Path)
tests/test_git_revision_dates.py:19
Function
test_reindex_maintains_doc_count_and_clears_stale_terms
()
tests/test_ch3_bm25_reindex_doc.py:11
Function
test_reindex_search_engine_bm25_scores
()
tests/test_ch3_bm25_reindex_doc.py:27
Function
test_reject_empty
()
chapter1/image-gen-workflow/tests/test_rewrite_parsing.py:37
Function
test_reject_empty_prompt
()
chapter1/image-gen-workflow/tests/test_rewrite_parsing.py:52
Function
test_reject_missing_prompt
()
chapter1/image-gen-workflow/tests/test_rewrite_parsing.py:47
Function
test_reject_non_json
()
chapter1/image-gen-workflow/tests/test_rewrite_parsing.py:42
Function
test_reject_wrong_type
()
chapter1/image-gen-workflow/tests/test_rewrite_parsing.py:57
Method
test_rejected_control_fails_boundary_replay
(self)
chapter9/harness-safety-gate/test_evolution.py:197
Function
test_rejected_has_completion_claim
(pairs)
chapter8/premature-completion-dpo/test_pipeline.py:87
Method
test_rejects_expression
(self)
chapter4/collaboration-tools/test_result_parsing.py:32
Method
test_rejects_non_mapping_literal
(self)
chapter4/collaboration-tools/test_result_parsing.py:36
Function
test_rejects_path_traversal
(tmp_path: Path)
chapter5/agent-creator/test_creator.py:188
Function
test_relation_target_included_in_text_content
Verify that relation matching includes target entity name.
chapter3/structured-index/test_hybrid_retriever.py:9
Function
test_relationship_target_matching
Verify GraphRAG relationships match queries matching the target entity name.
tests/test_ch3_hybrid_structured_retriever.py:167
Method
test_relative_path_not_falsely_flagged
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:94
Function
test_relative_path_not_falsely_flagged_as_traversal
()
tests/test_ch8_safety_policy_gate.py:173
Function
test_relative_path_not_falsely_flagged_as_traversal
()
tests/test_ch9_safety_policy_gate.py:173
Method
test_relative_path_subdir_not_falsely_flagged
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:101
Method
test_release_accepts_good_candidate
(self)
chapter9/harness-safety-gate/test_evolution.py:181
Method
test_release_manifest_keeps_rollback_and_stable_source
(self)
chapter9/self-modifying-agent/test_evolution.py:42
Method
test_release_rejects_when_any_gate_fails
(self)
chapter9/harness-safety-gate/test_evolution.py:190
Method
test_release_requires_improvement_and_no_regression
(self)
chapter9/prompt-auto-optimization/tests/test_learning_and_release.py:33
Function
test_remembered_degrade_skips_the_failing_attempt
()
chapter2/agent-skills-ppt/tests/test_reasoning_degrade.py:73
Function
test_render_slide_skips_null_bullet
(tmp_path, monkeypatch)
chapter5/paper-to-video/test_null_bullet_item.py:5
Function
test_rendered_links_extracts_src_and_href_from_all_asset_tags
()
tests/test_core_clean_site_links.py:8
Function
test_repair_orphans_inserts_a_placeholder_result
()
chapter5/provider-failover/tests/test_offline.py:113
Function
test_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
Function
test_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
Method
test_repeated_run_statistics_report_t_interval
(self)
chapter9/self-evolution-eval/test_campaign_statistics.py:7
Method
test_replace_all_flag
Test replace_all parameter
chapter5/coding-agent/tests/test_edit_tool.py:29
Method
test_replace_all_in_multi_edit
Test replace_all in one of multiple edits
chapter5/coding-agent/tests/test_multi_edit_tool.py:154
Method
test_replace_cell
Test edit_mode=replace (default)
chapter5/coding-agent/tests/test_notebook_edit_tool.py:49
Method
test_replace_requires_cell_id
Test that replace mode requires cell_id
chapter5/coding-agent/tests/test_notebook_edit_tool.py:219
← previous
next →
12,101–12,200 of 13,003, ranked by callers