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
update_memory
Update an existing memory card Args: memory_id: Memory ID in format category.card_key content: Compl
chapter3/user-memory/memory_manager.py:632
Method
update_range_contents
(range_name: str, new_contents: str, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:295
Function
upload_and_build
Upload a document and build index.
chapter3/structured-index/api_service.py:190
Function
upload_cv
(index: int, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/examples/use-cases/find_and_apply_to_jobs.py:82
Function
upload_file
(index: int, path: str, browser_session: BrowserSession, available_file_paths: list[str])
chapter9/browser-use-rpa/browser-use/examples/custom-functions/file_upload.py:33
Method
upload_file_to_element
( params: UploadFileAction, browser_session: BrowserSession, available_file_paths: list[str], file_system:
chapter9/browser-use-rpa/browser-use/browser_use/tools/service.py:393
Function
usage_of
(provider: str, response: dict)
chapter5/provider-failover/providers.py:142
Method
usage_summary
(self)
chapter9/trajectory-verifier/evidence_client.py:62
Method
usd_conversion_complete
(self)
chapter7/model-benchmark/campaign.py:114
Function
use
(n)
tests/js/auto-translate.test.js:42
Function
use_the_force
(browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/examples/custom-functions/action_filters.py:77
Method
user_id
(self)
chapter9/browser-use-rpa/browser-use/browser_use/telemetry/service.py:94
Method
user_id
Get the current user ID (temporary or real)
chapter9/browser-use-rpa/browser-use/browser_use/sync/auth.py:119
Method
validate
Validate the configuration
chapter2/system-hint/config.py:61
Method
validate
Validate required configuration Args: provider: Provider to validate (defaults to LLM_PROVIDER)
chapter1/context/config.py:158
Method
validate
Validate the configuration.
chapter4/execution-tools/config.py:124
Method
validate
Validate Kimi configuration.
chapter3/mem0/config.py:66
Method
validate
Validate Mem0 configuration.
chapter3/mem0/config.py:115
Method
validate
Validate LOCOMO configuration.
chapter3/mem0/config.py:144
Function
validateLesson
(lesson, index)
slides/generate.mjs:344
Method
validate_arm
(self)
chapter6/phone-agent/webrtc_app.py:70
Function
validate_attachment_size
Validate attachment size is within limits.
chapter5/permission-embedded-data-objects/pedo/scenarios/project_mgmt.py:96
Function
validate_billing_immutable_after_finalized
Once a billing_record is marked 'finalized', it cannot be edited.
chapter5/permission-embedded-data-objects/pedo/scenarios/healthcare.py:27
Function
validate_candidate_status
Validate candidate status follows the state machine.
chapter5/permission-embedded-data-objects/pedo/scenarios/hiring.py:31
Function
validate_classification_for_role
Confidential documents may only be created or modified by humans (hr_manager, finance_manager, admin). Agents may not author confidential cont
chapter5/permission-embedded-data-objects/pedo/scenarios/enterprise_agents.py:54
Function
validate_cli_arg
Validate that arg is a valid CLI argument.
chapter9/browser-use-rpa/browser-use/browser_use/browser/profile.py:246
Function
validate_comment_parent_not_locked
Comments cannot be added to or edited on a locked post.
chapter5/permission-embedded-data-objects/pedo/scenarios/forum.py:44
Function
validate_comment_task_exists
Validate that the task being commented on exists.
chapter5/permission-embedded-data-objects/pedo/scenarios/project_mgmt.py:85
Method
validate_devtools_headless
Cannot open devtools when headless is True
chapter9/browser-use-rpa/browser-use/browser_use/browser/profile.py:411
Function
validate_email_no_pii
Block emails containing PII unless sender is HR (who is permitted to handle PII intentionally). The validator reads the email body; the schema
chapter5/permission-embedded-data-objects/pedo/scenarios/enterprise_agents.py:41
Function
validate_evaluation_interview_exists
Validate that the interview for an evaluation exists.
chapter5/permission-embedded-data-objects/pedo/scenarios/hiring.py:96
Method
validate_file_size
Validate base64 file content size.
chapter9/browser-use-rpa/browser-use/browser_use/agent/cloud_events.py:73
Function
validate_interview_candidate_exists
Validate that the candidate for an interview exists and is in correct status.
chapter5/permission-embedded-data-objects/pedo/scenarios/hiring.py:80
Function
validate_only_paid_can_ship
(proposed, existing, accessor, store)
chapter5/permission-embedded-data-objects/pedo/scenarios/ecommerce.py:53
Function
validate_order_status
(proposed, existing, accessor, store)
chapter5/permission-embedded-data-objects/pedo/scenarios/ecommerce.py:39
Function
validate_position_open
Validate that the referenced position is still open.
chapter5/permission-embedded-data-objects/pedo/scenarios/hiring.py:48
Function
validate_post_not_locked
Locked posts cannot be edited (even by the author). Moderators can still lock/unlock via the 'locked' field itself.
chapter5/permission-embedded-data-objects/pedo/scenarios/forum.py:27
Function
validate_project_org_match
Validate that the project belongs to the accessor's organization.
chapter5/permission-embedded-data-objects/pedo/scenarios/project_mgmt.py:76
Method
validate_proxy_settings
Ensure proxy configuration is consistent.
chapter9/browser-use-rpa/browser-use/browser_use/browser/profile.py:729
Function
validate_salary_range
Validate salary expectation is within position range.
chapter5/permission-embedded-data-objects/pedo/scenarios/hiring.py:62
Method
validate_screenshot_size
Validate screenshot URL or base64 content size.
chapter9/browser-use-rpa/browser-use/browser_use/agent/cloud_events.py:132
Method
validate_success_requires_done
Ensure success=True can only be set when is_done=True
chapter9/browser-use-rpa/browser-use/browser_use/agent/views.py:118
Function
validate_task_assignee
Validate that the task assignee is a member of the project.
chapter5/permission-embedded-data-objects/pedo/scenarios/project_mgmt.py:59
Function
validate_task_priority
Validate task priority is a valid value.
chapter5/permission-embedded-data-objects/pedo/scenarios/project_mgmt.py:51
Function
validate_task_status
Validate task status follows the state machine.
chapter5/permission-embedded-data-objects/pedo/scenarios/project_mgmt.py:35
Function
validate_transaction_balance
Sender account must have sufficient balance for the transfer.
chapter5/permission-embedded-data-objects/pedo/scenarios/banking.py:26
Function
validate_transaction_recipient_exists
Recipient account must exist and accept transfers.
chapter5/permission-embedded-data-objects/pedo/scenarios/banking.py:47
Function
validate_url
Validate URL format and optionally check for specific schemes.
chapter9/browser-use-rpa/browser-use/browser_use/browser/profile.py:229
Method
validate_user_data_dir
Validate user data dir is set to a non-default path.
chapter9/browser-use-rpa/browser-use/browser_use/browser/profile.py:503
Method
verified
(request: Request, form)
chapter10/autonomous-phone-registration/twilio_channel.py:51
Method
very_slow_handler
(req)
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_recent_events.py:203
Function
video
()
scripts/book_figures/chapter5.py:71
Function
video_analyze
Analyze video with AI.
chapter4/perception-tools/src/main.py:541
Function
video_keyframes
Extract video keyframes.
chapter4/perception-tools/src/main.py:532
Function
video_parser
Parse video metadata.
chapter4/perception-tools/src/main.py:167
Method
voice
(request: Request)
chapter10/autonomous-phone-registration/twilio_channel.py:57
Method
vote
(self, candidates, players)
chapter10/voice-werewolf/test_live_human.py:108
Method
vote
(self, candidates: List[str], players: List[str])
chapter10/voice-werewolf/werewolf/human.py:226
Method
wait
(seconds: int = 3)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:647
Method
wait_for_auth
Wait for authentication to complete if in progress
chapter9/browser-use-rpa/browser-use/browser_use/sync/service.py:190
Method
wait_for_resume
Wait for user input to resume or exit. This method should be called after handling the first Ctrl+C. It temporarily restores default signal ha
chapter9/browser-use-rpa/browser-use/browser_use/utils.py:271
Method
warn_deterministic_rendering_weirdness
(self)
chapter9/browser-use-rpa/browser-use/browser_use/browser/profile.py:720
Method
warn_storage_state_user_data_dir_conflict
Warn when both storage_state and user_data_dir are set, as this can cause conflicts.
chapter9/browser-use-rpa/browser-use/browser_use/browser/profile.py:683
Method
warn_user_data_dir_non_default_version
If user is using default profile dir with a non-default channel, force-change it to avoid corrupting the default data dir created with a differen
chapter9/browser-use-rpa/browser-use/browser_use/browser/profile.py:698
Function
wayback_archived_content
Get archived webpage content.
chapter4/perception-tools/src/main.py:677
Function
wayback_search
Search Wayback Machine.
chapter4/perception-tools/src/main.py:345
Function
weather
Get weather data.
chapter4/perception-tools/src/main.py:246
Function
web_search
使用 DuckDuckGo 进行网页搜索(免费、无需 key)。 实现要点(参考 chapter4/perception-tools 的风格): - 主用 lite.duckduckgo.com(返回更稳定、不易被限流); - 备用 html.duckduckgo
chapter9/self-evolving-tools/base_tools.py:31
Function
web_search
Run a real Tavily web search and return attributable source excerpts.
chapter10/multi-role-transfer/tools.py:41
Function
web_search
Search the web and return results.
chapter4/perception-tools/src/main.py:104
Function
webpage_read_enhanced
Read webpage content.
chapter4/perception-tools/src/main.py:596
Function
webpage_reader
Read webpage content.
chapter4/perception-tools/src/main.py:139
Function
wiki_article_categories
Get article categories.
chapter4/perception-tools/src/main.py:618
Function
wiki_article_full
Get full Wikipedia article.
chapter4/perception-tools/src/main.py:609
Function
wiki_article_history
Get historical Wikipedia article.
chapter4/perception-tools/src/main.py:636
Function
wiki_article_links
Get article links.
chapter4/perception-tools/src/main.py:627
Function
wikipedia_search
Search Wikipedia.
chapter4/perception-tools/src/main.py:325
Method
windows_handler
(sig, frame)
chapter9/browser-use-rpa/browser-use/browser_use/utils.py:107
Function
worker_options
(timeout=None, env=None)
chapter7/model-action-threshold/tasks/localized_timeout/repo/app/worker.py:6
Function
workflow
()
scripts/book_figures/chapter5.py:34
Method
wrap_all
(f)
book-en/svg_lib.py:401
Method
wrap_all
(f)
book-tr/svg_lib.py:401
Method
wrap_all
(f)
book-ar/svg_lib.py:427
Method
wrap_all
(f)
book-ru/svg_lib.py:401
Method
wrap_all
(f)
book-es/svg_lib.py:401
Method
wrap_all
(f)
book-mn/svg_lib.py:402
Method
wrap_all
(f)
book-id/svg_lib.py:401
Function
wrapped_act
(action, session)
chapter9/browser-use-rpa/browser-use/tests/scripts/debug_iframe_scrolling.py:205
Function
wrapper
(self, *args, **kwargs)
chapter2/prompt-engineering/tau_bench/model_utils/api/logging.py:45
Function
wrapper
(*args, **kwargs)
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:23
Function
wrapper
(*args: P.args, **kwargs: P.kwargs)
chapter9/browser-use-rpa/browser-use/browser_use/utils.py:333
Function
wrapper
(*args, **kwargs)
chapter3/dense-embedding/logger.py:67
Method
write
(self, data)
chapter4/multimodal-agent/demo.py:22
Method
write_file
Write content to a file. Args: file_path: File path relative to current directory content: Content t
chapter4/execution-tools/terminal_controller.py:248
Function
writer_ctx
()
chapter5/permission-embedded-data-objects/tests/test_core.py:39
Method
xpath
Generate XPath for this DOM node, stopping at shadow boundaries or iframes.
chapter9/browser-use-rpa/browser-use/browser_use/dom/views.py:409
Function
xquik_search_posts
Search X posts through Xquik.
chapter4/perception-tools/src/main.py:311
Function
yfinance_company_info
Get company information.
chapter4/perception-tools/src/main.py:435
Function
yfinance_financials
Get financial statements.
chapter4/perception-tools/src/main.py:443
Function
yfinance_historical
Get historical stock data.
chapter4/perception-tools/src/main.py:423
← previous
next →
12,901–13,000 of 13,003, ranked by callers