MCPcopy Create free account

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

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

Methodsearch
(self, query: str, top_k: int = 5)
chapter3/agentic-rag-for-user-memory/indexer.py:75
Methodsearch
Simple text similarity search Args: query: Search query documents: List of documents to search
chapter3/user-memory/conversation_history.py:321
Methodsearch
Search for documents using specified mode. Args: query: Search query mode: Search mode (dense, sparse, or hyb
chapter3/retrieval-pipeline/retrieval_pipeline.py:74
Methodsearch
Search using specified mode (dense, sparse, or hybrid).
chapter3/retrieval-pipeline/retrieval_client.py:159
Methodsearch
(self, query: str, top_k: int)
chapter3/retrieval-pipeline/evaluate.py:270
Methodsearch
Search for top-k similar items.
chapter3/dense-embedding/indexing.py:26
Methodsearch
Return the ``top_k`` article chunks scored by BM25 for ``query``.
chapter3/agentic-rag/offline_retriever.py:162
Functionsearch_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
Functionsearch_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
Methodsearch_google
(params: SearchGoogleAction, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/browser_use/tools/service.py:121
Methodsearch_memories
Search notes by query (simple text search)
chapter3/user-memory/memory_manager.py:260
Methodsearch_memories
Search memory cards by query
chapter3/user-memory/memory_manager.py:523
Methodsearch_memories
Search memory cards by query
chapter3/user-memory/memory_manager.py:716
Methodsearch_mode
Enter web search mode
chapter1/search-codegen/main.py:113
Functionsearch_web
(query: str)
chapter9/browser-use-rpa/browser-use/examples/use-cases/find_influencer_profiles.py:44
Functionsearch_web
(query: str)
chapter9/browser-use-rpa/browser-use/examples/custom-functions/advanced_search.py:40
Methodselect_cell_or_range
(cell_or_range: str, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:285
Methodselect_cell_or_range
(browser_session: BrowserSession, cell_or_range: str)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:952
Methodselect_cell_or_range_fixed
(cell_or_range: str, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:290
Methodselect_cell_or_range_fixed
(browser_session: BrowserSession, cell_or_range: str)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:961
Methodselect_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
Methodselect_with_kwargs
(browser_session: BrowserSession, cell_or_range: str)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:969
Methodsend_keys
(params: SendKeysAction, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/browser_use/tools/service.py:774
Functionserialize
(result: BaselineResult)
chapter6/streaming-speech/whisper_baseline.py:140
Methodserialize_node
(cls, data: EnhancedDOMTreeNode | None)
chapter9/browser-use-rpa/browser-use/browser_use/browser/events.py:58
Methodserialize_parent_target_id
(self, parent_target_id: TargetID | None, _info: Any)
chapter9/browser-use-rpa/browser-use/browser_use/browser/views.py:40
Methodserialize_target_id
(self, target_id: TargetID, _info: Any)
chapter9/browser-use-rpa/browser-use/browser_use/browser/views.py:36
Methodsession_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
FunctionsetActiveOutline
(item: HTMLElement | null, instant = false)
web-astro/src/scripts/reader-navigation.ts:184
FunctionsetFocusInside
(inside: boolean)
web-astro/src/scripts/reader-navigation.ts:101
FunctionsetItem
(next: T | null, instant = false)
web-astro/src/scripts/reader-navigation.ts:93
FunctionsetLocal
(n)
tests/js/auto-translate.test.js:43
FunctionsetPointerInside
(inside: boolean)
web-astro/src/scripts/reader-navigation.ts:97
MethodsetUp
(self)
chapter7/model-action-threshold/tasks/crosscutting_identity/repo/tests/test_accounts.py:10
MethodsetUp
(self)
chapter2/local_llm_serving/test_platform_detection.py:15
MethodsetUp
(self)
chapter9/trajectory-verifier/test_claim_action_order.py:31
MethodsetUp
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:14
MethodsetUp
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:68
MethodsetUp
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:128
MethodsetUp
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:213
MethodsetUp
Set up test fixtures
chapter1/context/tests/test_agent.py:111
MethodsetUp
(self)
chapter4/collaboration-tools/test_timer_tools.py:20
MethodsetUp
(self)
chapter3/user-memory/test_background_processor_loop.py:36
MethodsetUpClass
(cls)
chapter9/self-modifying-agent/test_evolution.py:18
MethodsetUpClass
(cls)
chapter9/trajectory-verifier/test_verifier.py:11
MethodsetUpClass
(cls)
chapter9/harness-safety-gate/test_evolution.py:29
MethodsetUpClass
(cls)
chapter9/harness-safety-gate/test_evolution.py:102
Functionset_clipboard_contents
(content: str, env: Any)
chapter7/android-world/run_controlled_experiment.py:470
Methodset_default_binary_classify_models
(self, models: list[BinaryClassifyModel])
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:125
Methodset_default_classify_models
(self, models: list[BinaryClassifyModel])
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:130
Methodset_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
Methodset_default_generate_models
(self, models: list[GenerateModel])
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:140
Methodset_default_parse_force_models
(self, models: list[ParseForceModel])
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:145
Methodset_default_parse_models
(self, models: list[ParseModel])
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:135
Methodset_default_request_router
(self, request_router: RequestRouter)
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:158
Functionset_default_sampling_strategy
(strategy: SamplingStrategy)
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:225
Methodset_default_sampling_strategy
(self, sampling_strategy: SamplingStrategy)
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:155
Methodset_default_score_models
(self, models: list[ScoreModel])
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:150
Functionset_equal
(s1: set, s2: set)
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:72
Methodset_index
Delegate set_index to the underlying action model
chapter9/browser-use-rpa/browser-use/browser_use/tools/registry/service.py:549
Methodset_path
(self, path: Path)
chapter10/generative-agents/action_arena_compat.py:81
Methodset_reasoning_effort
Set the reasoning effort level
chapter1/search-codegen/main.py:164
Functionset_report_dir
(path: str)
chapter2/prompt-engineering/tau_bench/model_utils/api/exception.py:14
Methodset_system_prompt
(self, prompt: str)
chapter1/search-codegen/agent.py:375
Methodset_temperature
设置温度参数 Args: temperature: 温度值 (0.0 - 2.0)
chapter1/web-search-agent/agent.py:557
Functionsetup_raw_db
Set up raw database for condition (c).
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety.py:286
Functionsetup_readline_history
Set up readline with command history.
chapter9/browser-use-rpa/browser-use/browser_use/cli.py:213
Functionsetup_test_environment
Automatically set up test environment for all tests.
chapter9/browser-use-rpa/browser-use/tests/ci/conftest.py:42
Functionsha256_bytes
(data: bytes)
chapter8/continued-pretraining/validation/run_report_audit.py:76
Functionsha256_bytes
(value: bytes)
chapter6/streaming-speech/run_official_experiment.py:51
Functionsha256_bytes
(data: bytes)
chapter3/experiment_utils.py:33
Functionsha256_file
Return a content identity for an evidence audio file.
chapter7/tts-quality-eval/pipeline.py:819
Functionshould_open_circuit
Open after repeated failures.
chapter9/self-modifying-agent/stable/retry_policy.py:14
Functionshould_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
Functionshould_open_circuit
Open immediately for permanent errors; otherwise use the threshold.
chapter9/self-modifying-agent/validation/real_20260802T043954Z/candidates/deterministic/retry_policy.py:16
Functionshould_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
Functionshould_open_circuit
Open after repeated failures.
chapter9/self-modifying-agent/validation/real_20260729T171050Z/candidates/real_llm/retry_policy.py:14
Functionshould_open_circuit
Open immediately for permanent errors; otherwise use the threshold.
chapter9/self-modifying-agent/validation/real_20260729T171050Z/candidates/deterministic/retry_policy.py:16
Functionshould_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
Functionshould_open_circuit
Open after repeated failures.
chapter9/self-modifying-agent/validation/real_20260729T171118Z/candidates/real_llm/retry_policy.py:14
Functionshould_open_circuit
Open immediately for permanent errors; otherwise use the threshold.
chapter9/self-modifying-agent/validation/real_20260729T171118Z/candidates/deterministic/retry_policy.py:16
Functionshould_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
Functionshould_retry
Return whether another tool call should be attempted.
chapter9/self-modifying-agent/stable/retry_policy.py:9
Functionshould_retry
Return whether another tool call should be attempted.
chapter9/self-modifying-agent/validation/real_20260802T043954Z/candidates/real_llm/retry_policy.py:9
Functionshould_retry
Return whether another tool call should be attempted.
chapter9/self-modifying-agent/validation/real_20260802T043954Z/candidates/deterministic/retry_policy.py:9
Functionshould_retry
Incorrect over-broad fix retained as a rejected candidate.
chapter9/self-modifying-agent/validation/real_20260802T043954Z/candidates/rejected_control/retry_policy.py:9
Functionshould_retry
Return whether another tool call should be attempted.
chapter9/self-modifying-agent/validation/real_20260729T171050Z/candidates/real_llm/retry_policy.py:7
Functionshould_retry
Return whether another tool call should be attempted.
chapter9/self-modifying-agent/validation/real_20260729T171050Z/candidates/deterministic/retry_policy.py:9
Functionshould_retry
Incorrect over-broad fix retained as a rejected candidate.
chapter9/self-modifying-agent/validation/real_20260729T171050Z/candidates/rejected_control/retry_policy.py:9
Functionshould_retry
Return whether another tool call should be attempted.
chapter9/self-modifying-agent/validation/real_20260729T171118Z/candidates/real_llm/retry_policy.py:7
Functionshould_retry
Return whether another tool call should be attempted.
chapter9/self-modifying-agent/validation/real_20260729T171118Z/candidates/deterministic/retry_policy.py:9
Functionshould_retry
Incorrect over-broad fix retained as a rejected candidate.
chapter9/self-modifying-agent/validation/real_20260729T171118Z/candidates/rejected_control/retry_policy.py:9
Functionshould_show_index_overlay
Determine if index overlay should be shown.
chapter9/browser-use-rpa/browser-use/browser_use/browser/python_highlights.py:103
Methodshould_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
Methodshow_config
Display current configuration
chapter1/search-codegen/main.py:156
Methodshow_history
Display conversation history
chapter1/search-codegen/main.py:89
Methodsimple_action
()
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry_action_parameter_injection.py:352
Methodsimple_action
(text: str, number: int = 10)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:123
Methodsimple_action
(value: int)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:745
Functionsimple_validator
(proposed, existing, accessor, st)
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_overhead.py:184
← previousnext →9,901–10,000 of 13,003, ranked by callers