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
test_www_authenticate_basic_realm_not_treated_as_credential
()
chapter3/log-sanitization/tests/test_authorization_basic.py:35
Method
test_www_subdomain_not_added_for_country_tlds
Test www subdomain is NOT automatically added for country-specific TLDs (2+ dots).
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_security2.py:166
Method
test_www_subdomain_not_added_for_existing_subdomains
Test that www is not automatically added for domains that already have subdomains.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_security2.py:194
Method
test_www_subdomain_not_added_for_url_patterns
Test that www is not automatically added for full URL patterns.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_security2.py:235
Method
test_www_subdomain_not_added_for_wildcard_patterns
Test that www is not automatically added for wildcard patterns.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_security2.py:218
Function
test_xquik_schema_keeps_credentials_out_of_agent_arguments
()
chapter4/perception-tools/test_expanded_catalog.py:52
Function
test_year_only_date_returns_error_payload
()
chapter4/perception-tools/test_wiki_article_history_date.py:26
Function
test_zero_answer_handling
()
tests/test_ch7_evaluate_multilingual.py:261
Function
test_zero_answer_handling
()
tests/test_ch8_evaluate_multilingual.py:261
Function
test_zero_cost_trajectory_not_flagged_expensive
A fully zero-cost trajectory must not mark productive turns as expensive. With a zero mean cost, the relative threshold is zero and ``cost_us
tests/test_ch6_cost_efficiency_analyzer.py:428
Function
test_zero_cost_trajectory_not_flagged_expensive
A fully zero-cost trajectory must not mark productive turns as expensive. With a zero mean cost, the relative threshold is zero and ``cost_us
tests/test_ch7_cost_efficiency_analyzer.py:428
Function
test_zero_interval_rejected
()
chapter4/collaboration-tools/test_recurring_interval_positive.py:21
Method
text
Automatically parse the text inside content, whether it's a string or a list of content parts.
chapter9/browser-use-rpa/browser-use/browser_use/llm/messages.py:178
Method
text
Automatically parse the text inside content, whether it's a string or a list of content parts.
chapter9/browser-use-rpa/browser-use/browser_use/llm/messages.py:212
Method
text_block
Word-wrap one or more captions to max_w at a single uniform font size (shrinking only if an unbreakable token is too wide), then stack them
book-en/svg_lib.py:390
Method
text_block
Word-wrap one or more captions to max_w at a single uniform font size (shrinking only if an unbreakable token is too wide), then stack them
book-tr/svg_lib.py:390
Method
text_block
Word-wrap one or more captions to max_w at a single uniform font size (shrinking only if an unbreakable token is too wide), then stack them
book-ar/svg_lib.py:416
Method
text_block
Word-wrap one or more captions to max_w at a single uniform font size (shrinking only if an unbreakable token is too wide), then stack them
book-ru/svg_lib.py:390
Method
text_block
Word-wrap one or more captions to max_w at a single uniform font size (shrinking only if an unbreakable token is too wide), then stack them
book-es/svg_lib.py:390
Method
text_block
Нэг буюу хэд хэдэн тайлбарыг max_w өргөнд нэгэн ижил фонтын хэмжээгээр үгээр нь таслан багтааж (зөвхөн салгах боломжгүй нэгж хэт өргөн бол
book-mn/svg_lib.py:390
Method
text_block
Word-wrap one or more captions to max_w at a single uniform font size (shrinking only if an unbreakable token is too wide), then stack them
book-id/svg_lib.py:390
Function
text_emulator
( env: Any, phone_number: str, message: str, timeout_sec: float = 20.0 )
chapter7/android-world/run_controlled_experiment.py:498
Function
text_summarizer
Summarize text.
chapter4/perception-tools/src/main.py:204
Function
time_execution_async
( additional_text: str = '', )
chapter9/browser-use-rpa/browser-use/browser_use/utils.py:356
Function
time_execution_sync
(additional_text: str = '')
chapter9/browser-use-rpa/browser-use/browser_use/utils.py:330
Function
timeout_handler
(signum, frame)
chapter1/context/tests/test_agent.py:214
Function
title
(ids)
web-astro/scripts/evaluation-layout-kit.mjs:4
Method
to_dict
(self)
chapter5/permission-embedded-data-objects/run_live_security_eval.py:161
Method
to_dict
Convert event to dictionary for JSON serialization
chapter6/agent-with-event-trigger/event_types.py:80
Method
to_dict
Convert to dictionary for JSON serialization
chapter2/attention_visualization/agent.py:69
Method
to_dict
(self)
chapter9/hermes-self-evolution/run_downstream_ablation.py:76
Method
to_dict
(self)
chapter9/browser-use-rpa/browser-use/browser_use/browser/views.py:118
Method
to_dict
(self)
chapter9/browser-use-rpa/browser-use/browser_use/dom/views.py:846
Method
to_dict
(self)
chapter9/browser-use-rpa/learning_agent/workflow.py:53
Method
to_dict
Convert step to dictionary for serialization
chapter9/browser-use-rpa/learning_agent/workflow.py:95
Method
to_dict
Convert decision to dictionary representation.
chapter9/harness-safety-gate/safety_policy_gate.py:32
Method
to_dict
(self)
chapter10/autonomous-phone-registration/models.py:94
Method
to_dict
Convert to dictionary format.
chapter3/user-memory-evaluation/models.py:48
Method
to_dict
(self)
chapter3/agentic-rag-for-user-memory/tools.py:26
Method
to_dict
(self)
chapter3/agentic-rag-for-user-memory/chunker.py:28
Method
to_dict
Convert evidence citation to dictionary format.
chapter3/structured-index/hybrid_retriever.py:30
Method
to_dict
Convert search result to dictionary format.
chapter3/structured-index/hybrid_retriever.py:56
Method
to_dict
Convert to dictionary
chapter3/user-memory/memory_manager.py:58
Method
to_dict
(self)
chapter3/contextual-retrieval/contextual_chunking.py:47
Method
to_dict
(self)
chapter3/contextual-retrieval-for-user-memory/contextual_chunking.py:53
Method
to_dict
(self)
chapter3/contextual-retrieval-for-user-memory/tools.py:26
Method
to_dict
(self)
chapter3/contextual-retrieval-for-user-memory/chunker.py:28
Method
to_summary
Generate a summary of the evaluation result.
chapter3/user-memory-evaluation/models.py:127
Method
toggle_tools
Toggle tool usage on/off
chapter1/search-codegen/main.py:107
Function
token_analysis
(dp: Datapoint, encoding_for_model: str = "gpt-4o")
chapter2/prompt-engineering/tau_bench/model_utils/api/tokens.py:78
Method
tool
(self, *a, **k)
chapter4/perception-tools/src/test_search_web_num_results_zero.py:33
Method
tool
(self, *a, **k)
chapter4/perception-tools/src/test_grep_max_results_zero.py:26
Method
tool
(self, *a, **k)
chapter4/perception-tools/src/test_negative_max_length.py:22
Function
tool_output_callback
(result: ToolResult, tool_use_id: str)
chapter6/claude-computer-use-native/run_weather_task.py:181
Function
tools
Create and provide a Tools instance.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:56
Function
tools
Create and provide a Tools instance.
chapter9/browser-use-rpa/browser-use/tests/ci/test_tools.py:87
Function
tools
Create and provide a Tools instance.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_GetDropdownOptionsEvent_aria_menus.py:143
Function
tools
Create and provide a Tools instance.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_ScrollEvent.py:74
Function
tools
Create and provide a Tools instance.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_tab_management.py:87
Function
tools
Create and provide a Tools instance.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_GetDropdownOptionsEvent.py:269
Function
tools
Create and provide a Tools instance.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_ClickElementEvent.py:67
Function
tools
Create a tools instance.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_element_cache.py:75
Method
top_action
(original: str, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:344
Method
total
(key: str)
chapter10/multi-role-transfer/skill_orchestrator.py:304
Method
total_cost
(self)
chapter9/browser-use-rpa/browser-use/browser_use/tokens/views.py:40
Method
total_tokens
(self)
chapter7/agent-cost-analysis/tracer.py:62
Method
total_tokens
(self)
chapter7/agent-cost-analysis/cost_efficiency_analyzer.py:46
Method
total_tokens
(self)
chapter5/paper-to-ppt/agents.py:105
Function
tracer
(msg)
chapter10/book-translation/demo.py:158
Method
tracked_ainvoke
(messages, output_format=None)
chapter9/browser-use-rpa/browser-use/browser_use/tokens/service.py:325
Method
tracked_get_model_output
(*args, **kwargs)
chapter9/browser-use-rpa/learning_agent/agent.py:402
Method
train_episode
Train for one episode (simplified).
chapter1/learning-from-experience/rl_agent.py:384
Function
transcribe
(path: str)
chapter7/tts-quality-eval/pipeline.py:290
Method
transcribe
(audioBuffer, tempDir, options = {})
chapter6/live-audio/backend/utils/providers/asrProviders.js:64
Method
transcribe
(audioBuffer, tempDir, options = {})
chapter6/live-audio/backend/utils/providers/asrProviders.js:154
Method
transcribe
(self, audio, mime)
chapter10/autonomous-phone-registration/test_webrtc_channel.py:33
Method
transcribe
(self, audio: bytes, mime: str)
chapter10/autonomous-phone-registration/webrtc_channel.py:266
Method
transcribe
(self, audio: bytes, mime: str)
chapter10/autonomous-phone-registration/webrtc_channel.py:342
Method
transcribe
(self, audio: bytes, mime: str)
chapter10/autonomous-phone-registration/webrtc_channel.py:419
Method
transcribe
()
chapter10/autonomous-phone-registration/voice.py:74
Method
traverse_node
Recursively traverse simplified DOM tree to count elements
chapter9/browser-use-rpa/browser-use/browser_use/agent/prompts.py:132
Function
tree_diagram
Tree diagram: root node with children below.
book-en/svg_lib.py:587
Function
tree_diagram
Tree diagram: root node with children below.
book-tr/svg_lib.py:587
Function
tree_diagram
Tree diagram: root node with children below.
book-ar/svg_lib.py:613
Function
tree_diagram
Tree diagram: root node with children below.
book-ru/svg_lib.py:587
Function
tree_diagram
Tree diagram: root node with children below.
book-es/svg_lib.py:587
Function
tree_diagram
Үндэс нь дээрээ, хүүхэд зангилаанууд нь доороо байрлах модон диаграм.
book-mn/svg_lib.py:588
Function
tree_diagram
Tree diagram: root node with children below.
book-id/svg_lib.py:587
Method
typed_action
(number: int, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:423
Method
typed_action
( count: int, rate: float, enabled: bool, name: str | None = None, browser_session: BrowserSess
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:795
Function
unauthorized
(_: httpx.Request)
chapter6/agent-with-event-trigger/test_unipile_mailbox_experiment.py:70
Method
uncached_prompt_tokens
(self)
chapter7/agent-cost-analysis/tracer.py:66
Method
unique_handler
(event)
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdog_base.py:87
Function
unregister_process
Unregister a background process
chapter6/agent-with-event-trigger/server_fastapi.py:367
Function
unregister_process
Unregister a background process
chapter6/agent-with-event-trigger/server.py:373
Method
unregister_process
Unregister a background process
chapter6/agent-with-event-trigger/client.py:125
Method
up
Release mouse button.
chapter9/browser-use-rpa/browser-use/browser_use/actor/mouse.py:63
Method
update_card
Update an existing memory card. Args: category: Card category card_key: Card key updates
chapter3/contextual-retrieval-for-user-memory/advanced_memory_manager.py:177
Method
update_memory
Update an existing note
chapter3/user-memory/memory_manager.py:193
Method
update_memory
Update an existing memory card
chapter3/user-memory/memory_manager.py:440
← previous
next →
12,801–12,900 of 13,003, ranked by callers