MCPcopy Create free account

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

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

Functionis_unsafe_pattern
Check if a domain pattern has complex wildcards that could match too many domains. Args: pattern: The domain pattern to check Returns: bool:
chapter9/browser-use-rpa/browser-use/browser_use/utils.py:401
Methodis_voice_active
Check if incoming audio chunk exceeds the VAD energy threshold.
chapter6/streaming-speech/interruption_manager.py:206
Functionisolate_provider_environment
Keep developer credentials and provider overrides out of every test.
chapter1/web-search-agent/tests/conftest.py:19
Functionissue_confirmation
(tool_name, args=None)
chapter9/harness-safety-gate/validation/real_20260807T160109Z/candidates/real_llm/confirmation_gate.py:27
Functionissue_confirmation
为一次具体操作签发一次性确认 token(绑定工具名与完整参数)。
chapter9/harness-safety-gate/validation/real_20260807T160109Z/candidates/deterministic/confirmation_gate.py:52
Functionissue_confirmation
为一次具体操作签发一次性确认 token(绑定工具名与完整参数)。
chapter9/harness-safety-gate/validation/real_20260807T160109Z/candidates/rejected_control/confirmation_gate.py:53
Methodjson
(self)
chapter4/perception-tools/test_xquik_tools.py:31
Functionjson_default
(value: Any)
chapter1/learning-from-experience/run_experiment_8_2.py:54
Functionjudge
``partial`` 是切断时手上那一截,``result`` 是恢复请求的产物。 ``executed_fingerprint`` 是断点之前已经真的执行过的那次调用,恢复时再调一次 就是重复副作用。
chapter5/provider-failover/judging.py:19
Functionjudge
()
scripts/book_figures/chapter7.py:62
Functionjudge
(batch_rules, texts)
chapter9/ai-style-skill/test_pipeline.py:158
Functionjudge
(rules: List[Dict[str, Any]], texts: List[Dict[str, str]])
chapter9/ai-style-skill/judge.py:51
Functionjudge_gemini_audio
让 Gemini 同时听合成音频与参考音频,执行正文四维 Rubric。 默认关闭;--gemini 开启。依次尝试已配置的 Google Gemini、OpenRouter 与 Mistral Voxtral,失败抛异常由上层记为失败。
chapter7/tts-quality-eval/pipeline.py:676
Methodjudge_live_completion
Judge task completion, not merely a successful process exit.
chapter5/agent-creator/creator.py:1168
Functionjudge_one
(cache: CachedCalls, result: Dict[str, Any], index: int)
chapter3/structured-knowledge-extraction/campaign.py:490
Functionjudge_plants
Kimi 视觉模型对两张图打自然度分,返回解析后的评审记录。
chapter5/cad-vs-diffusion/control_plant.py:84
Functionjudge_rubric
用评审模型(默认 gpt-5.6-luna)按 Rubric 打分。返回结构化分数 + 点评。 评审 chat 调用支持 OpenRouter 回退(见 get_judge_client_and_model)。
chapter7/tts-quality-eval/pipeline.py:403
Functionkimi_chat
(messages, book: ReceiptBook, name: str, model: str = CODEGEN_MODEL, max_tokens: int = 8192, tem
chapter5/cad-vs-diffusion/llm.py:36
Functionknowledge_base_search
Search local knowledge base.
chapter4/perception-tools/src/main.py:125
Functionlabel
(ids, x, y, width, h, opts = {})
web-astro/scripts/evaluation-layout-kit.mjs:25
Functionlabel
( value, x, y, width, h, { size = 16, bold = false, mono = false,
web-astro/scripts/chapter3-figure-kit.mjs:112
Functionlabel
(id, x, y, width, height, options)
web-astro/scripts/coding-production-layout.mjs:651
Methodlast_action
Last action in history
chapter9/browser-use-rpa/browser-use/browser_use/agent/views.py:465
Functionlayer_diagram
Stacked horizontal layers (top = first layer).
book-en/svg_lib.py:609
Functionlayer_diagram
Stacked horizontal layers (top = first layer).
book-tr/svg_lib.py:609
Functionlayer_diagram
Stacked horizontal layers (top = first layer).
book-ar/svg_lib.py:635
Functionlayer_diagram
Stacked horizontal layers (top = first layer).
book-ru/svg_lib.py:609
Functionlayer_diagram
Stacked horizontal layers (top = first layer).
book-es/svg_lib.py:609
Functionlayer_diagram
Хэвтээ давхаргуудыг дээрээс доош давхарлана (эхнийх нь дээр).
book-mn/svg_lib.py:610
Functionlayer_diagram
Stacked horizontal layers (top = first layer).
book-id/svg_lib.py:609
FunctionlayoutTrajectory
(source, { rtl = false } = {})
web-astro/scripts/trajectory-figure.mjs:3
Functionlifespan
Lifespan context manager for startup and shutdown
chapter6/agent-with-event-trigger/server_fastapi.py:67
Functionlifespan
Lifespan context manager for startup and shutdown
chapter6/agent-with-event-trigger/server.py:68
Functionlifespan
Lifespan context manager for startup and shutdown events.
chapter3/retrieval-pipeline/main.py:31
Functionlifespan
Manage application lifecycle.
chapter3/dense-embedding/main.py:92
Functionlist_documents
List indexed documents.
chapter3/retrieval-pipeline/main.py:199
Functionlist_documents
List documents in the store.
chapter3/dense-embedding/main.py:360
Methodlisten
(self, *, timeout: float = 45.0)
chapter10/autonomous-phone-registration/twilio_channel.py:123
Methodlisten
(self, *, timeout=30)
chapter10/autonomous-phone-registration/test_orchestration.py:124
Methodlisten
(self, *, timeout: float = 30.0)
chapter10/autonomous-phone-registration/voice.py:67
Methodlisten
(self, *, timeout: float = 30.0)
chapter10/autonomous-phone-registration/voice.py:143
Functionllm
Create mocked LLM instance for tests.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_output_paths.py:45
Methodllm_representation
Token friendly representation of the node, used in the LLM
chapter9/browser-use-rpa/browser-use/browser_use/dom/views.py:514
Functionload
()
chapter4/perception-tools/src/expanded_catalog.py:560
Methodload_chunks
Load chunks from a JSON file Args: filepath: Path to the chunks file Returns: L
chapter3/agentic-rag-for-user-memory/chunker.py:312
Methodload_chunks
Load chunks from a JSON file Args: filepath: Path to the chunks file Returns: L
chapter3/contextual-retrieval-for-user-memory/chunker.py:312
Functionload_data
()
chapter2/prompt-engineering/tau_bench/envs/retail/data/__init__.py:10
Functionload_data
()
chapter2/prompt-engineering/tau_bench/envs/airline/data/__init__.py:10
Functionload_from_disk
(path: str)
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:291
Methodload_index
Load the index from disk
chapter3/contextual-retrieval-for-user-memory/contextual_indexer.py:603
Methodload_memory
Load notes from storage
chapter3/user-memory/memory_manager.py:127
Methodload_memory
Load JSON memory cards from storage
chapter3/user-memory/memory_manager.py:372
Methodload_memory
Load advanced JSON memory cards from storage
chapter3/user-memory/memory_manager.py:554
Methodload_memory
(self)
chapter3/user-memory/test_session_scoped_history.py:18
Functionload_mesh
加载 STL/GLB/OBJ,Scene 合并为单一 Trimesh。
chapter5/cad-vs-diffusion/measure.py:20
Functionload_model
()
chapter3/structured-knowledge-extraction/archetypes.py:196
Methodload_state
Load agent state from file.
chapter3/mem0/agent.py:505
Methodloader
(key)
chapter7/model-action-threshold/tasks/cache_contract/repo/tests/test_cache.py:11
Functionlocation_search
Search locations (geocoding).
chapter4/perception-tools/src/main.py:284
FunctionlogForLevel
(self, message, *args, **kwargs)
chapter9/browser-use-rpa/browser-use/browser_use/logging_config.py:51
FunctionlogToRoot
(message, *args, **kwargs)
chapter9/browser-use-rpa/browser-use/browser_use/logging_config.py:55
Functionlog_agent_action
Reaction: log every operation traceable to an agent role.
chapter5/permission-embedded-data-objects/pedo/scenarios/enterprise_agents.py:66
Functionlog_call
(func)
chapter2/prompt-engineering/tau_bench/model_utils/api/logging.py:43
Methodlog_event
(event)
chapter9/browser-use-rpa/browser-use/browser_use/cli.py:773
Functionlog_execution_time
Decorator to log function execution time for educational purposes. Args: logger: Logger instance to use
chapter3/dense-embedding/logger.py:58
Methodlog_index_build
Log index building process.
chapter3/dense-embedding/logger.py:153
Methodlog_message
(self, fmt: str, *args: object)
chapter5/log-diagnosis/http_service.py:21
Methodlog_message
(self, fmt: str, *args: object)
chapter5/log-diagnosis/validation/runs/exp5-8-live-http-mcp-20260730-053403/http_service.py:21
Methodlog_message
(self, fmt: str, *args: object)
chapter5/log-diagnosis/validation/runs/exp5-8-live-http-mcp-20260730-053056/http_service.py:21
Methodlog_message
(self, _format: str, *_args: Any)
chapter9/browser-use-rpa/local_mail_sandbox.py:105
Methodlog_message
(self, _format, *_args)
chapter10/autonomous-phone-registration/webrtc_channel.py:497
Methodlog_message
(self, _format, *_args)
chapter10/autonomous-phone-registration/run_acceptance.py:98
Methodlog_message
(self, fmt, *args)
chapter1/context/vis_validation.py:223
Functionlog_moderation
Reaction: log every moderator-driven change (lock, delete) to a moderation_log so the community can audit moderator actions.
chapter5/permission-embedded-data-objects/pedo/scenarios/forum.py:57
Functionlog_task_change
Log task status changes.
chapter5/permission-embedded-data-objects/pedo/scenarios/project_mgmt.py:105
Methodlogger
Get instance-specific logger with session ID in the name
chapter9/browser-use-rpa/browser-use/browser_use/browser/session.py:366
Methodlogger
Get the logger from the browser session.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdog_base.py:50
Methodlogger
Get logger for this chat instance
chapter9/browser-use-rpa/browser-use/browser_use/llm/google/chat.py:98
Methodlogger
Get instance-specific logger with task ID in the name
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:462
Functionmain
Main demo function
chapter2/local_llm_serving/demo_streaming.py:196
Functionmain
Demo the sample tasks
chapter1/context/tests/manual/show_sample_tasks.py:16
Functionmake
生成测试视频,返回路径。幂等:每次覆盖,保证从干净状态开始。
chapter5/video-edit/make_test_video.py:35
Functionmake_client_and_model
构造 OpenAI 兼容 client 并返回 (client, 实际调用的模型名)。 回退策略(universal OpenRouter fallback): - gpt-5.x 且存在 OPENROUTER_API_KEY -> 优先走 OpenRouter(直连需组织实名
chapter7/agent-cost-analysis/config.py:46
Functionmake_hiring_agentspec_store
(dsn: str)
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/agentspec_wrap.py:243
Functionmake_image_transfer_sqlite
()
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:461
Functionmake_pm_agentspec_store
(dsn: str)
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/agentspec_wrap.py:250
Functionmake_secret_storage_sqlite
()
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:42
Functionmake_shopping_cart_sqlite
()
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:333
Methodmake_unique_handler
(actual_handler)
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdog_base.py:86
Functionmake_user_creation_sqlite
()
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:213
Functionmap_inline
(fn, chunks)
chapter7/elo-leaderboard/tests/test_filter_data_parallel_small.py:12
Methodmark_closed
(self)
chapter10/parallel-web-research/test_coordination.py:132
Methodmcp_action_wrapper
Wrapper function that calls the MCP tool.
chapter9/browser-use-rpa/browser-use/browser_use/mcp/client.py:307
Methodmcp_action_wrapper
Wrapper function that calls the MCP tool.
chapter9/browser-use-rpa/browser-use/browser_use/mcp/controller.py:135
Functionmcp_browser_execute_task
Execute a browser task using autonomous AI agent.
chapter4/collaboration-tools/src/main.py:119
Functionmcp_browser_get_content
Get content from the current page.
chapter4/collaboration-tools/src/main.py:110
Functionmcp_browser_list_tabs
List all open browser tabs.
chapter4/collaboration-tools/src/main.py:138
Functionmcp_browser_navigate
Navigate to a URL in the browser.
chapter4/collaboration-tools/src/main.py:100
Functionmcp_browser_screenshot
Take a screenshot of the current page.
chapter4/collaboration-tools/src/main.py:129
Functionmcp_cancel_subagent
Cancel a sub-agent.
chapter4/collaboration-tools/src/main.py:517
← previousnext →9,301–9,400 of 13,003, ranked by callers