MCPcopy Create free account

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

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

↓ 1 callersMethod_initialize_tasks
Initialize benchmark tasks
chapter3/memobase/locomo_benchmark.py:66
↓ 1 callersMethod_initialize_world
Create the game world with rooms and items - simplified for better learning.
chapter1/learning-from-experience/game_environment.py:93
↓ 1 callersMethod_input_text_element_node_impl
Input text into an element using pure CDP with improved focus fallbacks.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/default_action_watchdog.py:994
↓ 1 callersFunction_inside_root
(root: Path, path: Path)
chapter4/perception-tools/src/filesystem_tools.py:79
↓ 1 callersMethod_install_browser_with_playwright
Get browser executable path from playwright in a subprocess to avoid thread issues.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/local_browser_watchdog.py:312
↓ 1 callersFunction_install_clipper_timing_compatibility
Retries the unchanged clipboard operation after a foreground race.
chapter7/android-world/run_controlled_experiment.py:460
↓ 1 callersFunction_install_retro_queue_evaluator_compatibility
Lets the official queue equality predicate score a known absent schema.
chapter7/android-world/run_controlled_experiment.py:547
↓ 1 callersFunction_install_sms_inbox_timing_compatibility
Waits for an emulator-injected SMS to appear before upstream indexes it.
chapter7/android-world/run_controlled_experiment.py:489
↓ 1 callersFunction_install_uiautomator_evaluator_compatibility
Keeps the official contact-draft predicate usable without a gRPC forest.
chapter7/android-world/run_controlled_experiment.py:386
↓ 1 callersFunction_invoke
(tool: Tool, kwargs: dict)
chapter4/perception-tools/cli.py:242
↓ 1 callersMethod_invoke_model
Call model using appropriate signature (generate, predict, or call).
chapter8/MultilingualReasoning/evaluate_multilingual.py:378
↓ 1 callersMethod_invoke_regular_completion
Handle regular completion without structured output.
chapter9/browser-use-rpa/browser-use/browser_use/llm/groq/chat.py:149
↓ 1 callersMethod_invoke_structured_output
Handle structured output using either tool calling or JSON schema.
chapter9/browser-use-rpa/browser-use/browser_use/llm/groq/chat.py:165
↓ 1 callersMethod_invoke_with_json_schema
Handle structured output using JSON schema.
chapter9/browser-use-rpa/browser-use/browser_use/llm/groq/chat.py:212
↓ 1 callersMethod_invoke_with_tool_calling
Handle structured output using tool calling.
chapter9/browser-use-rpa/browser-use/browser_use/llm/groq/chat.py:189
↓ 1 callersFunction_is_adversarial
Prompt IDs follow `scenario.category.NN`, so the category sits in the second field. An ID that does not carry one counts as adversarial, which
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/metrics.py:35
↓ 1 callersMethod_is_base64
Check if string is base64 encoded.
chapter4/execution-tools/multilang_executor.py:284
↓ 1 callersMethod_is_base64_image
Check if the URL is a base64 encoded image.
chapter9/browser-use-rpa/browser-use/browser_use/llm/anthropic/serializer.py:31
↓ 1 callersMethod_is_base64_image
Check if the URL is a base64 encoded image.
chapter9/browser-use-rpa/browser-use/browser_use/llm/aws/serializer.py:22
↓ 1 callersMethod_is_cache_valid
Check if a specific cache file is valid and not expired
chapter9/browser-use-rpa/browser-use/browser_use/tokens/service.py:109
↓ 1 callersMethod_is_chrome_pdf_viewer_url
Check if this is Chrome's internal PDF viewer URL.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/downloads_watchdog.py:692
↓ 1 callersMethod_is_contained
Check if child is contained within parent bounds. Args: threshold: Percentage (0.0-1.0) of child that must be within parent
chapter9/browser-use-rpa/browser-use/browser_use/dom/serializer/serializer.py:686
↓ 1 callersFunction_is_excluded
(path: Path)
tests/test_no_bare_except.py:29
↓ 1 callersMethod_is_idle
(self)
chapter6/async-agent/runtime.py:188
↓ 1 callersMethod_is_new_tab_page
Check if URL is a new tab page.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/crash_watchdog.py:360
↓ 1 callersFunction_is_reasoning_model
gpt-5.x / o1·o3·o4 / kimi-k3 / *reasoner 等推理模型:不接受 temperature=0, 直连 gpt-5.x 还需组织实名且工具调用受限,故优先走 OpenRouter。
chapter9/prompt-auto-optimization/config.py:86
↓ 1 callersMethod_is_url_image
Check if the URL is a regular HTTP/HTTPS image URL.
chapter9/browser-use-rpa/browser-use/browser_use/llm/aws/serializer.py:27
↓ 1 callersMethod_is_url_match
Check if a URL matches a pattern.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/security_watchdog.py:174
↓ 1 callersMethod_iter_files
(self)
chapter3/agentic-rag/offline_retriever.py:74
↓ 1 callersFunction_json
(thought: str, tool: str, arguments: Dict)
chapter4/active-tool-discovery/offline_backend.py:142
↓ 1 callersFunction_json_object
(text: str)
chapter5/video-edit/campaign.py:123
↓ 1 callersFunction_json_object
(text: str)
chapter5/log-diagnosis/campaign.py:103
↓ 1 callersFunction_json_object
(text: str)
chapter6/phone-agent/agent.py:119
↓ 1 callersFunction_json_object
(text: str)
chapter9/trajectory-verifier/llm_judge.py:18
↓ 1 callersMethod_json_schema_to_python_type
Convert JSON Schema type to Python type. Args: schema: JSON Schema definition model_name: Name for nested models Returns: Python type c
chapter9/browser-use-rpa/browser-use/browser_use/mcp/client.py:445
↓ 1 callersMethod_json_schema_to_python_type
Convert JSON Schema type to Python type. Args: schema: JSON Schema definition Returns: Python type corresponding to the schema
chapter9/browser-use-rpa/browser-use/browser_use/mcp/controller.py:208
↓ 1 callersMethod_json_snapshot
Detach an API evidence object from later in-memory mutations.
chapter1/context/agent.py:568
↓ 1 callersFunction_jsonable
(value: Any)
chapter9/prompt-auto-optimization/config.py:59
↓ 1 callersFunction_jsonable
(value: Any)
chapter9/browser-use-rpa/run_experiment_9_5.py:46
↓ 1 callersFunction_jsonable
(value: Any)
chapter10/staged-system-prompt/evidence.py:12
↓ 1 callersFunction_judge_handled
LLM-as-judge:Agent 没转接的情况下,是否按 rubric 妥善处理了请求。
chapter9/prompt-auto-optimization/evaluate.py:17
↓ 1 callersFunction_judge_once
Ask the judge which slot is better; returns 'first', 'second' or 'tie'.
chapter7/elo-leaderboard/llm_judge.py:193
↓ 1 callersFunction_judge_openrouter_audio
Send both audio clips to an audio-capable Gemini route on OpenRouter.
chapter7/tts-quality-eval/pipeline.py:586
↓ 1 callersMethod_keep_session_alive
Keep the MCP session alive.
chapter9/browser-use-rpa/browser-use/browser_use/mcp/controller.py:82
↓ 1 callersFunction_kimi
(trace: Trace, arm: str, tools: list[dict], model: str, system: str | None)
chapter5/provider-failover/renderers.py:53
↓ 1 callersFunction_kimi_assistant
(step, arm: str, ids: dict, i: int)
chapter5/provider-failover/renderers.py:69
↓ 1 callersFunction_knowledge
(name: str, query: str, options: dict[str, Any])
chapter4/perception-tools/src/expanded_catalog.py:892
↓ 1 callersMethod_known_backend_error
(self, component: str, name: str)
chapter7/user-memory-system-evaluation/experiment.py:861
↓ 1 callersFunction_latest_salary
(emp_id, salaries)
chapter5/erp-agent/reference.py:24
↓ 1 callersMethod_launch_browser
Launch browser process and return (process, cdp_url). Handles launch errors by falling back to temporary directories if needed. Returns: Tupl
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/local_browser_watchdog.py:91
↓ 1 callersFunction_leading_article
抽取分块开头的法条编号(如『第二百三十五条』),无则返回空串。
chapter3/agentic-rag/compare_offline.py:28
↓ 1 callersMethod_length_stats
(token_counts: list[int])
chapter8/cot-distillation/sft_data_auditor.py:607
↓ 1 callersMethod_list_sessions
List all active browser sessions.
chapter9/browser-use-rpa/browser-use/browser_use/mcp/server.py:926
↓ 1 callersMethod_list_tabs
List all open tabs.
chapter9/browser-use-rpa/browser-use/browser_use/mcp/server.py:875
↓ 1 callersMethod_listkey_poll_url
Convert an asynchronous PUG REST request into its ListKey poll URL.
chapter4/perception-tools/src/pubchem_tools.py:77
↓ 1 callersFunction_live_arm
Build a minimal summarised arm for the analysis-level tests.
chapter1/context/test_experiment_1_1.py:128
↓ 1 callersFunction_live_usage
(validation: dict[str, Any])
chapter5/agent-creator/creator.py:1516
↓ 1 callersFunction_llm_call
( backend: Backend, messages: list[dict[str, str]], purpose: str, receipts: list[dict[str, Any
chapter5/log-diagnosis/campaign.py:113
↓ 1 callersFunction_llm_receipt_is_real
(receipt: dict[str, Any])
chapter6/phone-agent/webrtc_app.py:181
↓ 1 callersFunction_llm_reply
走真实 LLM 生成回复,复用 agent.py 同款 OPENAI_* 配置。 任何异常都降级为清晰的提示(绝不编造回复),保证前端不至于白屏。
chapter5/conversational-ui/backend/main.py:56
↓ 1 callersFunction_llm_reply
走真实 LLM 生成回复,复用 agent.py 同款 OPENAI_* 配置。 任何异常都降级为清晰的提示(绝不编造回复),保证前端不至于白屏。
chapter5/conversational-ui/validation/runs/20260729T212616Z-5_11-hmr/app/backend/main.py:56
↓ 1 callersFunction_llm_reply
走真实 LLM 生成回复,复用 agent.py 同款 OPENAI_* 配置。 任何异常都降级为清晰的提示(绝不编造回复),保证前端不至于白屏。
chapter5/conversational-ui/validation/runs/20260729T212933Z-5_11-hmr/app/backend/main.py:56
↓ 1 callersFunction_llm_reply
走真实 LLM 生成回复,复用 agent.py 同款 OPENAI_* 配置。 任何异常都降级为清晰的提示(绝不编造回复),保证前端不至于白屏。
chapter5/conversational-ui/validation/runs/20260729T212727Z-5_11-hmr/app/backend/main.py:56
↓ 1 callersFunction_load
(path: Path)
chapter7/android-world/merge_candidate_shards.py:40
↓ 1 callersMethod_load
(src)
extras/agent-lab/agent-trajectory.js:298
↓ 1 callersFunction_load_active_rules
()
chapter9/ai-style-skill/rewrite_demo.py:59
↓ 1 callersFunction_load_add_messages
Resolve the --text argument for a memory add operation. If it points to an existing JSON file, load it (expects a message list or a string);
chapter3/mem0/main.py:230
↓ 1 callersFunction_load_agent_module
()
chapter6/agent-with-event-trigger/tests/test_code_interpreter.py:11
↓ 1 callersFunction_load_android_env
Loads an upstream environment, selecting UIAutomator without editing upstream.
chapter7/android-world/run_controlled_experiment.py:607
↓ 1 callersFunction_load_complete_json
(path: Path, failures: "queue.Queue[BaseException]")
chapter10/generative-agents/run_campaign.py:275
↓ 1 callersMethod_load_config
Load configuration with env var overrides for MCP components.
chapter9/browser-use-rpa/browser-use/browser_use/config.py:444
↓ 1 callersMethod_load_content
Load text content from path if existing file, else return as string.
chapter10/book-translation/consistency_auditor.py:149
↓ 1 callersFunction_load_dotenv
(path=".env")
chapter5/code-for-logic/demo.py:44
↓ 1 callersMethod_load_from_cache
Load pricing data from a specific cache file
chapter9/browser-use-rpa/browser-use/browser_use/tokens/service.py:125
↓ 1 callersFunction_load_hook
()
tests/test_split_search_index.py:10
↓ 1 callersMethod_load_indexes
Load BM25 indexes from disk
chapter3/contextual-retrieval/contextual_tools.py:587
↓ 1 callersFunction_load_json
(path: Path)
chapter5/agent-creator/reference_agent/agent.py:22
↓ 1 callersFunction_load_json
(path: Path)
chapter10/autonomous-phone-registration/validate_acceptance.py:53
↓ 1 callersMethod_load_memories
Load memories from persistent storage
chapter3/memobase/agent.py:108
↓ 1 callersMethod_load_or_build
(self)
chapter4/active-tool-discovery/discovery.py:78
↓ 1 callersMethod_load_pricing_data
Load pricing data from cache or fetch from GitHub
chapter9/browser-use-rpa/browser-use/browser_use/tokens/service.py:69
↓ 1 callersMethod_load_prompt_template
Load the prompt template from the markdown file.
chapter9/browser-use-rpa/browser-use/browser_use/agent/prompts.py:42
↓ 1 callersMethod_load_real_adapters
Loads real channel adapter functions from notification_tools. Returns a dict mapping channel name to the async send callable. If noti
chapter4/collaboration-tools/src/notification_dispatcher.py:133
↓ 1 callersMethod_load_single_test_case
Load a single test case from a YAML file.
chapter3/user-memory-evaluation/framework.py:66
↓ 1 callersMethod_load_single_test_case
Load a single test case from YAML file
chapter3/agentic-rag-for-user-memory/evaluator.py:194
↓ 1 callersMethod_load_single_test_case
Load a single test case from YAML file
chapter3/contextual-retrieval-for-user-memory/evaluator.py:194
↓ 1 callersFunction_load_stable_dispatcher
按路径加载稳定版调度器,避免依赖包结构。
chapter9/harness-safety-gate/evolution.py:53
↓ 1 callersMethod_load_storage_state
Load browser storage state from file.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/storage_state_watchdog.py:230
↓ 1 callersMethod_load_system_prompt
Load system prompt from system-prompt.md
chapter5/coding-agent/agent.py:70
↓ 1 callersMethod_load_system_prompt
Load system prompt from system-prompt.md
chapter5/coding-agent/agent_new.py:57
↓ 1 callersMethod_load_tasks_from_file
Load tasks from JSON file
chapter3/memobase/locomo_benchmark.py:75
↓ 1 callersFunction_load_test_case
在 test_cases_dir 下按 test_id 查找并加载 YAML 用例。
chapter3/agentic-rag-for-user-memory/offline_demo.py:57
↓ 1 callersMethod_load_test_cases
Load all test cases from YAML files.
chapter3/user-memory-evaluation/framework.py:38
↓ 1 callersFunction_load_timers
Load timer state from storage.
chapter4/collaboration-tools/src/timer_tools.py:419
↓ 1 callersMethod_load_tools
Load tool definitions from tools.json
chapter5/coding-agent/agent.py:63
↓ 1 callersMethod_load_tools
Load tool definitions from tools.json
chapter5/coding-agent/agent_new.py:50
↓ 1 callersMethod_log_agent_run
Log the agent run
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:1194
↓ 1 callersFunction_log_get_message_emoji
Get emoji for a message type - used only for logging display
chapter9/browser-use-rpa/browser-use/browser_use/agent/message_manager/service.py:36
↓ 1 callersMethod_log_glob_warning
Log a warning about glob patterns in allowed_domains.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/security_watchdog.py:111
↓ 1 callersMethod_log_history_lines
Generate a formatted log string of message history for debugging / printing to terminal
chapter9/browser-use-rpa/browser-use/browser_use/agent/message_manager/service.py:321
← previousnext →3,501–3,600 of 13,003, ranked by callers