MCPcopy Create free account

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

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

↓ 1 callersFunctiontest_imports
Test all imports work
chapter3/agentic-rag-for-user-memory/test_startup.py:12
↓ 1 callersFunctiontest_imports
Test that all modules can be imported.
chapter3/mem0/test_simple.py:11
↓ 1 callersFunctiontest_imports
Test all imports work
chapter3/contextual-retrieval-for-user-memory/test_startup.py:12
↓ 1 callersFunctiontest_indexer
Test the modified indexer
chapter3/agentic-rag-for-user-memory/test_pipeline.py:93
↓ 1 callersFunctiontest_indexer
Test the modified indexer
chapter3/contextual-retrieval-for-user-memory/test_pipeline.py:93
↓ 1 callersFunctiontest_indexing
Test both RAPTOR and GraphRAG indexing with sample documentation.
chapter3/structured-index/test_indexing.py:115
↓ 1 callersFunctiontest_initialization
Test component initialization
chapter3/agentic-rag-for-user-memory/test_startup.py:28
↓ 1 callersFunctiontest_initialization
Test component initialization
chapter3/contextual-retrieval-for-user-memory/test_startup.py:28
↓ 1 callersMethodtest_intent_matching
Test 3: Intent matching algorithm.
chapter9/browser-use-rpa/test_validation.py:164
↓ 1 callersFunctiontest_inverted_index
Test inverted index functionality
chapter3/sparse-embedding/test_engine.py:50
↓ 1 callersFunctiontest_ip_location
Test IP address and location detection with proxy.
chapter9/browser-use-rpa/browser-use/examples/cloud/04_proxy_usage.py:97
↓ 1 callersFunctiontest_iterative_country_generation
Test token cost tracking with iterative country generation
chapter9/browser-use-rpa/browser-use/browser_use/tokens/tests/test_cost.py:18
↓ 1 callersFunctiontest_knowledge_base
Test that knowledge base loads correctly.
chapter4/active-tool-selection/tests/test_basic.py:10
↓ 1 callersMethodtest_knowledge_base
Test 2: Knowledge base storage and retrieval.
chapter9/browser-use-rpa/test_validation.py:121
↓ 1 callersFunctiontest_llm_agent
Test that the LLM agent works (without API calls).
chapter1/learning-from-experience/tests/test_basic.py:77
↓ 1 callersFunctiontest_llm_evaluation_integration
Test that LLM evaluation is properly integrated
chapter3/agentic-rag-for-user-memory/test_llm_evaluation.py:22
↓ 1 callersFunctiontest_llm_evaluation_integration
Test that LLM evaluation is properly integrated
chapter3/contextual-retrieval-for-user-memory/test_llm_evaluation.py:22
↓ 1 callersFunctiontest_load_timers_expired_active_timer_triggers_callback
()
chapter4/collaboration-tools/test_load_expired_timer_callback.py:15
↓ 1 callersFunctiontest_logging
Test that LLM responses are properly logged
chapter3/agentic-rag-for-user-memory/test_enhanced_logging.py:22
↓ 1 callersFunctiontest_logging
Test that LLM responses are properly logged
chapter3/contextual-retrieval-for-user-memory/test_enhanced_logging.py:22
↓ 1 callersMethodtest_max_4_cache_blocks
Test that the max number of cache blocks is 4.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_anthropic_cache.py:265
↓ 1 callersFunctiontest_memory_system
Test memory system initialization.
chapter3/mem0/test_simple.py:100
↓ 1 callersFunctiontest_message_flow_logic
Simulate how messages are handled in different modes
chapter2/kv-cache/tests/test_message_flow.py:6
↓ 1 callersMethodtest_mixed_cache_scenarios
Test various combinations of cached and non-cached messages.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_anthropic_cache.py:137
↓ 1 callersFunctiontest_mode_selection
Test the interactive mode selection without running the agent
chapter2/kv-cache/tests/test_interactive.py:8
↓ 1 callersFunctiontest_model_info
Test and display model information
chapter1/context/tests/manual/check_kimi.py:151
↓ 1 callersFunctiontest_model_info
Test and display model information
chapter1/context/tests/manual/check_deepseek.py:142
↓ 1 callersFunctiontest_native_execute_parallel
()
chapter2/local_llm_serving/test_parallel_tools.py:63
↓ 1 callersFunctiontest_native_real_model
()
chapter2/local_llm_serving/test_parallel_tools.py:135
↓ 1 callersFunctiontest_native_tools
Test Ollama's native tool calling
chapter2/local_llm_serving/ollama_native.py:512
↓ 1 callersFunctiontest_new_tools
Test the new perception tools.
chapter4/perception-tools/test_new_tools.py:18
↓ 1 callersFunctiontest_non_agentic_mode
Test non-agentic mode with structured backends
chapter3/agentic-rag/test_structured_backends.py:155
↓ 1 callersFunctiontest_notification_tools
Test notification tools (without actually sending).
chapter4/collaboration-tools/test_basic.py:86
↓ 1 callersFunctiontest_openai_compat_real_model
()
chapter2/local_llm_serving/test_parallel_tools.py:172
↓ 1 callersFunctiontest_openrouter
Test direct API call to OpenRouter
chapter2/prompt-engineering/test_openrouter_direct.py:18
↓ 1 callersFunctiontest_optimized_schema
Test the optimized schema generation and save to file.
chapter9/browser-use-rpa/browser-use/tests/ci/test_llm_custom_structured_ouput.py:11
↓ 1 callersFunctiontest_parse_request_preceding_closing_tag_mention
()
chapter4/active-tool-selection/tests/test_parse_request_closing_tag.py:4
↓ 1 callersFunctiontest_pattern_matching
Test various pattern matching scenarios
chapter2/kv-cache/tests/test_tools.py:87
↓ 1 callersFunctiontest_pdf_with_currencies
Test PDF parsing with currency conversion
chapter1/context/tests/manual/check_pdf_task.py:15
↓ 1 callersMethodtest_performance_improvement
Test 5: Performance improvement validation.
chapter9/browser-use-rpa/test_validation.py:253
↓ 1 callersFunctiontest_pipeline
Test the complete retrieval pipeline.
chapter3/retrieval-pipeline/test_pipeline.py:62
↓ 1 callersFunctiontest_proactive_service
Test the agent's ability to provide proactive service
chapter3/contextual-retrieval-for-user-memory/test_proactive_service.py:14
↓ 1 callersFunctiontest_provider_switching
Test switching between different providers
chapter1/context/tests/manual/check_provider_switching.py:19
↓ 1 callersFunctiontest_providers
Test different provider configurations
chapter1/context/tests/manual/check_provider_config.py:14
↓ 1 callersMethodtest_query
Test a query against the system
chapter3/contextual-retrieval-for-user-memory/main.py:389
↓ 1 callersFunctiontest_ranking_quality
Test the quality of search result ranking
chapter3/sparse-embedding/test_engine.py:250
↓ 1 callersFunctiontest_raptor_backend
Test Agentic RAG with RAPTOR tree-based backend
chapter3/agentic-rag/test_structured_backends.py:24
↓ 1 callersFunctiontest_read_file_empty_file_line_range
Prove that line-based read_file on empty (0-line) files succeeds with empty content. When an LLM agent requested line-based reads (e.g.,
chapter2/system-hint/test_basic.py:151
↓ 1 callersFunctiontest_retrieval_pipeline
Test if retrieval pipeline is available and working
chapter3/agentic-rag-for-user-memory/test_pipeline.py:10
↓ 1 callersFunctiontest_retrieval_pipeline
Test if retrieval pipeline is available and working
chapter3/contextual-retrieval-for-user-memory/test_pipeline.py:10
↓ 1 callersFunctiontest_rl_agent
Test that the RL agent works.
chapter1/learning-from-experience/tests/test_basic.py:46
↓ 1 callersFunctiontest_rls_violations
Test which violations RLS catches vs misses.
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_comparisons.py:84
↓ 1 callersFunctiontest_routing_details
Test detailed routing information.
chapter4/active-tool-selection/tests/test_basic.py:108
↓ 1 callersFunctiontest_safety_checks
Test safety checks for file operations.
chapter4/execution-tools/test_file_tools.py:69
↓ 1 callersFunctiontest_search_engine
Test the complete search engine
chapter3/sparse-embedding/test_engine.py:134
↓ 1 callersFunctiontest_search_memory_logging
Test search_memory tool with full logging
chapter3/agentic-rag-for-user-memory/test_logging.py:77
↓ 1 callersFunctiontest_search_memory_logging
Test search_memory tool with full logging
chapter3/contextual-retrieval-for-user-memory/test_logging.py:77
↓ 1 callersFunctiontest_search_results_by_location
Test how search results vary by location.
chapter9/browser-use-rpa/browser-use/examples/cloud/04_proxy_usage.py:148
↓ 1 callersFunctiontest_semantic_router
Test semantic routing functionality.
chapter4/active-tool-selection/tests/test_basic.py:37
↓ 1 callersFunctiontest_server_startup
Test that the server starts without deprecation warnings.
chapter3/retrieval-pipeline/test_improvements.py:10
↓ 1 callersFunctiontest_simple_task
Test with a very simple task to check if the agent is working
chapter1/context/tests/manual/check_simple_task.py:16
↓ 1 callersFunctiontest_single_evaluation
Test evaluation with a single simple test case
chapter3/contextual-retrieval-for-user-memory/test_fixes.py:14
↓ 1 callersFunctiontest_single_step
Original test function that tests all models in a loop.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_single_step.py:141
↓ 1 callersFunctiontest_sparse_service
Test the sparse service directly to ensure it handles external doc_ids.
chapter3/retrieval-pipeline/test_pipeline.py:19
↓ 1 callersFunctiontest_specific_document_retrieval
Test retrieving specific documents by ID
chapter3/sparse-embedding/demo.py:229
↓ 1 callersFunctiontest_streaming
Test streaming functionality with various queries
chapter2/local_llm_serving/test_streaming.py:12
↓ 1 callersFunctiontest_streaming_service_access
Test access to region-specific streaming content.
chapter9/browser-use-rpa/browser-use/examples/cloud/04_proxy_usage.py:129
↓ 1 callersFunctiontest_streaming_yields_ollama_thinking_field
()
chapter2/local_llm_serving/test_ollama_thinking.py:47
↓ 1 callersFunctiontest_structured_request_parser
Test structured request parsing.
chapter4/active-tool-selection/tests/test_basic.py:67
↓ 1 callersFunctiontest_successful_execution
Test that code executes successfully with full Python environment
chapter2/local_llm_serving/test_code_interpreter_full.py:7
↓ 1 callersMethodtest_system_message_cache_behavior
Test SystemMessage specific cache behavior.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_anthropic_cache.py:167
↓ 1 callersFunctiontest_text_processor
Test text processing functionality
chapter3/sparse-embedding/test_engine.py:17
↓ 1 callersFunctiontest_timer_tools
Test timer functionality.
chapter4/collaboration-tools/test_basic.py:30
↓ 1 callersFunctiontest_tool_calling
Test that the agent correctly uses OpenAI tool calling format
chapter2/kv-cache/tests/manual/check_tool_calling.py:15
↓ 1 callersFunctiontest_tool_definitions
Verify extract_key_information is removed from tool definitions
chapter3/agentic-rag-for-user-memory/test_logging.py:212
↓ 1 callersFunctiontest_tool_definitions
Verify extract_key_information is removed from tool definitions
chapter3/contextual-retrieval-for-user-memory/test_logging.py:212
↓ 1 callersFunctiontest_tool_schemas
Test that tool schemas are properly formatted for OpenAI.
chapter4/active-tool-selection/tests/test_basic.py:143
↓ 1 callersFunctiontest_tool_usage
Test tool calling capabilities
chapter1/context/tests/manual/check_kimi.py:64
↓ 1 callersFunctiontest_tool_usage
Test tool calling capabilities
chapter1/context/tests/manual/check_deepseek.py:60
↓ 1 callersFunctiontest_tools
Test various perception tools.
chapter4/perception-tools/quickstart.py:22
↓ 1 callersFunctiontest_ttft_tracking
Test and display TTFT tracking across iterations
chapter2/kv-cache/tests/manual/check_ttft.py:15
↓ 1 callersFunctiontest_vllm_agent_real_model
()
chapter2/local_llm_serving/test_parallel_tools.py:188
↓ 1 callersFunctiontest_vllm_stream_parallel
()
chapter2/local_llm_serving/test_parallel_tools.py:91
↓ 1 callersMethodtest_workflow_capture
Test 1: Workflow capture functionality.
chapter9/browser-use-rpa/test_validation.py:76
↓ 1 callersMethodtest_workflow_replay
Test 4: Workflow replay mechanism.
chapter9/browser-use-rpa/test_validation.py:209
↓ 1 callersFunctiontextBlocks
(markdown)
slides/review.mjs:88
↓ 1 callersFunctiontextLabels
(svg)
web-astro/scripts/training-workflows-figures.test.mjs:21
↓ 1 callersFunctiontextNodes
(source)
web-astro/scripts/coding-comparison-layout.mjs:51
↓ 1 callersFunctiontextNodes
(source)
web-astro/scripts/coding-application-layout.mjs:23
↓ 1 callersFunctiontextual_interface
Run the Textual interface.
chapter9/browser-use-rpa/browser-use/browser_use/cli.py:1475
↓ 1 callersFunctionthin_xticklabels
Drop every n-th label until neighbours no longer crowd each other. pick_xticks bounds the tick *count*, but whether the labels actually fit d
scripts/gen_star_history.py:503
↓ 1 callersFunctiontick
()
tests/js/auto-translate.test.js:121
↓ 1 callersFunctiontimelineCard
(svg, id)
web-astro/scripts/async-architecture-layout.test.mjs:57
↓ 1 callersMethodto_dict
(self)
chapter5/agent-creator/validator.py:64
↓ 1 callersMethodto_dict
Convert interruption event to dictionary representation.
chapter6/streaming-speech/interruption_manager.py:28
↓ 1 callersMethodto_dict
(self)
chapter6/end-to-end-speech/speech_model.py:25
↓ 1 callersMethodto_dict
(self)
chapter6/phone-agent/agent.py:40
↓ 1 callersMethodto_dict
序列化为纯 JSON 可写的字典(用于状态检查点持久化)。
chapter6/async-agent/events.py:75
↓ 1 callersMethodto_dict
Convert to dictionary for JSON serialization
chapter2/attention_visualization/agent.py:39
↓ 1 callersMethodto_dict
(self)
chapter10/book-translation/consistency_auditor.py:44
← previousnext →7,201–7,300 of 13,003, ranked by callers