MCPcopy Create free account

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

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

↓ 2 callersFunction_execution_completion
(args, tasks, arms, arm_results)
chapter5/small-model-codified-rules/demo.py:380
↓ 2 callersFunction_extract_code
从模型回复中抽取 Python 代码块;没有围栏时退回整段文本。
chapter5/adaptive-log-parser/agent.py:68
↓ 2 callersFunction_extract_destination
从"去XX的机票"里粗抽目的地,作为表单常量随提交一起带回。抽不到就回落 None。
chapter5/dynamic-form/demo.py:236
↓ 2 callersMethod_extract_image_to_text
Extract image to text description
chapter4/multimodal-agent/agent.py:676
↓ 2 callersFunction_extract_model_output
(sample_data)
chapter8/Intuitor/tests/test_empty_text_list.py:4
↓ 2 callersFunction_extract_slides_md
从模型回复里抽取 slides.md 内容(容忍 ```markdown 包裹)。
chapter5/paper-to-ppt/agents.py:198
↓ 2 callersMethod_extract_string_values
Recursively extract all string values from a nested data structure.
chapter9/harness-safety-gate/safety_policy_gate.py:181
↓ 2 callersMethod_extract_task_parameters
Extract parameters from task description for workflow. Args: task: Task description workflow: Workfl
chapter9/browser-use-rpa/learning_agent/agent.py:565
↓ 2 callersMethod_fail
(msg)
extras/agent-lab/agent-trajectory.js:310
↓ 2 callersFunction_failed_observation
( provider: Provider, exc: Exception, *, campaign_id: str, phase: str, cell_id: str,
chapter7/model-benchmark/campaign.py:576
↓ 2 callersFunction_fake_client
(arguments)
chapter5/conversational-ui/test_customize_non_dict_file_item.py:10
↓ 2 callersFunction_fake_client
(arguments)
chapter5/conversational-ui/test_customize_malformed_json.py:7
↓ 2 callersMethod_find_installed_browser_path
Try to find browser executable from common fallback locations. Prioritizes: 1. System Chrome Stable 1. Playwright chromium 2. Other system na
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/local_browser_watchdog.py:206
↓ 2 callersMethod_find_referencing_objects
Find objects that reference the target via a given relationship.
chapter5/permission-embedded-data-objects/pedo/core/store.py:521
↓ 2 callersFunction_fingerprint
(tool_name, args)
chapter9/harness-safety-gate/validation/real_20260807T160109Z/candidates/deterministic/confirmation_gate.py:24
↓ 2 callersFunction_fingerprint
(tool_name, args)
chapter9/harness-safety-gate/validation/real_20260807T160109Z/candidates/rejected_control/confirmation_gate.py:24
↓ 2 callersMethod_fingerprint
Generate a canonical SHA256 fingerprint for a tool call and its parameters.
chapter9/harness-safety-gate/safety_policy_gate.py:146
↓ 2 callersFunction_fmt
把可能为 None 的数值格式化为对齐的字符串。
chapter7/model-benchmark/demo.py:56
↓ 2 callersFunction_fmt
Format timestamp string
chapter9/browser-use-rpa/browser-use/examples/apps/news-use/news_monitor.py:217
↓ 2 callersFunction_footer
(passed, total)
chapter5/erp-agent/demo.py:207
↓ 2 callersFunction_format_image_url
Format image URL for display, truncating if necessary.
chapter9/browser-use-rpa/browser-use/browser_use/llm/messages.py:18
↓ 2 callersMethod_format_system_prompt_with_tools
Format the system prompt with available tools in Qwen3 format
chapter2/local_llm_serving/agent.py:39
↓ 2 callersMethod_format_todo_list
Format TODO list for display
chapter2/system-hint/agent.py:283
↓ 2 callersFunction_fragment
(index, *, call_id=None, name=None, arguments=None)
chapter2/local_llm_serving/test_vllm_structured_streaming.py:14
↓ 2 callersMethod_generate
(self)
chapter5/paper-to-ppt/agents.py:371
↓ 2 callersMethod_generate_default_tasks
Generate default benchmark tasks for each category
chapter3/memobase/locomo_benchmark.py:87
↓ 2 callersFunction_generate_llm_analysis
Asks the configured real LLM for a bounded analysis of direct evidence.
chapter7/android-world/run_controlled_experiment.py:835
↓ 2 callersMethod_generate_scratch_files
Generate a standalone Agent from scratch through resumable real calls.
chapter5/agent-creator/creator.py:815
↓ 2 callersMethod_generate_session_id
Generate a unique session ID
chapter3/user-memory/conversational_agent.py:145
↓ 2 callersMethod_generate_with_page_gate
(self)
chapter5/paper-to-ppt/agents.py:450
↓ 2 callersFunction_get_client
Build an OpenAI-compatible client (direct OpenAI, or OpenRouter fallback).
chapter4/collaboration-tools/src/subagent_tools.py:77
↓ 2 callersMethod_get_default_agent
Get the default agent configuration.
chapter9/browser-use-rpa/browser-use/browser_use/config.py:431
↓ 2 callersMethod_get_default_llm
Get the default LLM configuration.
chapter9/browser-use-rpa/browser-use/browser_use/config.py:418
↓ 2 callersMethod_get_default_profile
Get the default browser profile configuration.
chapter9/browser-use-rpa/browser-use/browser_use/config.py:405
↓ 2 callersMethod_get_file_type_class
Get the appropriate file class for an extension.
chapter9/browser-use-rpa/browser-use/browser_use/filesystem/file_system.py:201
↓ 2 callersMethod_get_llm
Get LLM instance based on configuration (OpenAI 直连,缺 Key 时 OpenRouter 兜底)。
chapter9/browser-use-rpa/demo_email.py:260
↓ 2 callersMethod_get_offline_retriever
Lazily build the in-process BM25 retriever over the local corpus.
chapter3/agentic-rag/tools.py:85
↓ 2 callersMethod_get_parent_branch_path
Get the parent branch path as a list of tag names from root to current element.
chapter9/browser-use-rpa/browser-use/browser_use/dom/views.py:782
↓ 2 callersMethod_get_system_hint
Get system hint content with current state
chapter2/system-hint/agent.py:301
↓ 2 callersMethod_get_timestamp
Get formatted timestamp
chapter6/agent-with-event-trigger/agent.py:461
↓ 2 callersMethod_get_tools_description
Get tool descriptions for the model
chapter2/context-compression/agent.py:145
↓ 2 callersMethod_get_usage
(self, response: ChatCompletion)
chapter9/browser-use-rpa/browser-use/browser_use/llm/groq/chat.py:87
↓ 2 callersFunction_git_revision
()
chapter1/learning-from-experience/run_experiment_8_2.py:40
↓ 2 callersMethod_handle_second_ctrl_c
Handle a second Ctrl+C press by performing cleanup and exiting. This is shared logic used by both sigint_handler and wait_for_resume.
chapter9/browser-use-rpa/browser-use/browser_use/utils.py:147
↓ 2 callersMethod_handle_tool
(self, name: str, args: dict)
chapter10/multi-role-transfer/skill_orchestrator.py:218
↓ 2 callersFunction_has_credential
(value: str)
chapter10/autonomous-phone-registration/run_acceptance.py:118
↓ 2 callersFunction_hash_is_valid
(value: Any)
chapter6/phone-agent/webrtc_app.py:173
↓ 2 callersFunction_header
(mode, today, employees, salaries, model=None)
chapter5/erp-agent/demo.py:198
↓ 2 callersFunction_http_call
( base: str, method: str, path: str, *, body: dict[str, Any] | None = None, timeout: f
chapter5/log-diagnosis/campaign.py:168
↓ 2 callersFunction_img_part
(path: str)
chapter5/video-edit/agents.py:81
↓ 2 callersFunction_indent
(text, n)
chapter5/paper-to-ppt/demo.py:180
↓ 2 callersMethod_index_contextual_chunks
Index contextual chunks in the retrieval pipeline
chapter3/contextual-retrieval-for-user-memory/contextual_indexer.py:197
↓ 2 callersMethod_index_documents
Index documents into the active backend (local BM25 or the external pipeline).
chapter3/agentic-rag-for-user-memory/indexer.py:293
↓ 2 callersMethod_index_documents
Send documents to the retrieval pipeline for indexing
chapter3/contextual-retrieval-for-user-memory/indexer.py:201
↓ 2 callersMethod_init_llm_client
Initialize the LLM client based on provider
chapter3/contextual-retrieval/agent.py:57
↓ 2 callersMethod_init_ollama
Initialize Ollama backend
chapter2/local_llm_serving/main.py:112
↓ 2 callersMethod_init_system_prompt
Initialize the system prompt for the conversation
chapter6/agent-with-event-trigger/agent.py:382
↓ 2 callersMethod_init_system_prompt
Initialize the system prompt for OpenAI co-founders research
chapter2/context-compression/agent.py:111
↓ 2 callersMethod_init_system_prompt
Initialize the system prompt for the conversation
chapter2/system-hint/agent.py:151
↓ 2 callersMethod_init_system_prompt
Initialize the system prompt for the conversation
chapter1/context/agent.py:442
↓ 2 callersMethod_init_system_prompt
Initialize the system prompt with memory context based on memory mode
chapter3/user-memory/agent.py:162
↓ 2 callersFunction_integration_diff
生成对稳定版调度器的最小接入 diff(仅作提案,不修改 stable/)。
chapter9/harness-safety-gate/evolution.py:285
↓ 2 callersMethod_is_auto_download_enabled
Check if auto-download PDFs is enabled in browser profile.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/downloads_watchdog.py:152
↓ 2 callersMethod_is_docker_available
Return whether both the Docker CLI and daemon are available.
chapter4/execution-tools/multilang_executor.py:294
↓ 2 callersMethod_is_interactive_cached
Cached version of clickable element detection to avoid redundant calls.
chapter9/browser-use-rpa/browser-use/browser_use/dom/serializer/serializer.py:407
↓ 2 callersMethod_is_propagating_element
Check if an element should propagate bounds based on attributes. If the element satisfies one of the patterns, it propagates bounds to all its ch
chapter9/browser-use-rpa/browser-use/browser_use/dom/serializer/serializer.py:714
↓ 2 callersFunction_is_reasoning_model
True for models that emit reasoning_content and only accept temperature=1. On the live Moonshot endpoint the whole current Kimi family reasons:
chapter2/kv-cache/agent.py:28
↓ 2 callersFunction_is_reasoning_model
Whether the model is a reasoning model (Kimi K3, GPT-5, ...).
chapter3/agentic-rag/agent.py:14
↓ 2 callersFunction_is_reuse
某条轨迹是否属于「工具复用」:调用了 search_tools、没有重新 web_search/create_tool, 且真的调用了某个已封装(非元)工具。
chapter9/self-evolving-tools/demo.py:57
↓ 2 callersMethod_is_root_domain
Check if a domain is a root domain (no subdomain present). Simple heuristic: only add www for domains with exactly 1 dot (domain.tld). For comple
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/security_watchdog.py:93
↓ 2 callersMethod_is_safe_path
Check if path is within workspace.
chapter4/execution-tools/file_tools.py:26
↓ 2 callersFunction_is_wide
Return True for glyphs that render roughly one full em wide (CJK, kana, circled numbers, geometric shapes, check marks, arrows, etc.).
book-en/svg_lib.py:86
↓ 2 callersFunction_is_wide
Return True for glyphs that render roughly one full em wide (CJK, kana, circled numbers, geometric shapes, check marks, arrows, etc.).
book-tr/svg_lib.py:86
↓ 2 callersFunction_is_wide
Return True for glyphs that render roughly one full em wide (CJK, kana, circled numbers, geometric shapes, check marks, arrows, etc.).
book-ar/svg_lib.py:90
↓ 2 callersFunction_is_wide
Return True for glyphs that render roughly one full em wide (CJK, kana, circled numbers, geometric shapes, check marks, arrows, etc.).
book-ru/svg_lib.py:86
↓ 2 callersFunction_is_wide
Return True for glyphs that render roughly one full em wide (CJK, kana, circled numbers, geometric shapes, check marks, arrows, etc.).
book-es/svg_lib.py:86
↓ 2 callersFunction_is_wide
Ойролцоогоор нэг бүтэн em өргөнтэй дүрслэгдэх тэмдэгтэд True буцаана (CJK, кана, дугуй доторх тоо, геометрийн дүрс, шалгах тэмдэг, сум гэх мэт).
book-mn/svg_lib.py:86
↓ 2 callersFunction_is_wide
Return True for glyphs that render roughly one full em wide (CJK, kana, circled numbers, geometric shapes, check marks, arrows, etc.).
book-id/svg_lib.py:86
↓ 2 callersFunction_isolated_graphrag_module
()
chapter3/structured-index/test_graphrag_search_top_k.py:59
↓ 2 callersFunction_item_get
(item: Any, key: str, default: Any = None)
chapter9/trajectory-verifier/verifier.py:435
↓ 2 callersMethod_json
(self, status: int, value: object)
chapter5/log-diagnosis/http_service.py:34
↓ 2 callersMethod_json
(self, status: int, value: object)
chapter5/log-diagnosis/validation/runs/exp5-8-live-http-mcp-20260730-053403/http_service.py:34
↓ 2 callersMethod_json
(self, status: int, value: object)
chapter5/log-diagnosis/validation/runs/exp5-8-live-http-mcp-20260730-053056/http_service.py:34
↓ 2 callersMethod_json
(self, payload: Any, status: int = 200)
chapter9/browser-use-rpa/local_mail_sandbox.py:108
↓ 2 callersFunction_json_object
(text: str)
chapter5/agent-creator/creator.py:132
↓ 2 callersFunction_jsonable
(value: Any)
chapter7/android-world/run_controlled_experiment.py:186
↓ 2 callersFunction_judge_mistral_audio
Send both MP3s to Mistral Voxtral using its native data-URL chunks.
chapter7/tts-quality-eval/pipeline.py:502
↓ 2 callersFunction_judge_response
(scores)
chapter6/controllable-tts/test_fish_s1.py:56
↓ 2 callersFunction_key
(*names: str)
chapter5/provider-failover/providers.py:80
↓ 2 callersMethod_layer_of
(self, test_id: str)
chapter3/user-memory-evaluation/comparison.py:100
↓ 2 callersFunction_load
(name)
chapter9/harness-safety-gate/test_evolution.py:23
↓ 2 callersFunction_load_battles
从 JSON 文件加载对战结果,返回带 model_a/model_b/winner 列的 DataFrame。
chapter7/elo-leaderboard/cli.py:46
↓ 2 callersFunction_load_checkpoint
(path: Path, identity: dict)
chapter5/small-model-codified-rules/demo.py:349
↓ 2 callersFunction_load_gate
在干净命名空间中加载候选模块(此前必须通过 AST 预筛)。
chapter9/harness-safety-gate/evolution.py:374
↓ 2 callersMethod_load_memories
(self)
chapter2/prompt-injection/agent.py:155
↓ 2 callersFunction_local_device
(torch: Any)
chapter8/prompt-distillation/run_experiment_8_8.py:355
↓ 2 callersMethod_log
(self, *a)
chapter9/self-evolving-tools/agent.py:246
↓ 2 callersMethod_log_agent_event
Sent the agent event for this run to telemetry
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:1287
↓ 2 callersMethod_log_first_step_startup
Log startup message only on the first step
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:1208
↓ 2 callersFunction_log_pretty_url
Truncate/pretty-print a URL with a maximum length, removing the protocol and www. prefix
chapter9/browser-use-rpa/browser-use/browser_use/utils.py:665
← previousnext →1,701–1,800 of 13,003, ranked by callers