MCPcopy Create free account

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

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

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
← previousnext →8,201–8,300 of 13,003, ranked by callers