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
simulation
()
scripts/book_figures/chapter7.py:130
Function
singleton
(cls)
chapter9/browser-use-rpa/browser-use/browser_use/utils.py:385
Function
slack_events
(request: Request, slack_bot: Annotated[SlackBot, Depends()])
chapter9/browser-use-rpa/browser-use/examples/integrations/slack/slack_api.py:110
Function
slow_channel
(msg, ctx)
tests/test_ch4_notification_dispatcher.py:249
Function
slow_handler
(msg, ctx)
tests/test_ch4_notification_dispatcher.py:749
Function
slow_handler
(request)
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent2.py:80
Method
slow_handler
(req)
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_recent_events.py:153
Method
snapshot
(self)
chapter6/async-agent/tasks.py:252
Method
solve
Solve a task with potential tone modifications Args: env: The environment task_index: Optional task
chapter2/prompt-engineering/ablation_agent.py:60
Method
solve
( self, env: Env, task_index: Optional[int] = None, max_num_steps: int = 30 )
chapter2/prompt-engineering/tau_bench/agents/tool_calling_agent.py:27
Method
solve
( self, env: Env, task_index: Optional[int] = None, max_num_steps: int = 30 )
chapter2/prompt-engineering/tau_bench/agents/chat_react_agent.py:61
Method
solve
( self, env: Env, task_index: Optional[int] = None, max_num_steps: int = 30 )
chapter2/prompt-engineering/tau_bench/agents/few_shot_agent.py:35
Function
span
(node)
web-astro/astro.config.mjs:42
Method
speak
(self, players)
chapter10/voice-werewolf/test_live_human.py:105
Method
speak
(self, players: List[str])
chapter10/voice-werewolf/werewolf/human.py:219
Method
special_params_only
(browser_session)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry_action_parameter_injection.py:392
Function
spectrum
()
scripts/book_figures/chapter7.py:51
Function
sql
()
scripts/book_figures/chapter5.py:113
Function
start
()
tests/js/auto-translate.test.js:45
Method
start
Prepares and starts the video writer. If the required optional dependencies are not installed, this method will log an error and do nothing.
chapter9/browser-use-rpa/browser-use/browser_use/browser/video_recorder.py:57
Method
start
(self)
chapter10/autonomous-phone-registration/twilio_channel.py:41
Function
startRecording
()
chapter6/live-audio/frontend/pages/index.tsx:334
Method
start_reactions
(self)
chapter5/permission-embedded-data-objects/pedo/core/store.py:119
Function
startup_event
Initialize indexers on startup.
chapter3/structured-index/api_service.py:72
Method
step
(self, content: str)
chapter2/prompt-engineering/tau_bench/envs/user.py:21
Method
step
(self, content: str)
chapter2/prompt-engineering/tau_bench/envs/user.py:33
Method
step
(self, content: str)
chapter2/prompt-engineering/tau_bench/envs/user.py:169
Method
step
(self, content: str)
chapter2/prompt-engineering/tau_bench/envs/user.py:233
Method
step
(self, content: str)
chapter2/prompt-engineering/tau_bench/envs/user.py:270
Method
step
(self, content: str)
chapter2/prompt-engineering/tau_bench/envs/user.py:384
Function
stock_price
Get stock price.
chapter4/perception-tools/src/main.py:256
Method
stop
(self)
chapter6/gemini-xlerobot-navigation/desktop_planner.py:106
Method
stop_reactions
(self)
chapter5/permission-embedded-data-objects/pedo/core/store.py:124
Method
storage_bytes
(self)
chapter9/self-evolution-eval/agent.py:86
Method
storage_bytes
(self)
chapter9/self-evolution-eval/agent.py:310
Function
store
()
chapter5/permission-embedded-data-objects/tests/test_core.py:15
Function
store
()
tests/test_ch5_pedo_tenant_isolation.py:32
Function
store
(tmp_path, monkeypatch)
tests/test_ch5_pedo_atomic_delete.py:93
Function
stream_until
流式请求。``where`` 为 None 表示读完整条流(作为对照)。
chapter5/provider-failover/streaming.py:46
Function
string_model
(prompt, language="English")
tests/test_ch7_evaluate_multilingual.py:70
Function
string_model
(prompt, language="English")
tests/test_ch8_evaluate_multilingual.py:70
Method
structured_output
Get the structured output from the history Returns: The structured output if both final_result and _output_model_schema are available, otherw
chapter9/browser-use-rpa/browser-use/browser_use/agent/views.py:627
Method
submit
(self)
chapter10/autonomous-phone-registration/test_orchestration.py:28
Method
submit
(self)
chapter10/autonomous-phone-registration/test_orchestration.py:38
Method
submit
(self)
chapter10/autonomous-phone-registration/test_orchestration.py:51
Method
supports_dp
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/claude.py:74
Method
supports_dp
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_completion.py:119
Method
supports_dp
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/mistral.py:85
Method
supports_dp
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/openai.py:119
Method
supports_dp
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/outlines_completion.py:35
Method
supports_dp
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/anyscale.py:85
Method
supports_dp
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_chat.py:106
Method
switchLLMProvider
* Switch LLM provider dynamically * @param {string} providerName - Provider name to switch to
chapter6/live-audio/backend/server.js:98
Method
switch_tab
(params: SwitchTabAction, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/browser_use/tools/service.py:542
Method
sync_action
(text: str, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:444
Function
sync_handler
(msg, ctx)
tests/test_ch4_notification_dispatcher.py:535
Method
sync_to_disk_sync
(self, path: Path)
chapter9/browser-use-rpa/browser-use/browser_use/filesystem/file_system.py:50
Function
sync_wrapper
(*args, **kwargs)
chapter9/browser-use-rpa/browser-use/browser_use/observability.py:79
Method
synth
(self, speaker: str, text: str, round_no: int)
chapter10/voice-werewolf/werewolf/simulator.py:279
Method
synth
(self, speaker: str, text: str, round_no: int)
chapter10/voice-werewolf/werewolf/human.py:174
Function
synthesize
按 cfg.provider 分发到对应服务商合成语音,写入 out_path(mp3)。失败抛异常。 OpenAI 走官方 SDK;其余服务商按各家公开 REST 接口用内置 urllib 调用, 不引入额外依赖。缺少对应 key 时抛出带上下文的异常,由上层记为该行失败。
chapter7/tts-quality-eval/pipeline.py:106
Method
synthesize
(self, _text)
chapter10/autonomous-phone-registration/test_webrtc_channel.py:17
Method
synthesize
(self, text: str)
chapter10/autonomous-phone-registration/webrtc_channel.py:244
Method
synthesize
(self, text: str)
chapter10/autonomous-phone-registration/webrtc_channel.py:312
Method
synthesize
()
chapter10/autonomous-phone-registration/voice.py:44
Function
system_ctx
()
chapter5/permission-embedded-data-objects/tests/test_scenarios.py:39
Function
system_state
Create a fresh system state for each test
chapter5/coding-agent/tests/conftest.py:13
Method
tag_name
(self)
chapter9/browser-use-rpa/browser-use/browser_use/dom/views.py:405
Method
take_step
Take a step Returns: Tuple[bool, bool]: (is_done, is_valid)
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:1335
Function
tc
(tmp_path, monkeypatch)
chapter4/execution-tools/test_command_history_count_zero.py:9
Function
tc
Create terminal controller with temp workspace.
chapter4/execution-tools/test_terminal_controller.py:14
Function
telecom
()
scripts/book_figures/chapter7.py:32
Function
temp_config_dir
Create temporary config directory.
chapter9/browser-use-rpa/browser-use/tests/ci/test_sync_client_auth.py:28
Function
temp_config_dir
Create temporary config directory.
chapter9/browser-use-rpa/browser-use/tests/ci/test_cloud_browser.py:22
Function
temp_dir
Create a temporary directory for tests
chapter5/coding-agent/tests/conftest.py:19
Function
temp_files
(tmp_path)
tests/test_ch5_grep_tool_file_filters.py:14
Method
temp_filesystem
Create a temporary FileSystem for testing.
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:190
Function
temp_notebook
(tmp_path)
tests/test_ch5_notebook_edit_zero_cell_id.py:15
Function
test_600ms_vad_splits_a_long_pause
()
chapter6/streaming-speech/test_streaming.py:13
Function
test_611_agent_can_make_followup_searches_and_exposes_tool_efficiency
()
chapter7/user-memory-system-evaluation/test_experiment.py:127
Function
test_611_checkpoint_preserves_explicit_provider_errors
(tmp_path)
chapter7/user-memory-system-evaluation/test_run_full.py:59
Function
test_64_checkpoint_requires_successful_full_rubric_rows
(tmp_path)
chapter7/user-memory-system-evaluation/test_run_full.py:39
Function
test_a_run_that_never_reached_the_provider_observes_no_claims
()
chapter1/context/test_experiment_1_1.py:171
Function
test_ablation_engine_initialization
Test initializing DownstreamAblationEngine and code quality scoring.
tests/test_ch9_hermes_downstream_ablation.py:23
Function
test_ablation_engine_initialization
Test initializing DownstreamAblationEngine and code quality scoring.
tests/test_ch8_hermes_downstream_ablation.py:23
Function
test_ablation_engine_regression_detection
Test identifying regression tasks (passed by baseline, failed by evolved).
tests/test_ch9_hermes_downstream_ablation.py:107
Function
test_ablation_engine_regression_detection
Test identifying regression tasks (passed by baseline, failed by evolved).
tests/test_ch8_hermes_downstream_ablation.py:107
Function
test_ablation_latency_and_quality_metrics
Test measuring latency change percentage and code quality delta.
tests/test_ch9_hermes_downstream_ablation.py:139
Function
test_ablation_latency_and_quality_metrics
Test measuring latency change percentage and code quality delta.
tests/test_ch8_hermes_downstream_ablation.py:139
Method
test_abs_round_min_max
(self)
chapter1/context/tests/test_calc_sandbox.py:48
Function
test_absorb_anthropic_deltas
()
chapter5/provider-failover/tests/test_offline.py:138
Function
test_absorb_follows_pagination_until_the_stars_run_out
()
tests/test_gen_star_history_iso_formats.py:111
Function
test_absorb_keeps_only_stars_below_the_shard_boundary
Contract: a shard owns [cursor, hi), so a star at hi belongs to the next shard.
tests/test_gen_star_history_iso_formats.py:90
Function
test_absorb_kimi_deltas
()
chapter5/provider-failover/tests/test_offline.py:129
Function
test_absorb_only_trusts_a_cursor_for_a_fully_kept_page
Contract: endCursor points at the last edge, so it is a valid resume point only if that edge was kept.
tests/test_gen_star_history_iso_formats.py:100
Function
test_acceptance_fails_closed_when_receipts_are_missing
()
chapter4/perception-tools/test_experiment_4_2.py:91
Function
test_acceptance_fails_when_provider_archive_verification_is_missing
(tmp_path)
chapter6/agent-with-event-trigger/test_unipile_mailbox_experiment.py:120
Function
test_acceptance_gate_names_are_exact_and_fail_closed
()
chapter6/phone-agent/test_webrtc_app.py:61
Function
test_acceptance_is_multi_provider_not_openai_gated
()
chapter1/search-codegen/test_responses_agent.py:168
Function
test_acceptance_rejects_two_fibers_from_one_search_round
()
chapter1/web-search-agent/tests/test_experiment_1_2.py:124
← previous
next →
10,001–10,100 of 13,003, ranked by callers