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_complete_workflow_with_json_csv
Test a complete filesystem workflow with JSON and CSV files.
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:597
Function
test_completed_falls_back_for_old_result_artifacts
()
chapter1/context/test_main_result_semantics.py:9
Function
test_completed_field_is_authoritative_over_legacy_success_alias
()
chapter1/context/test_main_result_semantics.py:4
Method
test_completed_prefix_assigns_char_to_final_token
(self)
chapter2/attention_visualization/test_token_labels.py:81
Function
test_completed_real_campaign_accepts_detailed_error_in_tool_event
()
chapter2/system-hint/test_experiment_2_8.py:58
Function
test_completion_requires_every_provider_availability_and_pinned_prices
()
chapter7/model-benchmark/test_campaign.py:282
Function
test_completion_requires_exact_30_task_two_arm_evidence
()
chapter5/code-for-math/test_campaign.py:36
Method
test_complex_action_chain
Test a complex chain of actions calling other actions
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:327
Method
test_complex_pattern
Test complex glob patterns
chapter5/coding-agent/tests/test_glob_tool.py:94
Method
test_complex_research
Test Case 3: Complex research task
chapter1/search-codegen/tests/manual/agent_cases.py:84
Function
test_complex_task_suite_has_rule_gates_and_scores_observable_trace
()
chapter10/multi-role-transfer/tests/test_skill_comparison.py:87
Function
test_compress_key_sentence
()
tests/test_ch2_benchmark_compression.py:67
Function
test_compress_observation_filtering
()
tests/test_ch2_benchmark_compression.py:80
Function
test_compress_summary
()
tests/test_ch2_benchmark_compression.py:46
Function
test_compress_truncation
()
tests/test_ch2_benchmark_compression.py:59
Function
test_compute_bradley_terry_leaderboard_empty
()
chapter7/elo-leaderboard/tests/test_zero_battles_bt.py:14
Function
test_compute_mle_elo_calibration_model_default_none_rating
()
tests/test_ch6_bradley_terry_calibration.py:19
Function
test_compute_mle_elo_calibration_model_default_none_rating
()
tests/test_ch7_bradley_terry_calibration.py:19
Function
test_compute_mle_elo_calibration_model_not_in_df
()
tests/test_ch6_bradley_terry_calibration.py:55
Function
test_compute_mle_elo_calibration_model_not_in_df
()
tests/test_ch7_bradley_terry_calibration.py:55
Function
test_compute_mle_elo_custom_init_rating_and_calibration
()
tests/test_ch6_bradley_terry_calibration.py:43
Function
test_compute_mle_elo_custom_init_rating_and_calibration
()
tests/test_ch7_bradley_terry_calibration.py:43
Function
test_compute_mle_elo_empty_battles
()
chapter7/elo-leaderboard/tests/test_zero_battles_bt.py:7
Function
test_compute_mle_elo_explicit_calibration_rating
()
tests/test_ch6_bradley_terry_calibration.py:31
Function
test_compute_mle_elo_explicit_calibration_rating
()
tests/test_ch7_bradley_terry_calibration.py:31
Function
test_compute_mle_elo_nan_model_names_multimodel
()
tests/test_ch7_bradley_terry_single_model.py:45
Function
test_compute_mle_elo_nan_model_names_multimodel
()
tests/test_ch6_bradley_terry_single_model.py:45
Function
test_compute_mle_elo_no_calibration
()
tests/test_ch6_bradley_terry_calibration.py:67
Function
test_compute_mle_elo_no_calibration
()
tests/test_ch7_bradley_terry_calibration.py:67
Function
test_compute_mle_elo_single_model
()
tests/test_ch7_bradley_terry_single_model.py:16
Function
test_compute_mle_elo_single_model
()
tests/test_ch6_bradley_terry_single_model.py:16
Function
test_compute_mle_elo_single_model_custom_init_rating
()
tests/test_ch7_bradley_terry_single_model.py:27
Function
test_compute_mle_elo_single_model_custom_init_rating
()
tests/test_ch6_bradley_terry_single_model.py:27
Function
test_compute_mle_elo_zero_unique_models
()
tests/test_ch7_bradley_terry_single_model.py:38
Function
test_compute_mle_elo_zero_unique_models
()
tests/test_ch6_bradley_terry_single_model.py:38
Function
test_compute_parse_rate_empty_total_is_zero
()
chapter8/prompt-distillation/test_evaluate_empty_parse_rate.py:20
Function
test_compute_parse_rate_nonzero_total
()
chapter8/prompt-distillation/test_evaluate_empty_parse_rate.py:24
Function
test_computer_fill_error_flows_back_to_phone_and_blocks_submission
()
chapter10/autonomous-phone-registration/test_orchestration.py:193
Function
test_concat_handles_apostrophe_in_output_directory
FFconcat must preserve ordinary, single-quote, and multi-quote paths.
chapter6/controllable-tts/test_fish_s1.py:26
Function
test_concurrent_duplicate_request_id_same_decision
Regression: two simultaneous dispatches sharing a request_id get the same decision when one approval is submitted. Closes the class where dis
tests/test_ch4_notification_dispatcher.py:686
Method
test_concurrent_event_dispatching
Test that concurrent events are handled properly.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_start.py:328
Method
test_concurrent_operations
Test concurrent file operations.
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:912
Function
test_condition_order_alternates_and_timestamp_has_three_arms
()
chapter2/system-hint/test_experiment_2_8.py:7
Function
test_confidently_invented_conversions_are_ungrounded
()
chapter1/context/test_grounding.py:65
Method
test_config_reads_env_vars_lazily
Test that CONFIG reads environment variables each time they're accessed.
chapter9/browser-use-rpa/browser-use/tests/ci/test_config.py:11
Function
test_config_required_env_matches_validate
()
chapter1/image-gen-workflow/tests/test_env_config.py:33
Function
test_config_resolves_dashscope_backend
()
chapter1/search-codegen/test_responses_agent.py:46
Method
test_confirm_token_in_params
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:147
Function
test_confirmation_token_expires_after_ttl
()
tests/test_ch8_safety_policy_gate.py:186
Function
test_confirmation_token_expires_after_ttl
()
tests/test_ch9_safety_policy_gate.py:186
Method
test_confirmation_token_lifecycle
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:131
Method
test_confirmed_operation_and_low_risk_feedback_excluded
(self)
chapter9/harness-safety-gate/test_evolution.py:48
Function
test_connection_failure_after_switch_is_not_a_handoff_rejection
(monkeypatch)
chapter5/provider-failover/tests/test_offline.py:250
Function
test_consecutive_frames_and_is_speech_in_process_chunk
Verify is_speech=True and consecutive_frames=N are returned prior to reaching barge-in threshold.
tests/test_ch6_interruption_manager.py:220
Function
test_consecutive_frames_and_is_speech_in_process_chunk
Verify is_speech=True and consecutive_frames=N are returned prior to reaching barge-in threshold.
tests/test_ch9_interruption_manager.py:220
Method
test_consistency_between_providers
Test that both Gemini and OpenAI handle schemas consistently. The original issue was that Gemini would fail where OpenAI succeeded.
chapter9/browser-use-rpa/browser-use/tests/ci/test_llm_gemini_type_field_fix.py:86
Function
test_consolidate_memories_preserves_earliest_created_at
Verify deduplicating identical memory notes retains the earliest created_at timestamp.
chapter3/user-memory/test_consolidate_created_at.py:4
Function
test_constructor_dedupes_and_sorts_k_values
()
tests/test_ch3_retrieval_stage_evaluator.py:424
Function
test_constructor_default_k_values
()
tests/test_ch3_retrieval_stage_evaluator.py:418
Function
test_constructor_rejects_invalid_thresholds
()
tests/test_ch8_sft_data_auditor.py:370
Function
test_constructor_rejects_invalid_thresholds
()
tests/test_ch7_sft_data_auditor.py:370
Function
test_constructor_rejects_non_positive_k
()
tests/test_ch3_retrieval_stage_evaluator.py:413
Method
test_content_creation
Test creating multimodal content
chapter4/multimodal-agent/test_multimodal.py:17
Method
test_content_output_mode
Test output_mode: content shows matching lines
chapter5/coding-agent/tests/test_grep_tool.py:39
Method
test_content_with_line_numbers
Test -n flag for line numbers
chapter5/coding-agent/tests/test_grep_tool.py:52
Method
test_context_building
Test context building for different modes
chapter1/context/tests/test_agent.py:122
Function
test_context_cap_keeps_headroom_for_provider_lower_bound
()
chapter7/android-world/test_experiment.py:72
Method
test_context_lines_after
Test -A flag for context after match
chapter5/coding-agent/tests/test_grep_tool.py:67
Method
test_context_lines_around
Test -C flag for context around match
chapter5/coding-agent/tests/test_grep_tool.py:94
Method
test_context_lines_before
Test -B flag for context before match
chapter5/coding-agent/tests/test_grep_tool.py:81
Method
test_context_mode_initialization
Test agent initialization with different context modes
chapter1/context/tests/test_agent.py:115
Function
test_context_truncation_handles_before_and_after_summary_ui
()
chapter7/android-world/test_experiment.py:102
Function
test_context_truncation_is_limited_to_middle_of_current_ui
()
chapter7/android-world/test_experiment.py:82
Method
test_continuation_and_space_labels_stay_distinct
(self)
chapter2/attention_visualization/test_visualization.py:27
Method
test_continuation_and_space_markers_render_on_the_heatmap
(self)
chapter2/attention_visualization/test_visualization.py:49
Method
test_continuation_token_is_not_rendered_as_a_space
(self)
chapter2/attention_visualization/test_visualization.py:24
Function
test_controlled_review_fault_is_a_real_linter_failure
()
chapter10/staged-system-prompt/test_official_evidence.py:50
Method
test_conversation_history
Test conversation history management
chapter4/multimodal-agent/test_multimodal.py:95
Function
test_conversation_requires_explicit_confirmation_for_completion
()
chapter6/phone-agent/test_agent.py:100
Function
test_conversation_turn_rejects_none_critical_completion_fields
()
chapter6/phone-agent/test_agent.py:143
Function
test_conversational_agent_ignores_empty_choices_chunk
()
chapter3/user-memory/test_stream_empty_choices.py:31
Method
test_convert_currency_string_and_formatted_amounts
Prove that convert_currency accepts string and formatted numeric amounts. LLM tool calls frequently pass numeric arguments a
chapter1/context/tests/test_agent.py:64
Function
test_convert_dataset_expression_and_label
()
chapter5/code-for-logic/test_hf_dataset.py:4
Function
test_convert_implication_and_biconditional
()
chapter5/code-for-logic/test_hf_dataset.py:24
Method
test_convert_simple_xpath_to_css_selector
Test removed: _convert_simple_xpath_to_css_selector method no longer exists.
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry_action_parameter_injection.py:119
Function
test_copy
Test that copy creates independent instance.
chapter7/elo-leaderboard/tests/test_elo.py:138
Method
test_copy_directory
Test copying a directory.
chapter4/execution-tools/test_filesystem_enhanced.py:285
Method
test_copy_file
Test copying a file.
chapter4/execution-tools/test_filesystem_enhanced.py:274
Function
test_cost_calculation_default_pricing
()
tests/test_ch6_cost_efficiency_analyzer.py:179
Function
test_cost_calculation_default_pricing
()
tests/test_ch7_cost_efficiency_analyzer.py:179
Function
test_cost_uses_uncached_cached_and_output_rates
()
chapter8/prompt-distillation/test_experiment_8_8.py:21
Function
test_cot_fidelity_scoring
()
tests/test_ch7_evaluate_multilingual.py:28
Function
test_cot_fidelity_scoring
()
tests/test_ch8_evaluate_multilingual.py:28
Function
test_count_characters_normal
()
chapter10/multi-role-transfer/tests/test_count_characters_null.py:9
Function
test_count_characters_null_text
()
chapter10/multi-role-transfer/tests/test_count_characters_null.py:4
Method
test_count_output_mode
Test output_mode: count shows match counts per file
chapter5/coding-agent/tests/test_grep_tool.py:107
Function
test_count_tokens_valid_text
()
tests/test_ch2_benchmark_compression.py:17
Function
test_count_zero_returns_empty_history
(tc)
chapter4/execution-tools/test_command_history_count_zero.py:17
Method
test_cpu_claim_is_rejected
(self)
chapter6/xlerobot-teleoperation/test_validator.py:18
Function
test_crash_watchdog_browser_disconnect
Test that CrashWatchdog detects browser disconnection through monitoring.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_crash.py:88
← previous
next →
10,501–10,600 of 13,003, ranked by callers