MCPcopy Create free account

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

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

Methodtest_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
Functiontest_completed_falls_back_for_old_result_artifacts
()
chapter1/context/test_main_result_semantics.py:9
Functiontest_completed_field_is_authoritative_over_legacy_success_alias
()
chapter1/context/test_main_result_semantics.py:4
Methodtest_completed_prefix_assigns_char_to_final_token
(self)
chapter2/attention_visualization/test_token_labels.py:81
Functiontest_completed_real_campaign_accepts_detailed_error_in_tool_event
()
chapter2/system-hint/test_experiment_2_8.py:58
Functiontest_completion_requires_every_provider_availability_and_pinned_prices
()
chapter7/model-benchmark/test_campaign.py:282
Functiontest_completion_requires_exact_30_task_two_arm_evidence
()
chapter5/code-for-math/test_campaign.py:36
Methodtest_complex_action_chain
Test a complex chain of actions calling other actions
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:327
Methodtest_complex_pattern
Test complex glob patterns
chapter5/coding-agent/tests/test_glob_tool.py:94
Methodtest_complex_research
Test Case 3: Complex research task
chapter1/search-codegen/tests/manual/agent_cases.py:84
Functiontest_complex_task_suite_has_rule_gates_and_scores_observable_trace
()
chapter10/multi-role-transfer/tests/test_skill_comparison.py:87
Functiontest_compress_key_sentence
()
tests/test_ch2_benchmark_compression.py:67
Functiontest_compress_observation_filtering
()
tests/test_ch2_benchmark_compression.py:80
Functiontest_compress_summary
()
tests/test_ch2_benchmark_compression.py:46
Functiontest_compress_truncation
()
tests/test_ch2_benchmark_compression.py:59
Functiontest_compute_bradley_terry_leaderboard_empty
()
chapter7/elo-leaderboard/tests/test_zero_battles_bt.py:14
Functiontest_compute_mle_elo_calibration_model_default_none_rating
()
tests/test_ch6_bradley_terry_calibration.py:19
Functiontest_compute_mle_elo_calibration_model_default_none_rating
()
tests/test_ch7_bradley_terry_calibration.py:19
Functiontest_compute_mle_elo_calibration_model_not_in_df
()
tests/test_ch6_bradley_terry_calibration.py:55
Functiontest_compute_mle_elo_calibration_model_not_in_df
()
tests/test_ch7_bradley_terry_calibration.py:55
Functiontest_compute_mle_elo_custom_init_rating_and_calibration
()
tests/test_ch6_bradley_terry_calibration.py:43
Functiontest_compute_mle_elo_custom_init_rating_and_calibration
()
tests/test_ch7_bradley_terry_calibration.py:43
Functiontest_compute_mle_elo_empty_battles
()
chapter7/elo-leaderboard/tests/test_zero_battles_bt.py:7
Functiontest_compute_mle_elo_explicit_calibration_rating
()
tests/test_ch6_bradley_terry_calibration.py:31
Functiontest_compute_mle_elo_explicit_calibration_rating
()
tests/test_ch7_bradley_terry_calibration.py:31
Functiontest_compute_mle_elo_nan_model_names_multimodel
()
tests/test_ch7_bradley_terry_single_model.py:45
Functiontest_compute_mle_elo_nan_model_names_multimodel
()
tests/test_ch6_bradley_terry_single_model.py:45
Functiontest_compute_mle_elo_no_calibration
()
tests/test_ch6_bradley_terry_calibration.py:67
Functiontest_compute_mle_elo_no_calibration
()
tests/test_ch7_bradley_terry_calibration.py:67
Functiontest_compute_mle_elo_single_model
()
tests/test_ch7_bradley_terry_single_model.py:16
Functiontest_compute_mle_elo_single_model
()
tests/test_ch6_bradley_terry_single_model.py:16
Functiontest_compute_mle_elo_single_model_custom_init_rating
()
tests/test_ch7_bradley_terry_single_model.py:27
Functiontest_compute_mle_elo_single_model_custom_init_rating
()
tests/test_ch6_bradley_terry_single_model.py:27
Functiontest_compute_mle_elo_zero_unique_models
()
tests/test_ch7_bradley_terry_single_model.py:38
Functiontest_compute_mle_elo_zero_unique_models
()
tests/test_ch6_bradley_terry_single_model.py:38
Functiontest_compute_parse_rate_empty_total_is_zero
()
chapter8/prompt-distillation/test_evaluate_empty_parse_rate.py:20
Functiontest_compute_parse_rate_nonzero_total
()
chapter8/prompt-distillation/test_evaluate_empty_parse_rate.py:24
Functiontest_computer_fill_error_flows_back_to_phone_and_blocks_submission
()
chapter10/autonomous-phone-registration/test_orchestration.py:193
Functiontest_concat_handles_apostrophe_in_output_directory
FFconcat must preserve ordinary, single-quote, and multi-quote paths.
chapter6/controllable-tts/test_fish_s1.py:26
Functiontest_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
Methodtest_concurrent_event_dispatching
Test that concurrent events are handled properly.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_start.py:328
Methodtest_concurrent_operations
Test concurrent file operations.
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:912
Functiontest_condition_order_alternates_and_timestamp_has_three_arms
()
chapter2/system-hint/test_experiment_2_8.py:7
Functiontest_confidently_invented_conversions_are_ungrounded
()
chapter1/context/test_grounding.py:65
Methodtest_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
Functiontest_config_required_env_matches_validate
()
chapter1/image-gen-workflow/tests/test_env_config.py:33
Functiontest_config_resolves_dashscope_backend
()
chapter1/search-codegen/test_responses_agent.py:46
Methodtest_confirm_token_in_params
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:147
Functiontest_confirmation_token_expires_after_ttl
()
tests/test_ch8_safety_policy_gate.py:186
Functiontest_confirmation_token_expires_after_ttl
()
tests/test_ch9_safety_policy_gate.py:186
Methodtest_confirmation_token_lifecycle
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:131
Methodtest_confirmed_operation_and_low_risk_feedback_excluded
(self)
chapter9/harness-safety-gate/test_evolution.py:48
Functiontest_connection_failure_after_switch_is_not_a_handoff_rejection
(monkeypatch)
chapter5/provider-failover/tests/test_offline.py:250
Functiontest_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
Functiontest_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
Methodtest_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
Functiontest_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
Functiontest_constructor_dedupes_and_sorts_k_values
()
tests/test_ch3_retrieval_stage_evaluator.py:424
Functiontest_constructor_default_k_values
()
tests/test_ch3_retrieval_stage_evaluator.py:418
Functiontest_constructor_rejects_invalid_thresholds
()
tests/test_ch8_sft_data_auditor.py:370
Functiontest_constructor_rejects_invalid_thresholds
()
tests/test_ch7_sft_data_auditor.py:370
Functiontest_constructor_rejects_non_positive_k
()
tests/test_ch3_retrieval_stage_evaluator.py:413
Methodtest_content_creation
Test creating multimodal content
chapter4/multimodal-agent/test_multimodal.py:17
Methodtest_content_output_mode
Test output_mode: content shows matching lines
chapter5/coding-agent/tests/test_grep_tool.py:39
Methodtest_content_with_line_numbers
Test -n flag for line numbers
chapter5/coding-agent/tests/test_grep_tool.py:52
Methodtest_context_building
Test context building for different modes
chapter1/context/tests/test_agent.py:122
Functiontest_context_cap_keeps_headroom_for_provider_lower_bound
()
chapter7/android-world/test_experiment.py:72
Methodtest_context_lines_after
Test -A flag for context after match
chapter5/coding-agent/tests/test_grep_tool.py:67
Methodtest_context_lines_around
Test -C flag for context around match
chapter5/coding-agent/tests/test_grep_tool.py:94
Methodtest_context_lines_before
Test -B flag for context before match
chapter5/coding-agent/tests/test_grep_tool.py:81
Methodtest_context_mode_initialization
Test agent initialization with different context modes
chapter1/context/tests/test_agent.py:115
Functiontest_context_truncation_handles_before_and_after_summary_ui
()
chapter7/android-world/test_experiment.py:102
Functiontest_context_truncation_is_limited_to_middle_of_current_ui
()
chapter7/android-world/test_experiment.py:82
Methodtest_continuation_and_space_labels_stay_distinct
(self)
chapter2/attention_visualization/test_visualization.py:27
Methodtest_continuation_and_space_markers_render_on_the_heatmap
(self)
chapter2/attention_visualization/test_visualization.py:49
Methodtest_continuation_token_is_not_rendered_as_a_space
(self)
chapter2/attention_visualization/test_visualization.py:24
Functiontest_controlled_review_fault_is_a_real_linter_failure
()
chapter10/staged-system-prompt/test_official_evidence.py:50
Methodtest_conversation_history
Test conversation history management
chapter4/multimodal-agent/test_multimodal.py:95
Functiontest_conversation_requires_explicit_confirmation_for_completion
()
chapter6/phone-agent/test_agent.py:100
Functiontest_conversation_turn_rejects_none_critical_completion_fields
()
chapter6/phone-agent/test_agent.py:143
Functiontest_conversational_agent_ignores_empty_choices_chunk
()
chapter3/user-memory/test_stream_empty_choices.py:31
Methodtest_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
Functiontest_convert_dataset_expression_and_label
()
chapter5/code-for-logic/test_hf_dataset.py:4
Functiontest_convert_implication_and_biconditional
()
chapter5/code-for-logic/test_hf_dataset.py:24
Methodtest_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
Functiontest_copy
Test that copy creates independent instance.
chapter7/elo-leaderboard/tests/test_elo.py:138
Methodtest_copy_directory
Test copying a directory.
chapter4/execution-tools/test_filesystem_enhanced.py:285
Methodtest_copy_file
Test copying a file.
chapter4/execution-tools/test_filesystem_enhanced.py:274
Functiontest_cost_calculation_default_pricing
()
tests/test_ch6_cost_efficiency_analyzer.py:179
Functiontest_cost_calculation_default_pricing
()
tests/test_ch7_cost_efficiency_analyzer.py:179
Functiontest_cost_uses_uncached_cached_and_output_rates
()
chapter8/prompt-distillation/test_experiment_8_8.py:21
Functiontest_cot_fidelity_scoring
()
tests/test_ch7_evaluate_multilingual.py:28
Functiontest_cot_fidelity_scoring
()
tests/test_ch8_evaluate_multilingual.py:28
Functiontest_count_characters_normal
()
chapter10/multi-role-transfer/tests/test_count_characters_null.py:9
Functiontest_count_characters_null_text
()
chapter10/multi-role-transfer/tests/test_count_characters_null.py:4
Methodtest_count_output_mode
Test output_mode: count shows match counts per file
chapter5/coding-agent/tests/test_grep_tool.py:107
Functiontest_count_tokens_valid_text
()
tests/test_ch2_benchmark_compression.py:17
Functiontest_count_zero_returns_empty_history
(tc)
chapter4/execution-tools/test_command_history_count_zero.py:17
Methodtest_cpu_claim_is_rejected
(self)
chapter6/xlerobot-teleoperation/test_validator.py:18
Functiontest_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
← previousnext →10,501–10,600 of 13,003, ranked by callers