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
Function
_http_error
(req, timeout=None)
chapter7/tts-quality-eval/tests/test_judge_robustness.py:139
Method
_id_for_logs
Get human-friendly semi-unique identifier for differentiating different BrowserSession instances in logs
chapter9/browser-use-rpa/browser-use/browser_use/browser/session.py:374
Function
_invoke_w_o_llm_error
(invocable: Callable[[], T])
chapter2/prompt-engineering/tau_bench/model_utils/api/exception.py:50
Function
_it_pedo_fetch
(store, image_id)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:521
Function
_it_pedo_upload
(store, filename, content)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:511
Function
_it_raw_insecure_upload
(conn, filename, content)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:495
Function
_it_raw_secure_fetch
(conn, image_id)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:479
Function
_it_raw_secure_upload
(conn, filename, content)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:471
Function
_judge_exfiltration
(result: RunResult)
chapter2/prompt-injection/attacks.py:96
Function
_judge_leak
(result: RunResult)
chapter2/prompt-injection/attacks.py:34
Function
_judge_unauthorized_write
(result: RunResult)
chapter2/prompt-injection/attacks.py:61
Function
_leaking_response
A compromised agent that leaks the secret key.
tests/test_ch2_prompt_injection_robustness.py:30
Method
_load_conversations
Load conversations from a JSON file
chapter3/contextual-retrieval-for-user-memory/contextual_evaluator.py:504
Method
_load_object
(self, object_id)
tests/test_ch5_pedo_tenant_isolation.py:27
Method
_log
(self, message: str)
chapter10/multi-role-transfer/skill_orchestrator.py:173
Function
_log_format_message_line
Format a single message for logging display
chapter9/browser-use-rpa/browser-use/browser_use/agent/message_manager/service.py:46
Method
_log_model_input_to_lmnr
Log the model input
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:736
Function
_luhn_ok
Luhn 校验,用于降低信用卡号的误报率
chapter3/log-sanitization/regex_sanitizer.py:31
Method
_make_api_call
()
chapter9/browser-use-rpa/browser-use/browser_use/llm/google/chat.py:211
Method
_messages_for_api
(self)
chapter10/multi-role-transfer/run_comparison.py:48
Method
_mock_response
模拟一个稳健防御的 Agent:对注入载荷一律拒绝。
chapter2/prompt-injection/robustness_evaluator.py:126
Method
_normalize_code
(code: str)
chapter1/context/agent.py:187
Function
_now
返回自演示启动以来的秒数(相对时间戳)。
chapter10/parallel-web-research/message_bus.py:38
Function
_obeying_response
An agent that follows injected instructions (writes a file).
tests/test_ch2_prompt_injection_robustness.py:35
Method
_on_attached
(event: AttachedToTargetEvent, session_id: SessionID | None = None)
chapter9/browser-use-rpa/browser-use/browser_use/browser/session.py:1479
Method
_on_auth_required
(event: AuthRequiredEvent, session_id: SessionID | None = None)
chapter9/browser-use-rpa/browser-use/browser_use/browser/session.py:1404
Method
_on_request_cdp
Track new network request from CDP event.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/crash_watchdog.py:131
Method
_on_request_failed_cdp
Remove request from tracking on failure.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/crash_watchdog.py:154
Method
_on_request_finished_cdp
Remove request from tracking when loading is finished.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/crash_watchdog.py:164
Method
_on_request_paused
(event: RequestPausedEvent, session_id: SessionID | None = None)
chapter9/browser-use-rpa/browser-use/browser_use/browser/session.py:1449
Method
_on_response_cdp
Remove request from tracking on response.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/crash_watchdog.py:145
Method
_on_task_complete
异步任务自然完成 -> 把真实结果作为【新事件】注入 inbox。
chapter6/async-agent/runtime.py:170
Function
_parse_commit
(line: str)
scripts/site_source_paths.py:112
Method
_parse_tool_calls
Parse tool calls from model output Extracts content between <tool_call> tags
chapter2/local_llm_serving/agent.py:65
Function
_patch_exception
(monkeypatch)
chapter2/agent-skills-ppt/tests/test_reasoning_degrade.py:42
Function
_patched_del
Patched __del__ that handles closed event loops without throwing noisy red-herring errors like RuntimeError: Event loop is closed
chapter9/browser-use-rpa/browser-use/browser_use/__init__.py:27
Method
_process_reactions
Background thread that processes queued reactions.
chapter5/permission-embedded-data-objects/pedo/core/store.py:569
Function
_provider
(request: httpx.Request)
chapter6/agent-with-event-trigger/test_unipile_mailbox_experiment.py:37
Method
_rank
(chunks: List[ContextualChunk], field: str)
chapter3/contextual-retrieval/contextual_chunking.py:472
Function
_read_file
(env, path)
chapter9/harness-safety-gate/stable/tool_dispatcher.py:38
Method
_read_stdout
Pump stdout lines into the queue; None marks end of stream.
chapter5/coding-agent/tools/shell_session.py:100
Function
_readline_before_timeout
Read one byte stream line while ensuring the worker exits by its deadline.
chapter4/collaboration-tools/run_experiment_4_5.py:62
Method
_record_vad
(self, path: Path, timeout: float)
chapter10/autonomous-phone-registration/voice.py:93
Function
_register
(name: str, **overrides)
tests/test_providers.py:659
Method
_remove_think_tags
(self, text: str)
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:1005
Method
_respond
()
chapter9/browser-use-rpa/browser-use/browser_use/browser/session.py:1415
Function
_route
(req, timeout=None)
chapter7/tts-quality-eval/tests/test_judge_robustness.py:203
Function
_run
(idx: int)
chapter2/prompt-engineering/run_ablation.py:441
Function
_run
(idx: int)
chapter2/prompt-engineering/tau_bench/run.py:66
Method
_run_bash
Execute Bash script.
chapter4/execution-tools/multilang_executor.py:673
Method
_run_cpp
Execute C++ code.
chapter4/execution-tools/multilang_executor.py:544
Method
_run_datapoint
(model: AnyModel, temp: float | None = None)
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:169
Method
_run_go
Execute Go code.
chapter4/execution-tools/multilang_executor.py:438
Method
_run_java
Execute Java code.
chapter4/execution-tools/multilang_executor.py:487
Method
_run_javascript
Execute JavaScript code with Node.js.
chapter4/execution-tools/multilang_executor.py:375
Method
_run_php
Execute PHP code.
chapter4/execution-tools/multilang_executor.py:643
Method
_run_rust
Execute Rust code.
chapter4/execution-tools/multilang_executor.py:598
Function
_run_shell
(env, command)
chapter9/harness-safety-gate/stable/tool_dispatcher.py:56
Function
_run_turn
Run one LLM turn over the sub-agent's current message list (blocking).
chapter4/collaboration-tools/src/subagent_tools.py:338
Method
_run_typescript
Execute TypeScript code with tsx.
chapter4/execution-tools/multilang_executor.py:410
Function
_sc_pedo_add
(store, cart_id, item_id, count)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:431
Function
_sc_pedo_create
(store)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:423
Function
_sc_pedo_retrieve
(store, cart_id)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:442
Function
_sc_raw_insecure_add
(conn, cart_id, item_id, count)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:399
Function
_sc_raw_insecure_create
(conn)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:391
Function
_sc_raw_secure_add
(conn, cart_id, item_id, count)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:354
Function
_sc_raw_secure_create
(conn)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:347
Function
_sc_raw_secure_retrieve
(conn, cart_id)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:371
Method
_select_cell_or_range
(browser_session: BrowserSession, cell_or_range: str)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:280
Method
_select_cell_or_range
Helper function for select_cell_or_range
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:945
Method
_serialize_tool_call
Convert browser-use ToolCall to LangChain ToolCall.
chapter9/browser-use-rpa/browser-use/examples/models/langchain/serializer.py:92
Method
_setup_db
(self)
tests/test_ch5_pedo_tenant_isolation.py:21
Function
_sql_query
(env, query)
chapter9/harness-safety-gate/stable/tool_dispatcher.py:78
Function
_ss_pedo_get
(store, principal_ctx, target_username)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:192
Function
_ss_pedo_login
(store, email, password)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:163
Function
_ss_pedo_register
(store, email, username, password)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:149
Function
_ss_pedo_set
(store, principal_ctx, target_username, secret)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:175
Function
_ss_raw_insecure_get
(conn, principal, target_username)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:129
Function
_ss_raw_insecure_set
(conn, principal, target_username, secret)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:116
Function
_ss_raw_login
(conn, email, password)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:73
Function
_ss_raw_register
(conn, email, username, password)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:61
Function
_ss_raw_secure_get
(conn, principal, target_username)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:97
Function
_ss_raw_secure_set
(conn, principal, target_username, secret)
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/reference_impls.py:82
Function
_stub
()
chapter3/structured-knowledge-extraction/test_archetypes_small_charge.py:8
Function
_synth_doubao
(cfg: config.TTSConfig, text: str)
chapter7/tts-quality-eval/pipeline.py:229
Function
_synth_elevenlabs
(cfg: config.TTSConfig, text: str)
chapter7/tts-quality-eval/pipeline.py:155
Function
_synth_fishaudio
(cfg: config.TTSConfig, text: str)
chapter7/tts-quality-eval/pipeline.py:165
Function
_synth_minimax
(cfg: config.TTSConfig, text: str)
chapter7/tts-quality-eval/pipeline.py:203
Function
_synth_openai
(cfg: config.TTSConfig, text: str)
chapter7/tts-quality-eval/pipeline.py:148
Method
_tab_id_for_logs
(self)
chapter9/browser-use-rpa/browser-use/browser_use/browser/session.py:387
Function
_timeout_handler
(signum, frame)
chapter5/permission-embedded-data-objects/run_targeted_eval.py:29
Function
_timeout_handler
(signum, frame)
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety_final.py:34
Function
_timeout_handler
(signum, frame)
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_application.py:45
Function
_timeout_handler
(signum, frame)
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_harness_focused.py:31
Function
_timeout_handler
(signum, frame)
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_spec_errors_v2.py:30
Function
_timeout_handler
(signum, frame)
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_comparisons.py:34
Function
_timeout_handler
(signum, frame)
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety_v2.py:32
Function
_timeout_handler
(signum, frame)
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety.py:266
Function
_timeout_handler
(signum, frame)
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_final_comprehensive.py:38
Function
_timeout_handler
(signum, frame)
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/harness.py:46
← previous
next →
8,201–8,300 of 13,003, ranked by callers