Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bojieli/ai-agent-book
/ functions
Functions
13,003 in github.com/bojieli/ai-agent-book
⨍
Functions
13,003
◇
Types & classes
1,574
↳
Endpoints
161
Method
current_target_id
(self)
chapter9/browser-use-rpa/browser-use/browser_use/browser/session.py:1035
Method
custom_action
(params: CustomParams, browser_session)
chapter9/browser-use-rpa/browser-use/tests/ci/test_tools.py:123
Function
custom_pager
(msg, ctx)
tests/test_ch4_notification_dispatcher.py:170
Function
customize
让模型针对一条自然语言需求改写源码,返回 apply_edits 的参数 dict。 仅调用模型并解析工具参数,不落盘(写文件、验证在 demo.py 里做,便于展示 diff)。
chapter5/conversational-ui/agent.py:128
Function
cwe_summary
Return count of violation types per CWE category.
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/cwe_taxonomy.py:128
Function
cycle_diagram
Circular cycle diagram with arrows between nodes.
book-en/svg_lib.py:641
Function
cycle_diagram
Circular cycle diagram with arrows between nodes.
book-tr/svg_lib.py:641
Function
cycle_diagram
Circular cycle diagram with arrows between nodes.
book-ar/svg_lib.py:667
Function
cycle_diagram
Circular cycle diagram with arrows between nodes.
book-ru/svg_lib.py:641
Function
cycle_diagram
Circular cycle diagram with arrows between nodes.
book-es/svg_lib.py:641
Function
cycle_diagram
Зангилаа хооронд сумаар холбосон дугуй мөчлөгийн диаграм.
book-mn/svg_lib.py:642
Function
cycle_diagram
Circular cycle diagram with arrows between nodes.
book-id/svg_lib.py:641
Method
deco
(fn)
chapter4/perception-tools/src/test_search_web_num_results_zero.py:34
Method
deco
(fn)
chapter4/perception-tools/src/test_grep_max_results_zero.py:27
Method
deco
(fn)
chapter4/perception-tools/src/test_negative_max_length.py:23
Method
decode
(self, token_ids, skip_special_tokens=False)
chapter2/attention_visualization/test_token_labels.py:27
Method
decode
(self, ids, skip_special_tokens=False)
chapter2/attention_visualization/test_token_labels.py:64
Function
decorator
(func: Callable[P, R])
chapter9/browser-use-rpa/browser-use/browser_use/utils.py:331
Function
decorator
(func: F)
chapter9/browser-use-rpa/browser-use/browser_use/observability.py:68
Function
decorator
(func)
chapter3/dense-embedding/logger.py:65
Method
decorator
(func: Callable)
chapter9/browser-use-rpa/browser-use/browser_use/tools/registry/service.py:287
Function
default_api
( log_file: str | None = None, sampling_strategy: SamplingStrategy | None = None, request_router:
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:388
Function
default_api_from_args
(args: argparse.Namespace)
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:408
Function
default_quick_api
( log_file: str | None = None, sampling_strategy: SamplingStrategy | None = None, request_router:
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:414
Function
delete_document
Delete a document from all services.
chapter3/retrieval-pipeline/main.py:172
Function
delete_document
Delete a document from the index. This endpoint: 1. Removes the document from the document store 2. Removes the embedding from t
chapter3/dense-embedding/main.py:305
Method
delete_document
Delete a document from all services. Args: doc_id: Document ID to delete Returns: Deleti
chapter3/retrieval-pipeline/retrieval_pipeline.py:379
Method
delete_document
Delete a document from both services.
chapter3/retrieval-pipeline/retrieval_client.py:180
Method
delete_item
Delete an item from the index.
chapter3/dense-embedding/indexing.py:21
Method
delete_item
Delete an item from the index. Note: ANNOY doesn't support deletion, so we need to rebuild without the item.
chapter3/dense-embedding/indexing.py:109
Method
delete_memory
Delete a note
chapter3/user-memory/memory_manager.py:218
Method
delete_memory
Delete a memory card
chapter3/user-memory/memory_manager.py:474
Method
delete_memory
Delete a memory card
chapter3/user-memory/memory_manager.py:676
Method
delete_memory
Delete a single memory by id.
chapter3/mem0/agent.py:344
Function
demo_interrupt
()
chapter6/async-agent/async_demos.py:100
Function
demo_parallel
()
chapter6/async-agent/async_demos.py:64
Function
demo_state
()
chapter6/async-agent/async_demos.py:163
Function
deny_network
(*args, **kwargs)
chapter1/web-search-agent/tests/conftest.py:29
Method
depth
(node: ast.AST, level: int = 0)
chapter10/staged-system-prompt/tools.py:135
Function
descriptive_stats
给一组数值返回基本描述统计(均值/最大/最小/极差)。
chapter10/multi-role-transfer/tools.py:182
Function
diagnosis
()
scripts/book_figures/chapter5.py:80
Method
diamond
(self, cx, cy, w, h, fill='light', label=None, font_size=FS_SMALL)
book-en/svg_lib.py:482
Method
diamond
(self, cx, cy, w, h, fill='light', label=None, font_size=FS_SMALL)
book-tr/svg_lib.py:482
Method
diamond
(self, cx, cy, w, h, fill='light', label=None, font_size=FS_SMALL)
book-ar/svg_lib.py:508
Method
diamond
(self, cx, cy, w, h, fill='light', label=None, font_size=FS_SMALL)
book-ru/svg_lib.py:482
Method
diamond
(self, cx, cy, w, h, fill='light', label=None, font_size=FS_SMALL)
book-es/svg_lib.py:482
Method
diamond
(self, cx, cy, w, h, fill='light', label=None, font_size=FS_SMALL)
book-mn/svg_lib.py:483
Method
diamond
(self, cx, cy, w, h, fill='light', label=None, font_size=FS_SMALL)
book-id/svg_lib.py:482
Function
dict_model
(prompt, language="Spanish")
tests/test_ch7_evaluate_multilingual.py:85
Function
dict_model
(prompt, language="Spanish")
tests/test_ch8_evaluate_multilingual.py:85
Function
disable_cache
()
chapter2/prompt-engineering/tau_bench/model_utils/api/cache.py:35
Function
disco_mode
(browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/examples/custom-functions/action_filters.py:41
Method
disconnect
Disconnect from the MCP server and clean up resources.
chapter9/browser-use-rpa/browser-use/browser_use/mcp/controller.py:201
Function
discover_schema
自下而上发现因子并归并成模块化 schema。带磁盘缓存(避免重复花钱)。
chapter3/structured-knowledge-extraction/discovery.py:64
Function
discovery_batch
(cache: CachedCalls, rows: List[Dict[str, Any]], index: int)
chapter3/structured-knowledge-extraction/campaign.py:194
Function
dispatch
(event: Event)
chapter6/agent-with-event-trigger/event_loop_demo.py:220
Function
dispatch
直接执行注册的工具。 当前版本没有任何风险检查:高风险调用与读取文件一样被立即执行, 不存在确认 token 的概念。这就是失败轨迹归因出的缺陷。
chapter9/harness-safety-gate/stable/tool_dispatcher.py:115
Function
dispatch
(tool_name, args=None, *, execute, confirm_token=None)
chapter9/harness-safety-gate/validation/real_20260807T160109Z/candidates/real_llm/confirmation_gate.py:33
Function
dispatch
调度入口:低风险直接执行;高风险必须持有效一次性确认 token。 execute 由 Harness 注入,本模块不直接触碰任何真实工具。
chapter9/harness-safety-gate/validation/real_20260807T160109Z/candidates/deterministic/confirmation_gate.py:60
Function
dispatch
调度入口:低风险直接执行;高风险必须持有效一次性确认 token。 execute 由 Harness 注入,本模块不直接触碰任何真实工具。
chapter9/harness-safety-gate/validation/real_20260807T160109Z/candidates/rejected_control/confirmation_gate.py:61
Function
dispatch_and_wait
Standalone module-level function for dispatching and waiting. By default uses real channel adapters (which fail explicitly when unconfigured)
chapter4/collaboration-tools/src/notification_dispatcher.py:666
Function
display_memory_operations
Display memory operations from processing results Args: results: Processing results containing operations verbose: Wheth
chapter3/user-memory/memory_operation_formatter.py:94
Method
do_GET
(self)
chapter5/log-diagnosis/http_service.py:53
Method
do_GET
(self)
chapter5/log-diagnosis/validation/runs/exp5-8-live-http-mcp-20260730-053403/http_service.py:53
Method
do_GET
(self)
chapter5/log-diagnosis/validation/runs/exp5-8-live-http-mcp-20260730-053056/http_service.py:53
Method
do_GET
(self)
chapter9/browser-use-rpa/local_mail_sandbox.py:116
Method
do_GET
(self)
chapter10/autonomous-phone-registration/webrtc_channel.py:485
Method
do_GET
(self)
chapter10/autonomous-phone-registration/run_acceptance.py:67
Method
do_GET
(self)
chapter1/context/vis_validation.py:212
Method
do_POST
(self)
chapter5/log-diagnosis/http_service.py:74
Method
do_POST
(self)
chapter5/log-diagnosis/validation/runs/exp5-8-live-http-mcp-20260730-053403/http_service.py:74
Method
do_POST
(self)
chapter5/log-diagnosis/validation/runs/exp5-8-live-http-mcp-20260730-053056/http_service.py:74
Method
do_POST
(self)
chapter9/browser-use-rpa/local_mail_sandbox.py:130
Method
do_POST
(self)
chapter10/autonomous-phone-registration/run_acceptance.py:78
Function
document_reader
Read document content.
chapter4/perception-tools/src/main.py:149
Function
docx_extract
Extract content from DOCX.
chapter4/perception-tools/src/main.py:467
Method
dom_service
Get the DOM service for this target.
chapter9/browser-use-rpa/browser-use/browser_use/actor/page.py:361
Function
done
(text: str)
chapter9/browser-use-rpa/browser-use/examples/custom-functions/notification.py:17
Method
down
Press mouse button down.
chapter9/browser-use-rpa/browser-use/browser_use/actor/mouse.py:49
Function
download
Download a file from URL.
chapter4/perception-tools/src/main.py:114
Method
download_progress_handler
(event: DownloadProgressEvent, session_id: SessionID | None)
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/downloads_watchdog.py:180
Function
download_upload_server
Create a test HTTP server with download and upload endpoints.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_downloads_upload_full_circle.py:21
Method
download_will_begin_handler
(event: DownloadWillBeginEvent, session_id: SessionID | None)
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/downloads_watchdog.py:160
Method
downloaded_files
Get list of files downloaded during this browser session. Returns: list[str]: List of absolute file paths to downloaded files in this session
chapter9/browser-use-rpa/browser-use/browser_use/browser/session.py:1796
Method
drag_to
Drag this element to another element or position.
chapter9/browser-use-rpa/browser-use/browser_use/actor/element.py:587
Method
drain_reactions
Wait for all queued reactions to complete.
chapter5/permission-embedded-data-objects/pedo/core/store.py:130
Function
draw_bounding_box_with_text
Draw a bounding box with optional text overlay.
chapter9/browser-use-rpa/browser-use/browser_use/browser/python_highlights.py:234
Function
draw_procedural_plant
程序化绘制一盆绿植:花盆 + 茎 + 叶(椭圆)。确定性输出。
chapter5/cad-vs-diffusion/control_plant.py:25
Function
drive_frontend
( storage: Path, sim_code: str, starting_step: int, steps: int, failures: "queue.Queue[Bas
chapter10/generative-agents/run_campaign.py:287
Method
duration_seconds
Calculate step duration in seconds
chapter9/browser-use-rpa/browser-use/browser_use/agent/views.py:137
Function
ecommerce_pedo_run
()
chapter5/permission-embedded-data-objects/pedo/eval/case_studies.py:235
Function
ecommerce_raw_run
()
chapter5/permission-embedded-data-objects/pedo/eval/case_studies.py:303
Function
edge
(name, drawing)
web-astro/scripts/evaluation-layout-kit.mjs:6
Function
editing
()
scripts/book_figures/chapter5.py:52
Function
elementIndex
(k)
web-astro/scripts/computer-use-layout.mjs:157
Method
element_hash
(self)
chapter9/browser-use-rpa/browser-use/browser_use/dom/views.py:744
Function
elo
()
scripts/book_figures/chapter7.py:77
Method
embed
(self, texts)
chapter7/user-memory-system-evaluation/test_experiment.py:33
Method
embed
(self, texts: List[str])
chapter4/active-tool-discovery/offline_backend.py:53
Function
embedding_create
(**kwargs: Any)
chapter10/generative-agents/provider_adapter.py:221
← previous
next →
8,701–8,800 of 13,003, ranked by callers