MCPcopy Create free account

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

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

Functiontest_chapter_3_localized_figures_match_their_captions
()
tests/test_i18n_figure_placement.py:91
Functiontest_chapter_3_references_each_numbered_figure_once
()
tests/test_ch3_english_figures.py:33
Functiontest_chapter_4_localized_figures_match_their_captions
()
tests/test_i18n_figure_placement.py:113
Functiontest_chapter_overviews_do_not_link_obsolete_run_ids
()
tests/test_chapter_numbering_consistency.py:156
Functiontest_char_error_rate_both_empty
()
tests/test_ch6_char_error_rate.py:29
Functiontest_char_error_rate_both_empty
()
tests/test_ch7_char_error_rate.py:29
Functiontest_char_error_rate_empty_reference_with_hypothesis
()
tests/test_ch6_char_error_rate.py:15
Functiontest_char_error_rate_empty_reference_with_hypothesis
()
tests/test_ch7_char_error_rate.py:15
Functiontest_char_error_rate_normal_and_partial_match
()
tests/test_ch6_char_error_rate.py:43
Functiontest_char_error_rate_normal_and_partial_match
()
tests/test_ch7_char_error_rate.py:43
Methodtest_character_split_across_three_tokens_marks_every_continuation
(self)
chapter2/attention_visualization/test_visualization.py:33
Functiontest_chat_completions_usage_uses_chat_token_and_detail_keys
(monkeypatch, capsys)
chapter1/search-codegen/test_config_and_usage.py:43
Functiontest_chat_keeps_real_usage
()
chapter7/agent-cost-analysis/tests/test_chat_null_usage.py:32
Functiontest_chat_sends_current_history_once_and_excludes_previous_sessions
(tmp_path)
chapter3/user-memory/test_session_scoped_history.py:35
Functiontest_chat_template_ids_accepts_transformers_4_and_5_shapes
()
chapter8/prompt-distillation/test_experiment_8_8.py:63
Functiontest_chat_tolerates_null_usage
()
chapter7/agent-cost-analysis/tests/test_chat_null_usage.py:20
Functiontest_cheaperinference_base_url_override
(monkeypatch)
tests/test_providers.py:338
Functiontest_cheaperinference_keeps_bare_model_ids
(monkeypatch)
tests/test_providers.py:332
Functiontest_cheaperinference_key_uses_gateway_directly
(monkeypatch)
tests/test_providers.py:322
Functiontest_cheaperinference_still_falls_back_when_its_key_is_missing
(monkeypatch)
tests/test_providers.py:364
Methodtest_check
Test check detection.
chapter4/collaboration-tools/test_chess_tools.py:237
Methodtest_check_claim_grounded_empty_evidence
Direct call: no evidence means ungrounded (unless claim is empty).
tests/test_ch8_trajectory_consistency_checker.py:402
Methodtest_check_claim_grounded_empty_evidence
Direct call: no evidence means ungrounded (unless claim is empty).
tests/test_ch9_trajectory_consistency_checker.py:402
Methodtest_check_claim_grounded_returns_false
Direct call: no overlap means ungrounded.
tests/test_ch8_trajectory_consistency_checker.py:395
Methodtest_check_claim_grounded_returns_false
Direct call: no overlap means ungrounded.
tests/test_ch9_trajectory_consistency_checker.py:395
Methodtest_check_claim_grounded_returns_true
Direct call: overlapping tokens ground the claim.
tests/test_ch8_trajectory_consistency_checker.py:388
Methodtest_check_claim_grounded_returns_true
Direct call: overlapping tokens ground the claim.
tests/test_ch9_trajectory_consistency_checker.py:388
Functiontest_check_sandbox_config_defaults_missing_to_false
Missing config keys are reported as False (not restricted), not inherited.
tests/test_ch5_sandbox_evaluator.py:238
Functiontest_check_selector_map
(browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_element_cache.py:148
Methodtest_checkmate
Test checkmate detection.
chapter4/collaboration-tools/test_chess_tools.py:197
Functiontest_checkpoint_round_trip_and_identity_guard
(tmp_path)
chapter5/small-model-codified-rules/test_campaign.py:35
Functiontest_chess_checkmate_not_draw
()
tests/test_ch4_chess_game_over_status.py:75
Functiontest_chess_game_in_progress
()
tests/test_ch4_chess_game_over_status.py:95
Functiontest_chess_game_over_75_move_rule_draw
()
tests/test_ch4_chess_game_over_status.py:26
Functiontest_chess_insufficient_material_draw
()
tests/test_ch4_chess_game_over_status.py:60
Functiontest_chess_stalemate_draw
()
tests/test_ch4_chess_game_over_status.py:43
Functiontest_chinese_cot_fidelity_japanese_kana_penalty
()
tests/test_ch7_evaluate_multilingual.py:269
Functiontest_chinese_cot_fidelity_japanese_kana_penalty
()
tests/test_ch8_evaluate_multilingual.py:269
Functiontest_chinese_questions_have_matching_reference_answers
()
tests/test_reference_answer_coverage.py:16
Functiontest_chosen_has_verification_without_claim
(pairs)
chapter8/premature-completion-dpo/test_pipeline.py:82
Functiontest_chromium_args_include_proxy_flags
()
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_proxy.py:11
Functiontest_chunk_size_zero_long_unsplittable_sentence
()
chapter3/agentic-rag/test_chunk_size_zero.py:12
Functiontest_chunk_text_equal_size_and_overlap
()
chapter3/structured-index/test_raptor_chunk_step.py:51
Functiontest_chunk_text_normal_overlap_still_advances
()
chapter3/structured-index/test_raptor_chunk_step.py:60
Functiontest_chunking_is_stable_and_preserves_source
()
chapter7/user-memory-system-evaluation/test_experiment.py:102
Functiontest_citations_handles_null_response
Contract: _citations returns empty list for None or non-dict response.
tests/test_ch1_search_codegen_null_response.py:30
Functiontest_clamp_rrf_k
Verify that rrf_k is clamped with max(1, int(rrf_k)).
chapter3/structured-index/test_hybrid_retriever.py:113
Functiontest_clarification_requires_no_tools_then_linked_tool_run
()
chapter1/search-codegen/test_responses_agent.py:146
Functiontest_classic_github_token_still_redacted
()
chapter3/log-sanitization/tests/test_github_pat.py:13
Functiontest_classification_is_unique_and_meeting_interval_is_exact
()
chapter6/agent-with-event-trigger/test_unipile_mailbox_experiment.py:57
Functiontest_classify_next_action
(text, expected)
chapter8/premature-completion-dpo/test_pipeline.py:117
Functiontest_clean_preserves_script_linked_json
()
tests/test_core_clean_site_links.py:51
Methodtest_clean_trajectory_passes
A well-formed trajectory produces no violations and a perfect score.
tests/test_ch8_trajectory_consistency_checker.py:225
Methodtest_clean_trajectory_passes
A well-formed trajectory produces no violations and a perfect score.
tests/test_ch9_trajectory_consistency_checker.py:225
Functiontest_cleanup_on_cancellation
Test that pending requests and decision events are cleaned up if task is cancelled.
tests/test_ch4_notification_dispatcher.py:225
Functiontest_cleanup_preserves_rendered_json_links_only
(tmp_path)
tests/test_build_site_assets.py:11
Functiontest_cleanup_rejects_external_links_and_escaping_symlinks
(tmp_path)
tests/test_build_site_assets.py:51
Functiontest_cli_exposes_xquik_search_as_metered_public_data
()
chapter4/perception-tools/test_xquik_tools.py:187
Functiontest_cli_telemetry_event
Test CLITelemetryEvent structure.
chapter9/browser-use-rpa/browser-use/tests/ci/test_telemetry.py:88
Methodtest_click
(params: ClickElementAction, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:493
Methodtest_click_element_by_index
Test that click_element_by_index correctly clicks an element and handles different outcomes.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_ClickElementEvent.py:90
Methodtest_click_element_new_tab
Test that click_element_by_index with while_holding_ctrl=True opens links in new tabs.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_ClickElementEvent.py:203
Methodtest_click_element_normal_vs_new_tab
Test that click_element_by_index behaves differently with while_holding_ctrl=False vs while_holding_ctrl=True.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_ClickElementEvent.py:290
Methodtest_click_triggers_alert_popup
Test that clicking a button triggers an alert dialog that is auto-accepted.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_ClickElementEvent.py:726
Methodtest_click_triggers_confirm_popup
Test that clicking a button triggers a confirm dialog that is auto-accepted.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_ClickElementEvent.py:789
Methodtest_click_triggers_onbeforeunload_popup
Test that navigating away from a page with onbeforeunload triggers a dialog.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_ClickElementEvent.py:940
Functiontest_clipper_retry_is_limited_to_exact_foreground_error
()
chapter7/android-world/test_experiment.py:129
Functiontest_closed_position_rejects_candidate
(hiring_store, recruiter, system_ctx)
chapter5/permission-embedded-data-objects/tests/test_scenarios.py:90
Functiontest_cloud_browser_auth_error_no_fallback
Test that cloud browser throws error when auth fails (no fallback).
chapter9/browser-use-rpa/browser-use/tests/ci/test_cloud_browser.py:286
Methodtest_cloud_browser_profile_property
Test that cloud_browser property works correctly.
chapter9/browser-use-rpa/browser-use/tests/ci/test_cloud_browser.py:229
Functiontest_cloud_get_all_maps_top_k_to_page_size
()
chapter3/mem0/test_agent_v3.py:63
Methodtest_cloud_sync_inherits_telemetry
Test BROWSER_USE_CLOUD_SYNC inherits from ANONYMIZED_TELEMETRY when not set.
chapter9/browser-use-rpa/browser-use/tests/ci/test_config.py:94
Functiontest_cn_region_uses_minimaxi_host
MINIMAX_REGION=cn routes to the mainland-China api.minimaxi.com host.
chapter7/tts-quality-eval/test_minimax_t2a_refresh.py:65
Functiontest_code_interpreter_executes_valid_python
(monkeypatch)
chapter4/execution-tools/test_execution_tools.py:46
Functiontest_code_interpreter_nonzero_exit_fails_closed
()
chapter4/perception-tools/test_expanded_catalog.py:63
Functiontest_code_interpreter_reports_runtime_failure
(monkeypatch)
chapter4/execution-tools/test_execution_tools.py:75
Methodtest_code_interpreter_shares_names_with_defined_functions
(self)
chapter6/agent-with-event-trigger/tests/test_code_interpreter.py:51
Functiontest_collect_kimi_metadata
(tmp_path: Path)
chapter2/agent-skills-ppt/test_official_validation.py:48
Functiontest_collect_offline_exits_when_no_usable_scenario
When every selected scenario lacks spans, exit cleanly like the empty-trace path.
chapter7/agent-cost-analysis/tests/test_trace_offline.py:88
Functiontest_collect_offline_skips_scenario_without_spans
A scenario missing 'spans' is skipped with a warning, not a KeyError crash.
chapter7/agent-cost-analysis/tests/test_trace_offline.py:77
Functiontest_collect_tool_calls_parses_kimi_stream
(tmp_path: Path)
chapter2/agent-skills-ppt/test_official_validation.py:34
Methodtest_combining_marks_have_zero_width
(self)
book-ar/test_svg_lib.py:7
Methodtest_command_history
Test command history.
chapter4/execution-tools/test_terminal_controller.py:54
Functiontest_command_is_exact_val_only_three_view_controlled
(tmp_path, monkeypatch)
chapter7/openvla-robotwin2-eval/test_experiment.py:39
Methodtest_command_with_exit_code
Test that exit codes are captured
chapter5/coding-agent/tests/test_bash_tool.py:26
Functiontest_comment_only_code_is_safe
A comment with no executable risk patterns is safe.
tests/test_ch5_sandbox_evaluator.py:319
Functiontest_compare_empty_texts
()
chapter8/prompt-distillation/test_compare_empty.py:4
Functiontest_compare_win_rates_empty_has_required_columns
compare_win_rates must return a DataFrame with required columns when no valid comparisons exist.
chapter7/elo-leaderboard/tests/test_ch6_compare_win_rates_empty.py:8
Methodtest_comparison
(self)
chapter1/context/tests/test_calc_sandbox.py:55
Functiontest_compatibility_correction_must_resolve_to_accessible_arena
()
chapter10/generative-agents/tests/test_validate_campaign.py:23
Functiontest_compile_evidence_package_sample_size
()
tests/test_ch7_rate_ramp_benchmark.py:119
Functiontest_compile_evidence_package_sample_size
()
tests/test_ch6_rate_ramp_benchmark.py:119
Functiontest_complete_evidence_passes
(tmp_path)
chapter6/end-to-end-speech/tests/test_validate_evidence.py:9
Methodtest_complete_game_flow
Test a complete game flow.
chapter4/collaboration-tools/test_chess_tools.py:332
Methodtest_complete_generation_gets_no_spurious_replacement_character
(self)
chapter2/attention_visualization/test_streaming.py:149
Functiontest_complete_pem_still_redacted
()
chapter3/log-sanitization/tests/test_truncated_pem.py:21
Methodtest_complete_sequence_same_for_both_modes
(self)
chapter2/attention_visualization/test_token_labels.py:108
Methodtest_complete_stock_analysis
Test getting complete stock analysis data.
chapter4/perception-tools/test_yahoo_finance_tools.py:329
Methodtest_complete_url_shortening_pipeline
Test the complete pipeline: input shortening -> processing -> output restoration.
chapter9/browser-use-rpa/browser-use/tests/ci/test_url_shortening.py:118
Methodtest_complete_workflow
Test a complete filesystem workflow.
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:857
← previousnext →10,401–10,500 of 13,003, ranked by callers