MCPcopy Create free account

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

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

↓ 1 callersFunctiondecode_image_url
(url: str)
chapter8/MiniMind-pretrain/validation/validate_vlm_evidence.py:89
↓ 1 callersFunctiondefault_env
返回一份内存模拟环境:文件、Shell 历史、Git 提交与数据库表。
chapter9/harness-safety-gate/stable/tool_dispatcher.py:18
↓ 1 callersFunctiondefault_model
()
chapter2/prompt-engineering/tau_bench/model_utils/model/general_model.py:127
↓ 1 callersFunctiondefault_pricing
返回默认模型(config 中 MODEL)的单价;未知模型回退到模块级 PRICE_* 默认值。
chapter7/agent-cost-analysis/config.py:118
↓ 1 callersFunctiondefault_quick_model
()
chapter2/prompt-engineering/tau_bench/model_utils/model/general_model.py:133
↓ 1 callersFunctiondefault_request_router
()
chapter2/prompt-engineering/tau_bench/model_utils/api/router.py:86
↓ 1 callersFunctiondefault_run_dir
()
chapter6/computer-use-open-model/main.py:30
↓ 1 callersFunctiondefault_speech_backend
()
chapter10/autonomous-phone-registration/webrtc_channel.py:467
↓ 1 callersMethoddelete
(self, object_id: str, accessor: AccessContext, **kw)
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/agentspec_wrap.py:169
↓ 1 callersMethoddelete_card
Delete a memory card. Args: category: Card category card_key: Card key Returns:
chapter3/contextual-retrieval-for-user-memory/advanced_memory_manager.py:210
↓ 1 callersMethoddelete_document
Delete a document from the store.
chapter3/retrieval-pipeline/document_store.py:57
↓ 1 callersMethoddelete_document
Delete a document.
chapter3/dense-embedding/test_client.py:40
↓ 1 callersMethoddelete_document
Delete a document from the store. Args: doc_id: Document ID Returns: True if delete
chapter3/dense-embedding/document_store.py:97
↓ 1 callersMethoddelete_file_content
Delete lines from file. Args: file_path: File path start_line: Start line number (1-indexed, inclusi
chapter4/execution-tools/terminal_controller.py:357
↓ 1 callersFunctiondemo
Interactive demo with proper tool calling
chapter2/local_llm_serving/ollama_native.py:566
↓ 1 callersFunctiondemo_active_discovery_process
Demonstrate the active discovery process in detail.
chapter4/active-tool-selection/demo_comparison.py:124
↓ 1 callersFunctiondemo_basic_elo
Demonstrate basic Elo rating calculation with synthetic data.
chapter7/elo-leaderboard/quickstart.py:7
↓ 1 callersFunctiondemo_basic_features
Demonstrate basic system hint features
chapter2/system-hint/main.py:216
↓ 1 callersFunctiondemo_category_evaluation
Demonstrate the improved category evaluation selection
chapter3/agentic-rag-for-user-memory/demo_ui_improvements.py:93
↓ 1 callersFunctiondemo_category_evaluation
Demonstrate the improved category evaluation selection
chapter3/contextual-retrieval-for-user-memory/demo_ui_improvements.py:93
↓ 1 callersFunctiondemo_code_interpreter
Demonstrate code generation and analysis capability
chapter1/search-codegen/quickstart.py:37
↓ 1 callersFunctiondemo_combined_tools
Demonstrate using both tools together
chapter1/search-codegen/quickstart.py:66
↓ 1 callersFunctiondemo_company_extraction
Demo: Extract structured company data.
chapter9/browser-use-rpa/browser-use/examples/cloud/03_structured_output.py:300
↓ 1 callersFunctiondemo_compare
(flat: FlatRetriever, graph: nx.DiGraph, query: str, top_k: int)
chapter3/structured-index/structured_vs_flat_demo.py:207
↓ 1 callersFunctiondemo_comparison
Compare with and without system hints
chapter2/system-hint/main.py:289
↓ 1 callersMethoddemo_comparison
Run a side-by-side comparison
chapter3/contextual-retrieval/demo.py:172
↓ 1 callersFunctiondemo_competitive_analysis
Demo: Analyze competitor websites.
chapter9/browser-use-rpa/browser-use/examples/cloud/05_search_api.py:203
↓ 1 callersFunctiondemo_conversation_with_tools
Demonstrate a conversation with multimodal tools
chapter4/multimodal-agent/demo.py:199
↓ 1 callersFunctiondemo_deep_website_analysis
Demo: Deep analysis of a specific website.
chapter9/browser-use-rpa/browser-use/examples/cloud/05_search_api.py:215
↓ 1 callersFunctiondemo_geo_restrictions
Demonstrate geo-restriction bypass.
chapter9/browser-use-rpa/browser-use/examples/cloud/04_proxy_usage.py:238
↓ 1 callersFunctiondemo_hierarchical
(flat: FlatRetriever, query: str, top_k: int)
chapter3/structured-index/structured_vs_flat_demo.py:223
↓ 1 callersFunctiondemo_iterative_capability_extension
Demonstrate iterative capability extension.
chapter4/active-tool-selection/demo_comparison.py:196
↓ 1 callersFunctiondemo_memory_system
Demonstrate the separated memory system architecture
chapter3/user-memory/main.py:263
↓ 1 callersFunctiondemo_mode
Run a quick demo with sample PII-containing text (本地 LLM 模式)
chapter3/log-sanitization/main.py:155
↓ 1 callersFunctiondemo_multi_hop
(flat: FlatRetriever, graph: nx.DiGraph, query: str, top_k: int)
chapter3/structured-index/structured_vs_flat_demo.py:185
↓ 1 callersFunctiondemo_news_extraction
Demo: Extract structured news data.
chapter9/browser-use-rpa/browser-use/examples/cloud/03_structured_output.py:238
↓ 1 callersFunctiondemo_news_search
Demo: Search for latest news across multiple sources.
chapter9/browser-use-rpa/browser-use/examples/cloud/05_search_api.py:187
↓ 1 callersFunctiondemo_ollama_streaming
Demo streaming with Ollama backend
chapter2/local_llm_serving/demo_streaming.py:59
↓ 1 callersMethoddemo_problem
Demonstrate the context loss problem
chapter3/contextual-retrieval/demo.py:89
↓ 1 callersFunctiondemo_product_extraction
Demo: Extract structured product data.
chapter9/browser-use-rpa/browser-use/examples/cloud/03_structured_output.py:269
↓ 1 callersFunctiondemo_product_research
Demo: Product research and comparison.
chapter9/browser-use-rpa/browser-use/examples/cloud/05_search_api.py:232
↓ 1 callersFunctiondemo_proxy_countries
Demonstrate proxy usage across different countries.
chapter9/browser-use-rpa/browser-use/examples/cloud/04_proxy_usage.py:200
↓ 1 callersMethoddemo_real_example
Demonstrate with a real-world example
chapter3/contextual-retrieval/demo.py:295
↓ 1 callersFunctiondemo_real_time_vs_cached
Demo: Show difference between real-time and cached results.
chapter9/browser-use-rpa/browser-use/examples/cloud/05_search_api.py:244
↓ 1 callersFunctiondemo_regex_mode
离线规则脱敏演示:对多个代表性样本展示 before/after 与类别汇总
chapter3/log-sanitization/main.py:93
↓ 1 callersFunctiondemo_search
演示搜索功能
chapter1/web-search-agent/quickstart.py:69
↓ 1 callersFunctiondemo_search_depth_comparison
Demo: Compare different search depths.
chapter9/browser-use-rpa/browser-use/examples/cloud/05_search_api.py:266
↓ 1 callersFunctiondemo_search_localization
Demonstrate search result localization.
chapter9/browser-use-rpa/browser-use/examples/cloud/04_proxy_usage.py:273
↓ 1 callersFunctiondemo_semantic_routing
Demonstrate hierarchical semantic routing.
chapter4/active-tool-selection/demo_comparison.py:161
↓ 1 callersFunctiondemo_single_test_selection
Demonstrate the improved single test case selection
chapter3/agentic-rag-for-user-memory/demo_ui_improvements.py:16
↓ 1 callersFunctiondemo_single_test_selection
Demonstrate the improved single test case selection
chapter3/contextual-retrieval-for-user-memory/demo_ui_improvements.py:16
↓ 1 callersMethoddemo_solution
Demonstrate the contextual retrieval solution
chapter3/contextual-retrieval/demo.py:138
↓ 1 callersFunctiondemo_streaming_access
Demonstrate streaming service access with different proxies.
chapter9/browser-use-rpa/browser-use/examples/cloud/04_proxy_usage.py:256
↓ 1 callersFunctiondemo_system_hints
Demonstrate system hint features like timestamps, tool counting, and TODO tracking
chapter5/coding-agent/example_with_system_hints.py:10
↓ 1 callersFunctiondemo_tool_loop_prevention
Demonstrate tool call loop prevention
chapter2/system-hint/main.py:252
↓ 1 callersFunctiondemo_unified_streaming
Demo with unified ToolCallingAgent that auto-selects backend
chapter2/local_llm_serving/demo_streaming.py:120
↓ 1 callersFunctiondemo_view_test_cases_table
Demonstrate the improved test cases table with index numbers
chapter3/agentic-rag-for-user-memory/demo_ui_improvements.py:57
↓ 1 callersFunctiondemo_view_test_cases_table
Demonstrate the improved test cases table with index numbers
chapter3/contextual-retrieval-for-user-memory/demo_ui_improvements.py:57
↓ 1 callersFunctiondemo_vllm_streaming
Demo streaming with vLLM backend
chapter2/local_llm_serving/demo_streaming.py:18
↓ 1 callersFunctiondemo_weather_learning
Demonstrate weather checking with learning.
chapter9/browser-use-rpa/demo_weather.py:25
↓ 1 callersFunctiondemo_web_search
Demonstrate web search capability
chapter1/search-codegen/quickstart.py:12
↓ 1 callersFunctiondemonstrate_agent_logging
Demonstrate how the agent logs tool calls and results
chapter3/agentic-rag-for-user-memory/demo_agent_logging.py:65
↓ 1 callersFunctiondemonstrate_agent_logging
Demonstrate how the agent logs tool calls and results
chapter3/contextual-retrieval-for-user-memory/demo_agent_logging.py:65
↓ 1 callersFunctiondemonstrate_attention_tracking
Demonstrate the attention tracking functionality
chapter2/attention_visualization/agent.py:537
↓ 1 callersFunctiondemonstrate_conversation_processing
Demonstrate the conversation-based memory processing
chapter3/user-memory/demo_conversation_processing.py:19
↓ 1 callersFunctiondemonstrate_evaluation_output
Show what the evaluation output looks like
chapter3/agentic-rag-for-user-memory/test_llm_evaluation.py:88
↓ 1 callersFunctiondemonstrate_evaluation_output
Show what the evaluation output looks like
chapter3/contextual-retrieval-for-user-memory/test_llm_evaluation.py:88
↓ 1 callersFunctiondemonstrate_interval_processing
Demonstrate processing with different conversation intervals
chapter3/user-memory/demo_conversation_processing.py:184
↓ 1 callersFunctiondemonstrate_react_agent
Demonstrate the ReAct agent with various queries
chapter2/attention_visualization/main.py:646
↓ 1 callersFunctiondemonstrate_streaming_response
Demonstrate how streaming would work (matching Go handleStreamingResponse)
chapter1/search-codegen/example_request.py:134
↓ 1 callersFunctiondemonstrate_tool_calling
Demonstrate the tool calling functionality
chapter2/local_llm_serving/agent.py:559
↓ 1 callersFunctionderive_acceptance
(scenarios: list[dict[str, Any]], protocol: dict[str, Any])
chapter6/async-agent/run_real_experiment.py:269
↓ 1 callersFunctionderive_acceptance
(events: list[dict[str, Any]], workflows: list[dict[str, Any]], calls: list[dict[str, An
chapter6/agent-with-event-trigger/unipile_mailbox_experiment.py:566
↓ 1 callersFunctionderive_acceptance
( protocol: dict[str, Any], catalog: dict[str, Any], receipts: list[dict[str, Any]], *, ou
chapter4/perception-tools/run_experiment_4_2.py:459
↓ 1 callersFunctionderive_acceptance
Derive every acceptance claim from durable campaign receipts.
chapter4/active-tool-discovery/run_exact_experiment.py:897
↓ 1 callersFunctiondescribe_dry_run
离线打印将要执行的场景配置,不访问服务端。
chapter2/local_llm_serving/benchmark.py:306
↓ 1 callersMethoddetectLanguage
(text)
chapter6/live-audio/backend/server.js:688
↓ 1 callersFunctiondetect_device
(requested: str)
chapter3/retrieval-pipeline/evaluate.py:631
↓ 1 callersMethoddiagnose
(self, architecture: str, prd: str, trajectories: List[Dict[str, Any]])
chapter5/log-diagnosis/diagnoser.py:71
↓ 1 callersFunctiondiffusion
(nodes: dict[str, list[dict[str, Any]]], terms: tuple[str, ...])
chapter10/generative-agents/analyze_campaign.py:51
↓ 1 callersFunctiondigest
(path: Path)
chapter8/MiniMind-pretrain/validation/test_training_report_audit.py:14
↓ 1 callersFunctiondigest
(path: Path)
chapter9/hermes-self-evolution/finalize_evidence.py:38
↓ 1 callersFunctiondisabled_is_clean
(row: dict)
chapter2/system-hint/run_experiment_2_8.py:791
↓ 1 callersMethoddisconnect_all
Disconnect from all MCP servers.
chapter9/browser-use-rpa/browser-use/examples/mcp/advanced_server.py:87
↓ 1 callersMethoddiscover_fields
(self)
chapter10/autonomous-phone-registration/browser.py:41
↓ 1 callersFunctiondiscover_locales
发现所有主语言 locale。 - 中文(zh-CN)始终包含(根目录 README.md) - 其余:docs/<locale>/README.md 存在即纳入
scripts/check_i18n_consistency.py:81
↓ 1 callersFunctiondiscovery
(k, rtl)
web-astro/scripts/tool-protocol-layout.mjs:99
↓ 1 callersMethoddispatch_and_wait_sync
Synchronous wrapper for dispatch_and_wait.
chapter4/collaboration-tools/src/notification_dispatcher.py:657
↓ 1 callersFunctiondisplayMathCount
(markdown)
web-astro/scripts/build.test.mjs:39
↓ 1 callersMethoddisplay_scenario_results
Display results for a single scenario.
chapter3/mem0/experiment.py:315
↓ 1 callersMethoddisplay_test_case_detail
Display detailed information about a test case.
chapter3/user-memory-evaluation/framework.py:349
↓ 1 callersFunctiondisplay_url_search_results
Display URL search results in a readable format.
chapter9/browser-use-rpa/browser-use/examples/cloud/05_search_api.py:165
↓ 1 callersFunctiondistill_one
对单道题调用教师模型,返回完整轨迹记录。
chapter8/cot-distillation/generate_data.py:127
↓ 1 callersFunctiondistribution
(values: list[float])
chapter7/openvla-robotwin2-eval/experiment.py:464
↓ 1 callersFunctiondownload
()
chapter5/code-for-math/build_aime_2024.py:21
↓ 1 callersFunctiondownload_arena_data
Download Chatbot Arena voting data via HTTPS. Args: output_path: Path to save downloaded file force_download: If True, r
chapter7/elo-leaderboard/data_loader.py:11
↓ 1 callersFunctiondownload_file
Download a file from a URL. Args: url: URL to download from output_path: Local path to save the file overwrite:
chapter4/perception-tools/src/search_tools.py:265
↓ 1 callersFunctiondownload_model_from_modelscope
Download Qwen3-0.6B model from ModelScope This is optional - vLLM can download from HuggingFace automatically
chapter2/local_llm_serving/server.py:171
↓ 1 callersFunctiondownload_paper
Download ArXiv paper PDF. Args: paper_id: ArXiv paper ID download_dir: Directory to save PDF Returns:
chapter4/perception-tools/src/arxiv_enhanced.py:90
↓ 1 callersFunctiondownload_youtube_video
Download YouTube video using yt-dlp. Args: url: YouTube video URL output_dir: Directory to save video max_resolu
chapter4/perception-tools/src/multimodal_tools.py:400
← previousnext →4,701–4,800 of 13,003, ranked by callers