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
Function
test_chapter_3_localized_figures_match_their_captions
()
tests/test_i18n_figure_placement.py:91
Function
test_chapter_3_references_each_numbered_figure_once
()
tests/test_ch3_english_figures.py:33
Function
test_chapter_4_localized_figures_match_their_captions
()
tests/test_i18n_figure_placement.py:113
Function
test_chapter_overviews_do_not_link_obsolete_run_ids
()
tests/test_chapter_numbering_consistency.py:156
Function
test_char_error_rate_both_empty
()
tests/test_ch6_char_error_rate.py:29
Function
test_char_error_rate_both_empty
()
tests/test_ch7_char_error_rate.py:29
Function
test_char_error_rate_empty_reference_with_hypothesis
()
tests/test_ch6_char_error_rate.py:15
Function
test_char_error_rate_empty_reference_with_hypothesis
()
tests/test_ch7_char_error_rate.py:15
Function
test_char_error_rate_normal_and_partial_match
()
tests/test_ch6_char_error_rate.py:43
Function
test_char_error_rate_normal_and_partial_match
()
tests/test_ch7_char_error_rate.py:43
Method
test_character_split_across_three_tokens_marks_every_continuation
(self)
chapter2/attention_visualization/test_visualization.py:33
Function
test_chat_completions_usage_uses_chat_token_and_detail_keys
(monkeypatch, capsys)
chapter1/search-codegen/test_config_and_usage.py:43
Function
test_chat_keeps_real_usage
()
chapter7/agent-cost-analysis/tests/test_chat_null_usage.py:32
Function
test_chat_sends_current_history_once_and_excludes_previous_sessions
(tmp_path)
chapter3/user-memory/test_session_scoped_history.py:35
Function
test_chat_template_ids_accepts_transformers_4_and_5_shapes
()
chapter8/prompt-distillation/test_experiment_8_8.py:63
Function
test_chat_tolerates_null_usage
()
chapter7/agent-cost-analysis/tests/test_chat_null_usage.py:20
Function
test_cheaperinference_base_url_override
(monkeypatch)
tests/test_providers.py:338
Function
test_cheaperinference_keeps_bare_model_ids
(monkeypatch)
tests/test_providers.py:332
Function
test_cheaperinference_key_uses_gateway_directly
(monkeypatch)
tests/test_providers.py:322
Function
test_cheaperinference_still_falls_back_when_its_key_is_missing
(monkeypatch)
tests/test_providers.py:364
Method
test_check
Test check detection.
chapter4/collaboration-tools/test_chess_tools.py:237
Method
test_check_claim_grounded_empty_evidence
Direct call: no evidence means ungrounded (unless claim is empty).
tests/test_ch8_trajectory_consistency_checker.py:402
Method
test_check_claim_grounded_empty_evidence
Direct call: no evidence means ungrounded (unless claim is empty).
tests/test_ch9_trajectory_consistency_checker.py:402
Method
test_check_claim_grounded_returns_false
Direct call: no overlap means ungrounded.
tests/test_ch8_trajectory_consistency_checker.py:395
Method
test_check_claim_grounded_returns_false
Direct call: no overlap means ungrounded.
tests/test_ch9_trajectory_consistency_checker.py:395
Method
test_check_claim_grounded_returns_true
Direct call: overlapping tokens ground the claim.
tests/test_ch8_trajectory_consistency_checker.py:388
Method
test_check_claim_grounded_returns_true
Direct call: overlapping tokens ground the claim.
tests/test_ch9_trajectory_consistency_checker.py:388
Function
test_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
Function
test_check_selector_map
(browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_element_cache.py:148
Method
test_checkmate
Test checkmate detection.
chapter4/collaboration-tools/test_chess_tools.py:197
Function
test_checkpoint_round_trip_and_identity_guard
(tmp_path)
chapter5/small-model-codified-rules/test_campaign.py:35
Function
test_chess_checkmate_not_draw
()
tests/test_ch4_chess_game_over_status.py:75
Function
test_chess_game_in_progress
()
tests/test_ch4_chess_game_over_status.py:95
Function
test_chess_game_over_75_move_rule_draw
()
tests/test_ch4_chess_game_over_status.py:26
Function
test_chess_insufficient_material_draw
()
tests/test_ch4_chess_game_over_status.py:60
Function
test_chess_stalemate_draw
()
tests/test_ch4_chess_game_over_status.py:43
Function
test_chinese_cot_fidelity_japanese_kana_penalty
()
tests/test_ch7_evaluate_multilingual.py:269
Function
test_chinese_cot_fidelity_japanese_kana_penalty
()
tests/test_ch8_evaluate_multilingual.py:269
Function
test_chinese_questions_have_matching_reference_answers
()
tests/test_reference_answer_coverage.py:16
Function
test_chosen_has_verification_without_claim
(pairs)
chapter8/premature-completion-dpo/test_pipeline.py:82
Function
test_chromium_args_include_proxy_flags
()
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_proxy.py:11
Function
test_chunk_size_zero_long_unsplittable_sentence
()
chapter3/agentic-rag/test_chunk_size_zero.py:12
Function
test_chunk_text_equal_size_and_overlap
()
chapter3/structured-index/test_raptor_chunk_step.py:51
Function
test_chunk_text_normal_overlap_still_advances
()
chapter3/structured-index/test_raptor_chunk_step.py:60
Function
test_chunking_is_stable_and_preserves_source
()
chapter7/user-memory-system-evaluation/test_experiment.py:102
Function
test_citations_handles_null_response
Contract: _citations returns empty list for None or non-dict response.
tests/test_ch1_search_codegen_null_response.py:30
Function
test_clamp_rrf_k
Verify that rrf_k is clamped with max(1, int(rrf_k)).
chapter3/structured-index/test_hybrid_retriever.py:113
Function
test_clarification_requires_no_tools_then_linked_tool_run
()
chapter1/search-codegen/test_responses_agent.py:146
Function
test_classic_github_token_still_redacted
()
chapter3/log-sanitization/tests/test_github_pat.py:13
Function
test_classification_is_unique_and_meeting_interval_is_exact
()
chapter6/agent-with-event-trigger/test_unipile_mailbox_experiment.py:57
Function
test_classify_next_action
(text, expected)
chapter8/premature-completion-dpo/test_pipeline.py:117
Function
test_clean_preserves_script_linked_json
()
tests/test_core_clean_site_links.py:51
Method
test_clean_trajectory_passes
A well-formed trajectory produces no violations and a perfect score.
tests/test_ch8_trajectory_consistency_checker.py:225
Method
test_clean_trajectory_passes
A well-formed trajectory produces no violations and a perfect score.
tests/test_ch9_trajectory_consistency_checker.py:225
Function
test_cleanup_on_cancellation
Test that pending requests and decision events are cleaned up if task is cancelled.
tests/test_ch4_notification_dispatcher.py:225
Function
test_cleanup_preserves_rendered_json_links_only
(tmp_path)
tests/test_build_site_assets.py:11
Function
test_cleanup_rejects_external_links_and_escaping_symlinks
(tmp_path)
tests/test_build_site_assets.py:51
Function
test_cli_exposes_xquik_search_as_metered_public_data
()
chapter4/perception-tools/test_xquik_tools.py:187
Function
test_cli_telemetry_event
Test CLITelemetryEvent structure.
chapter9/browser-use-rpa/browser-use/tests/ci/test_telemetry.py:88
Method
test_click
(params: ClickElementAction, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:493
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Function
test_clipper_retry_is_limited_to_exact_foreground_error
()
chapter7/android-world/test_experiment.py:129
Function
test_closed_position_rejects_candidate
(hiring_store, recruiter, system_ctx)
chapter5/permission-embedded-data-objects/tests/test_scenarios.py:90
Function
test_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
Method
test_cloud_browser_profile_property
Test that cloud_browser property works correctly.
chapter9/browser-use-rpa/browser-use/tests/ci/test_cloud_browser.py:229
Function
test_cloud_get_all_maps_top_k_to_page_size
()
chapter3/mem0/test_agent_v3.py:63
Method
test_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
Function
test_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
Function
test_code_interpreter_executes_valid_python
(monkeypatch)
chapter4/execution-tools/test_execution_tools.py:46
Function
test_code_interpreter_nonzero_exit_fails_closed
()
chapter4/perception-tools/test_expanded_catalog.py:63
Function
test_code_interpreter_reports_runtime_failure
(monkeypatch)
chapter4/execution-tools/test_execution_tools.py:75
Method
test_code_interpreter_shares_names_with_defined_functions
(self)
chapter6/agent-with-event-trigger/tests/test_code_interpreter.py:51
Function
test_collect_kimi_metadata
(tmp_path: Path)
chapter2/agent-skills-ppt/test_official_validation.py:48
Function
test_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
Function
test_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
Function
test_collect_tool_calls_parses_kimi_stream
(tmp_path: Path)
chapter2/agent-skills-ppt/test_official_validation.py:34
Method
test_combining_marks_have_zero_width
(self)
book-ar/test_svg_lib.py:7
Method
test_command_history
Test command history.
chapter4/execution-tools/test_terminal_controller.py:54
Function
test_command_is_exact_val_only_three_view_controlled
(tmp_path, monkeypatch)
chapter7/openvla-robotwin2-eval/test_experiment.py:39
Method
test_command_with_exit_code
Test that exit codes are captured
chapter5/coding-agent/tests/test_bash_tool.py:26
Function
test_comment_only_code_is_safe
A comment with no executable risk patterns is safe.
tests/test_ch5_sandbox_evaluator.py:319
Function
test_compare_empty_texts
()
chapter8/prompt-distillation/test_compare_empty.py:4
Function
test_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
Method
test_comparison
(self)
chapter1/context/tests/test_calc_sandbox.py:55
Function
test_compatibility_correction_must_resolve_to_accessible_arena
()
chapter10/generative-agents/tests/test_validate_campaign.py:23
Function
test_compile_evidence_package_sample_size
()
tests/test_ch7_rate_ramp_benchmark.py:119
Function
test_compile_evidence_package_sample_size
()
tests/test_ch6_rate_ramp_benchmark.py:119
Function
test_complete_evidence_passes
(tmp_path)
chapter6/end-to-end-speech/tests/test_validate_evidence.py:9
Method
test_complete_game_flow
Test a complete game flow.
chapter4/collaboration-tools/test_chess_tools.py:332
Method
test_complete_generation_gets_no_spurious_replacement_character
(self)
chapter2/attention_visualization/test_streaming.py:149
Function
test_complete_pem_still_redacted
()
chapter3/log-sanitization/tests/test_truncated_pem.py:21
Method
test_complete_sequence_same_for_both_modes
(self)
chapter2/attention_visualization/test_token_labels.py:108
Method
test_complete_stock_analysis
Test getting complete stock analysis data.
chapter4/perception-tools/test_yahoo_finance_tools.py:329
Method
test_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
Method
test_complete_workflow
Test a complete filesystem workflow.
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:857
← previous
next →
10,401–10,500 of 13,003, ranked by callers