MCPcopy Create free account

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

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

Methodcurrent_target_id
(self)
chapter9/browser-use-rpa/browser-use/browser_use/browser/session.py:1035
Methodcustom_action
(params: CustomParams, browser_session)
chapter9/browser-use-rpa/browser-use/tests/ci/test_tools.py:123
Functioncustom_pager
(msg, ctx)
tests/test_ch4_notification_dispatcher.py:170
Functioncustomize
让模型针对一条自然语言需求改写源码,返回 apply_edits 的参数 dict。 仅调用模型并解析工具参数,不落盘(写文件、验证在 demo.py 里做,便于展示 diff)。
chapter5/conversational-ui/agent.py:128
Functioncwe_summary
Return count of violation types per CWE category.
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/cwe_taxonomy.py:128
Functioncycle_diagram
Circular cycle diagram with arrows between nodes.
book-en/svg_lib.py:641
Functioncycle_diagram
Circular cycle diagram with arrows between nodes.
book-tr/svg_lib.py:641
Functioncycle_diagram
Circular cycle diagram with arrows between nodes.
book-ar/svg_lib.py:667
Functioncycle_diagram
Circular cycle diagram with arrows between nodes.
book-ru/svg_lib.py:641
Functioncycle_diagram
Circular cycle diagram with arrows between nodes.
book-es/svg_lib.py:641
Functioncycle_diagram
Зангилаа хооронд сумаар холбосон дугуй мөчлөгийн диаграм.
book-mn/svg_lib.py:642
Functioncycle_diagram
Circular cycle diagram with arrows between nodes.
book-id/svg_lib.py:641
Methoddeco
(fn)
chapter4/perception-tools/src/test_search_web_num_results_zero.py:34
Methoddeco
(fn)
chapter4/perception-tools/src/test_grep_max_results_zero.py:27
Methoddeco
(fn)
chapter4/perception-tools/src/test_negative_max_length.py:23
Methoddecode
(self, token_ids, skip_special_tokens=False)
chapter2/attention_visualization/test_token_labels.py:27
Methoddecode
(self, ids, skip_special_tokens=False)
chapter2/attention_visualization/test_token_labels.py:64
Functiondecorator
(func: Callable[P, R])
chapter9/browser-use-rpa/browser-use/browser_use/utils.py:331
Functiondecorator
(func: F)
chapter9/browser-use-rpa/browser-use/browser_use/observability.py:68
Functiondecorator
(func)
chapter3/dense-embedding/logger.py:65
Methoddecorator
(func: Callable)
chapter9/browser-use-rpa/browser-use/browser_use/tools/registry/service.py:287
Functiondefault_api
( log_file: str | None = None, sampling_strategy: SamplingStrategy | None = None, request_router:
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:388
Functiondefault_api_from_args
(args: argparse.Namespace)
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:408
Functiondefault_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
Functiondelete_document
Delete a document from all services.
chapter3/retrieval-pipeline/main.py:172
Functiondelete_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
Methoddelete_document
Delete a document from all services. Args: doc_id: Document ID to delete Returns: Deleti
chapter3/retrieval-pipeline/retrieval_pipeline.py:379
Methoddelete_document
Delete a document from both services.
chapter3/retrieval-pipeline/retrieval_client.py:180
Methoddelete_item
Delete an item from the index.
chapter3/dense-embedding/indexing.py:21
Methoddelete_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
Methoddelete_memory
Delete a note
chapter3/user-memory/memory_manager.py:218
Methoddelete_memory
Delete a memory card
chapter3/user-memory/memory_manager.py:474
Methoddelete_memory
Delete a memory card
chapter3/user-memory/memory_manager.py:676
Methoddelete_memory
Delete a single memory by id.
chapter3/mem0/agent.py:344
Functiondemo_interrupt
()
chapter6/async-agent/async_demos.py:100
Functiondemo_parallel
()
chapter6/async-agent/async_demos.py:64
Functiondemo_state
()
chapter6/async-agent/async_demos.py:163
Functiondeny_network
(*args, **kwargs)
chapter1/web-search-agent/tests/conftest.py:29
Methoddepth
(node: ast.AST, level: int = 0)
chapter10/staged-system-prompt/tools.py:135
Functiondescriptive_stats
给一组数值返回基本描述统计(均值/最大/最小/极差)。
chapter10/multi-role-transfer/tools.py:182
Functiondiagnosis
()
scripts/book_figures/chapter5.py:80
Methoddiamond
(self, cx, cy, w, h, fill='light', label=None, font_size=FS_SMALL)
book-en/svg_lib.py:482
Methoddiamond
(self, cx, cy, w, h, fill='light', label=None, font_size=FS_SMALL)
book-tr/svg_lib.py:482
Methoddiamond
(self, cx, cy, w, h, fill='light', label=None, font_size=FS_SMALL)
book-ar/svg_lib.py:508
Methoddiamond
(self, cx, cy, w, h, fill='light', label=None, font_size=FS_SMALL)
book-ru/svg_lib.py:482
Methoddiamond
(self, cx, cy, w, h, fill='light', label=None, font_size=FS_SMALL)
book-es/svg_lib.py:482
Methoddiamond
(self, cx, cy, w, h, fill='light', label=None, font_size=FS_SMALL)
book-mn/svg_lib.py:483
Methoddiamond
(self, cx, cy, w, h, fill='light', label=None, font_size=FS_SMALL)
book-id/svg_lib.py:482
Functiondict_model
(prompt, language="Spanish")
tests/test_ch7_evaluate_multilingual.py:85
Functiondict_model
(prompt, language="Spanish")
tests/test_ch8_evaluate_multilingual.py:85
Functiondisable_cache
()
chapter2/prompt-engineering/tau_bench/model_utils/api/cache.py:35
Functiondisco_mode
(browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/examples/custom-functions/action_filters.py:41
Methoddisconnect
Disconnect from the MCP server and clean up resources.
chapter9/browser-use-rpa/browser-use/browser_use/mcp/controller.py:201
Functiondiscover_schema
自下而上发现因子并归并成模块化 schema。带磁盘缓存(避免重复花钱)。
chapter3/structured-knowledge-extraction/discovery.py:64
Functiondiscovery_batch
(cache: CachedCalls, rows: List[Dict[str, Any]], index: int)
chapter3/structured-knowledge-extraction/campaign.py:194
Functiondispatch
(event: Event)
chapter6/agent-with-event-trigger/event_loop_demo.py:220
Functiondispatch
直接执行注册的工具。 当前版本没有任何风险检查:高风险调用与读取文件一样被立即执行, 不存在确认 token 的概念。这就是失败轨迹归因出的缺陷。
chapter9/harness-safety-gate/stable/tool_dispatcher.py:115
Functiondispatch
(tool_name, args=None, *, execute, confirm_token=None)
chapter9/harness-safety-gate/validation/real_20260807T160109Z/candidates/real_llm/confirmation_gate.py:33
Functiondispatch
调度入口:低风险直接执行;高风险必须持有效一次性确认 token。 execute 由 Harness 注入,本模块不直接触碰任何真实工具。
chapter9/harness-safety-gate/validation/real_20260807T160109Z/candidates/deterministic/confirmation_gate.py:60
Functiondispatch
调度入口:低风险直接执行;高风险必须持有效一次性确认 token。 execute 由 Harness 注入,本模块不直接触碰任何真实工具。
chapter9/harness-safety-gate/validation/real_20260807T160109Z/candidates/rejected_control/confirmation_gate.py:61
Functiondispatch_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
Functiondisplay_memory_operations
Display memory operations from processing results Args: results: Processing results containing operations verbose: Wheth
chapter3/user-memory/memory_operation_formatter.py:94
Methoddo_GET
(self)
chapter5/log-diagnosis/http_service.py:53
Methoddo_GET
(self)
chapter5/log-diagnosis/validation/runs/exp5-8-live-http-mcp-20260730-053403/http_service.py:53
Methoddo_GET
(self)
chapter5/log-diagnosis/validation/runs/exp5-8-live-http-mcp-20260730-053056/http_service.py:53
Methoddo_GET
(self)
chapter9/browser-use-rpa/local_mail_sandbox.py:116
Methoddo_GET
(self)
chapter10/autonomous-phone-registration/webrtc_channel.py:485
Methoddo_GET
(self)
chapter10/autonomous-phone-registration/run_acceptance.py:67
Methoddo_GET
(self)
chapter1/context/vis_validation.py:212
Methoddo_POST
(self)
chapter5/log-diagnosis/http_service.py:74
Methoddo_POST
(self)
chapter5/log-diagnosis/validation/runs/exp5-8-live-http-mcp-20260730-053403/http_service.py:74
Methoddo_POST
(self)
chapter5/log-diagnosis/validation/runs/exp5-8-live-http-mcp-20260730-053056/http_service.py:74
Methoddo_POST
(self)
chapter9/browser-use-rpa/local_mail_sandbox.py:130
Methoddo_POST
(self)
chapter10/autonomous-phone-registration/run_acceptance.py:78
Functiondocument_reader
Read document content.
chapter4/perception-tools/src/main.py:149
Functiondocx_extract
Extract content from DOCX.
chapter4/perception-tools/src/main.py:467
Methoddom_service
Get the DOM service for this target.
chapter9/browser-use-rpa/browser-use/browser_use/actor/page.py:361
Functiondone
(text: str)
chapter9/browser-use-rpa/browser-use/examples/custom-functions/notification.py:17
Methoddown
Press mouse button down.
chapter9/browser-use-rpa/browser-use/browser_use/actor/mouse.py:49
Functiondownload
Download a file from URL.
chapter4/perception-tools/src/main.py:114
Methoddownload_progress_handler
(event: DownloadProgressEvent, session_id: SessionID | None)
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/downloads_watchdog.py:180
Functiondownload_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
Methoddownload_will_begin_handler
(event: DownloadWillBeginEvent, session_id: SessionID | None)
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/downloads_watchdog.py:160
Methoddownloaded_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
Methoddrag_to
Drag this element to another element or position.
chapter9/browser-use-rpa/browser-use/browser_use/actor/element.py:587
Methoddrain_reactions
Wait for all queued reactions to complete.
chapter5/permission-embedded-data-objects/pedo/core/store.py:130
Functiondraw_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
Functiondraw_procedural_plant
程序化绘制一盆绿植:花盆 + 茎 + 叶(椭圆)。确定性输出。
chapter5/cad-vs-diffusion/control_plant.py:25
Functiondrive_frontend
( storage: Path, sim_code: str, starting_step: int, steps: int, failures: "queue.Queue[Bas
chapter10/generative-agents/run_campaign.py:287
Methodduration_seconds
Calculate step duration in seconds
chapter9/browser-use-rpa/browser-use/browser_use/agent/views.py:137
Functionecommerce_pedo_run
()
chapter5/permission-embedded-data-objects/pedo/eval/case_studies.py:235
Functionecommerce_raw_run
()
chapter5/permission-embedded-data-objects/pedo/eval/case_studies.py:303
Functionedge
(name, drawing)
web-astro/scripts/evaluation-layout-kit.mjs:6
Functionediting
()
scripts/book_figures/chapter5.py:52
FunctionelementIndex
(k)
web-astro/scripts/computer-use-layout.mjs:157
Methodelement_hash
(self)
chapter9/browser-use-rpa/browser-use/browser_use/dom/views.py:744
Functionelo
()
scripts/book_figures/chapter7.py:77
Methodembed
(self, texts)
chapter7/user-memory-system-evaluation/test_experiment.py:33
Methodembed
(self, texts: List[str])
chapter4/active-tool-discovery/offline_backend.py:53
Functionembedding_create
(**kwargs: Any)
chapter10/generative-agents/provider_adapter.py:221
← previousnext →8,701–8,800 of 13,003, ranked by callers