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
search
(self, query: str, top_k: int = 5)
chapter3/agentic-rag-for-user-memory/indexer.py:75
Method
search
Simple text similarity search Args: query: Search query documents: List of documents to search
chapter3/user-memory/conversation_history.py:321
Method
search
Search for documents using specified mode. Args: query: Search query mode: Search mode (dense, sparse, or hyb
chapter3/retrieval-pipeline/retrieval_pipeline.py:74
Method
search
Search using specified mode (dense, sparse, or hybrid).
chapter3/retrieval-pipeline/retrieval_client.py:159
Method
search
(self, query: str, top_k: int)
chapter3/retrieval-pipeline/evaluate.py:270
Method
search
Search for top-k similar items.
chapter3/dense-embedding/indexing.py:26
Method
search
Return the ``top_k`` article chunks scored by BM25 for ``query``.
chapter3/agentic-rag/offline_retriever.py:162
Function
search_documents
Search for documents using specified mode with optional reranking. Educational features: - Shows original rankings from dense and sparse
chapter3/retrieval-pipeline/main.py:140
Function
search_documents
Search for similar documents. This endpoint: 1. Generates query embedding using BGE-M3 2. Searches the vector index for similar
chapter3/dense-embedding/main.py:237
Method
search_google
(params: SearchGoogleAction, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/browser_use/tools/service.py:121
Method
search_memories
Search notes by query (simple text search)
chapter3/user-memory/memory_manager.py:260
Method
search_memories
Search memory cards by query
chapter3/user-memory/memory_manager.py:523
Method
search_memories
Search memory cards by query
chapter3/user-memory/memory_manager.py:716
Method
search_mode
Enter web search mode
chapter1/search-codegen/main.py:113
Function
search_web
(query: str)
chapter9/browser-use-rpa/browser-use/examples/use-cases/find_influencer_profiles.py:44
Function
search_web
(query: str)
chapter9/browser-use-rpa/browser-use/examples/custom-functions/advanced_search.py:40
Method
select_cell_or_range
(cell_or_range: str, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:285
Method
select_cell_or_range
(browser_session: BrowserSession, cell_or_range: str)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:952
Method
select_cell_or_range_fixed
(cell_or_range: str, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:290
Method
select_cell_or_range_fixed
(browser_session: BrowserSession, cell_or_range: str)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:961
Method
select_dropdown_option
Select dropdown option by the text of the option you want to select
chapter9/browser-use-rpa/browser-use/browser_use/tools/service.py:844
Method
select_with_kwargs
(browser_session: BrowserSession, cell_or_range: str)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:969
Method
send_keys
(params: SendKeysAction, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/browser_use/tools/service.py:774
Function
serialize
(result: BaselineResult)
chapter6/streaming-speech/whisper_baseline.py:140
Method
serialize_node
(cls, data: EnhancedDOMTreeNode | None)
chapter9/browser-use-rpa/browser-use/browser_use/browser/events.py:58
Method
serialize_parent_target_id
(self, parent_target_id: TargetID | None, _info: Any)
chapter9/browser-use-rpa/browser-use/browser_use/browser/views.py:40
Method
serialize_target_id
(self, target_id: TargetID, _info: Any)
chapter9/browser-use-rpa/browser-use/browser_use/browser/views.py:36
Method
session_id
Get the session ID for this target. @dev Pass this to an arbitrary CDP call
chapter9/browser-use-rpa/browser-use/browser_use/actor/page.py:71
Function
setActiveOutline
(item: HTMLElement | null, instant = false)
web-astro/src/scripts/reader-navigation.ts:184
Function
setFocusInside
(inside: boolean)
web-astro/src/scripts/reader-navigation.ts:101
Function
setItem
(next: T | null, instant = false)
web-astro/src/scripts/reader-navigation.ts:93
Function
setLocal
(n)
tests/js/auto-translate.test.js:43
Function
setPointerInside
(inside: boolean)
web-astro/src/scripts/reader-navigation.ts:97
Method
setUp
(self)
chapter7/model-action-threshold/tasks/crosscutting_identity/repo/tests/test_accounts.py:10
Method
setUp
(self)
chapter2/local_llm_serving/test_platform_detection.py:15
Method
setUp
(self)
chapter9/trajectory-verifier/test_claim_action_order.py:31
Method
setUp
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:14
Method
setUp
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:68
Method
setUp
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:128
Method
setUp
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:213
Method
setUp
Set up test fixtures
chapter1/context/tests/test_agent.py:111
Method
setUp
(self)
chapter4/collaboration-tools/test_timer_tools.py:20
Method
setUp
(self)
chapter3/user-memory/test_background_processor_loop.py:36
Method
setUpClass
(cls)
chapter9/self-modifying-agent/test_evolution.py:18
Method
setUpClass
(cls)
chapter9/trajectory-verifier/test_verifier.py:11
Method
setUpClass
(cls)
chapter9/harness-safety-gate/test_evolution.py:29
Method
setUpClass
(cls)
chapter9/harness-safety-gate/test_evolution.py:102
Function
set_clipboard_contents
(content: str, env: Any)
chapter7/android-world/run_controlled_experiment.py:470
Method
set_default_binary_classify_models
(self, models: list[BinaryClassifyModel])
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:125
Method
set_default_classify_models
(self, models: list[BinaryClassifyModel])
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:130
Method
set_default_downloads_path
Set a unique default downloads path if none is provided.
chapter9/browser-use-rpa/browser-use/browser_use/browser/profile.py:417
Method
set_default_generate_models
(self, models: list[GenerateModel])
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:140
Method
set_default_parse_force_models
(self, models: list[ParseForceModel])
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:145
Method
set_default_parse_models
(self, models: list[ParseModel])
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:135
Method
set_default_request_router
(self, request_router: RequestRouter)
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:158
Function
set_default_sampling_strategy
(strategy: SamplingStrategy)
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:225
Method
set_default_sampling_strategy
(self, sampling_strategy: SamplingStrategy)
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:155
Method
set_default_score_models
(self, models: list[ScoreModel])
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:150
Function
set_equal
(s1: set, s2: set)
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:72
Method
set_index
Delegate set_index to the underlying action model
chapter9/browser-use-rpa/browser-use/browser_use/tools/registry/service.py:549
Method
set_path
(self, path: Path)
chapter10/generative-agents/action_arena_compat.py:81
Method
set_reasoning_effort
Set the reasoning effort level
chapter1/search-codegen/main.py:164
Function
set_report_dir
(path: str)
chapter2/prompt-engineering/tau_bench/model_utils/api/exception.py:14
Method
set_system_prompt
(self, prompt: str)
chapter1/search-codegen/agent.py:375
Method
set_temperature
设置温度参数 Args: temperature: 温度值 (0.0 - 2.0)
chapter1/web-search-agent/agent.py:557
Function
setup_raw_db
Set up raw database for condition (c).
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety.py:286
Function
setup_readline_history
Set up readline with command history.
chapter9/browser-use-rpa/browser-use/browser_use/cli.py:213
Function
setup_test_environment
Automatically set up test environment for all tests.
chapter9/browser-use-rpa/browser-use/tests/ci/conftest.py:42
Function
sha256_bytes
(data: bytes)
chapter8/continued-pretraining/validation/run_report_audit.py:76
Function
sha256_bytes
(value: bytes)
chapter6/streaming-speech/run_official_experiment.py:51
Function
sha256_bytes
(data: bytes)
chapter3/experiment_utils.py:33
Function
sha256_file
Return a content identity for an evidence audio file.
chapter7/tts-quality-eval/pipeline.py:819
Function
should_open_circuit
Open after repeated failures.
chapter9/self-modifying-agent/stable/retry_policy.py:14
Function
should_open_circuit
Open immediately for permanent failures or after repeated temporary failures.
chapter9/self-modifying-agent/validation/real_20260802T043954Z/candidates/real_llm/retry_policy.py:16
Function
should_open_circuit
Open immediately for permanent errors; otherwise use the threshold.
chapter9/self-modifying-agent/validation/real_20260802T043954Z/candidates/deterministic/retry_policy.py:16
Function
should_open_circuit
Open immediately for permanent errors; otherwise use the threshold.
chapter9/self-modifying-agent/validation/real_20260802T043954Z/candidates/rejected_control/retry_policy.py:14
Function
should_open_circuit
Open after repeated failures.
chapter9/self-modifying-agent/validation/real_20260729T171050Z/candidates/real_llm/retry_policy.py:14
Function
should_open_circuit
Open immediately for permanent errors; otherwise use the threshold.
chapter9/self-modifying-agent/validation/real_20260729T171050Z/candidates/deterministic/retry_policy.py:16
Function
should_open_circuit
Open immediately for permanent errors; otherwise use the threshold.
chapter9/self-modifying-agent/validation/real_20260729T171050Z/candidates/rejected_control/retry_policy.py:14
Function
should_open_circuit
Open after repeated failures.
chapter9/self-modifying-agent/validation/real_20260729T171118Z/candidates/real_llm/retry_policy.py:14
Function
should_open_circuit
Open immediately for permanent errors; otherwise use the threshold.
chapter9/self-modifying-agent/validation/real_20260729T171118Z/candidates/deterministic/retry_policy.py:16
Function
should_open_circuit
Open immediately for permanent errors; otherwise use the threshold.
chapter9/self-modifying-agent/validation/real_20260729T171118Z/candidates/rejected_control/retry_policy.py:14
Function
should_retry
Return whether another tool call should be attempted.
chapter9/self-modifying-agent/stable/retry_policy.py:9
Function
should_retry
Return whether another tool call should be attempted.
chapter9/self-modifying-agent/validation/real_20260802T043954Z/candidates/real_llm/retry_policy.py:9
Function
should_retry
Return whether another tool call should be attempted.
chapter9/self-modifying-agent/validation/real_20260802T043954Z/candidates/deterministic/retry_policy.py:9
Function
should_retry
Incorrect over-broad fix retained as a rejected candidate.
chapter9/self-modifying-agent/validation/real_20260802T043954Z/candidates/rejected_control/retry_policy.py:9
Function
should_retry
Return whether another tool call should be attempted.
chapter9/self-modifying-agent/validation/real_20260729T171050Z/candidates/real_llm/retry_policy.py:7
Function
should_retry
Return whether another tool call should be attempted.
chapter9/self-modifying-agent/validation/real_20260729T171050Z/candidates/deterministic/retry_policy.py:9
Function
should_retry
Incorrect over-broad fix retained as a rejected candidate.
chapter9/self-modifying-agent/validation/real_20260729T171050Z/candidates/rejected_control/retry_policy.py:9
Function
should_retry
Return whether another tool call should be attempted.
chapter9/self-modifying-agent/validation/real_20260729T171118Z/candidates/real_llm/retry_policy.py:7
Function
should_retry
Return whether another tool call should be attempted.
chapter9/self-modifying-agent/validation/real_20260729T171118Z/candidates/deterministic/retry_policy.py:9
Function
should_retry
Incorrect over-broad fix retained as a rejected candidate.
chapter9/self-modifying-agent/validation/real_20260729T171118Z/candidates/rejected_control/retry_policy.py:9
Function
should_show_index_overlay
Determine if index overlay should be shown.
chapter9/browser-use-rpa/browser-use/browser_use/browser/python_highlights.py:103
Method
should_show_scroll_info
Simple check: show scroll info only if this element is scrollable and doesn't have a scrollable parent (to avoid nested scroll spam). Special
chapter9/browser-use-rpa/browser-use/browser_use/dom/views.py:592
Method
show_config
Display current configuration
chapter1/search-codegen/main.py:156
Method
show_history
Display conversation history
chapter1/search-codegen/main.py:89
Method
simple_action
()
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry_action_parameter_injection.py:352
Method
simple_action
(text: str, number: int = 10)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:123
Method
simple_action
(value: int)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:745
Function
simple_validator
(proposed, existing, accessor, st)
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_overhead.py:184
← previous
next →
9,901–10,000 of 13,003, ranked by callers