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
↓ 1 callers
Method
serialize
(message: UserMessage)
chapter9/browser-use-rpa/browser-use/browser_use/llm/aws/serializer.py:188
↓ 1 callers
Method
serialize_messages
Serialize a list of browser-use messages to LangChain messages.
chapter9/browser-use-rpa/browser-use/examples/models/langchain/serializer.py:147
↓ 1 callers
Method
serialize_messages
(messages: list[BaseMessage])
chapter9/browser-use-rpa/browser-use/browser_use/llm/deepseek/serializer.py:108
↓ 1 callers
Method
serialize_messages
Serialize a list of browser_use messages to Ollama Messages.
chapter9/browser-use-rpa/browser-use/browser_use/llm/ollama/serializer.py:141
↓ 1 callers
Method
serialize_messages
Serialize a list of messages, extracting any system message. Returns: A tuple of (messages, system_message) where system_message is extracted
chapter9/browser-use-rpa/browser-use/browser_use/llm/anthropic/serializer.py:278
↓ 1 callers
Method
serialize_messages
(messages: list[BaseMessage])
chapter9/browser-use-rpa/browser-use/browser_use/llm/openai/serializer.py:164
↓ 1 callers
Method
serialize_messages
Serialize a list of browser_use messages to OpenRouter-compatible messages. Args: messages: List of browser_use messages Returns:
chapter9/browser-use-rpa/browser-use/browser_use/llm/openrouter/serializer.py:15
↓ 1 callers
Method
serialize_tree
Serialize the optimized tree to string format.
chapter9/browser-use-rpa/browser-use/browser_use/dom/serializer/serializer.py:729
↓ 1 callers
Function
serve
(data, port)
chapter1/context/vis_validation.py:203
↓ 1 callers
Function
serve_html
在 path 所在目录起一个本地静态服务,并打开浏览器指向该 HTML。
chapter5/dynamic-form/demo.py:551
↓ 1 callers
Function
sesame_analysis
(root: Path, manifest)
chapter8/speech-sft-experiment/analyze_campaign.py:95
↓ 1 callers
Function
setSidebarCollapsed
(collapsed, remember)
extras/nav-collapse.js:121
↓ 1 callers
Function
setTimer
(callback)
web-astro/scripts/reader-navigation.test.mjs:48
↓ 1 callers
Method
set_auth_flow_active
Mark auth flow as active to allow all events
chapter9/browser-use-rpa/browser-use/browser_use/sync/service.py:195
↓ 1 callers
Method
set_context
(self, **context: Any)
chapter10/staged-system-prompt/evidence.py:72
↓ 1 callers
Function
set_page_progression
(data)
flatten_epub_toc.py:84
↓ 1 callers
Function
set_recurring_timer
Set a recurring timer that repeats at intervals. Args: interval_seconds: Time between occurrences max_occurrences: Maximum nu
chapter4/collaboration-tools/src/timer_tools.py:278
↓ 1 callers
Function
set_state
(**kw)
chapter6/controllable-tts/markup.py:89
↓ 1 callers
Function
set_status
(order_id, new_status)
chapter5/permission-embedded-data-objects/pedo/eval/case_studies.py:315
↓ 1 callers
Method
set_viewport_size
Set the viewport size.
chapter9/browser-use-rpa/browser-use/browser_use/actor/page.py:245
↓ 1 callers
Function
setup
({ path = "/ai-agent-book/book-en/chapter1/", stored = null, urlFor = () => null, lifecycle = true, }
tests/js/auto-translate.test.js:75
↓ 1 callers
Function
setupWebSocket
()
chapter6/live-audio/frontend/pages/index.tsx:104
↓ 1 callers
Method
setupWebSocketHandlers
()
chapter6/live-audio/backend/server.js:108
↓ 1 callers
Method
setup_cdp_logger
Setup CDP message logger to capture already-transformed CDP logs.
chapter9/browser-use-rpa/browser-use/browser_use/cli.py:804
↓ 1 callers
Function
setup_demo_documents
Create demo documents if they don't exist
chapter3/agentic-rag/quickstart.py:48
↓ 1 callers
Function
setup_environment
(debug: bool)
chapter9/browser-use-rpa/browser-use/examples/apps/ad-use/ad_generator.py:11
↓ 1 callers
Function
setup_environment
(debug: bool)
chapter9/browser-use-rpa/browser-use/examples/apps/msg-use/scheduler.py:17
↓ 1 callers
Function
setup_environment
(debug: bool)
chapter9/browser-use-rpa/browser-use/examples/apps/news-use/news_monitor.py:21
↓ 1 callers
Function
setup_environment
Setup environment and check requirements
chapter3/contextual-retrieval/main.py:17
↓ 1 callers
Function
setup_environment
Setup environment and check requirements
chapter3/agentic-rag/main.py:17
↓ 1 callers
Function
setup_fragmented_schema
Set up RLS + CHECK + triggers covering all constraints.
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_comparisons.py:234
↓ 1 callers
Function
setup_hiring_pedo
(store)
chapter5/permission-embedded-data-objects/run_targeted_eval.py:226
↓ 1 callers
Function
setup_hiring_raw
(conn)
chapter5/permission-embedded-data-objects/run_targeted_eval.py:207
↓ 1 callers
Function
setup_log_pipes
Setup named pipes for log streaming. Usage: # In browser-use: setup_log_pipes(session_id="abc123") # In consumer process: tail -f {temp_dir
chapter9/browser-use-rpa/browser-use/browser_use/logging_config.py:284
↓ 1 callers
Function
setup_logger
Set up a colorful and informative logger for educational purposes. Args: name: Logger name level: Logging level (DEBUG,
chapter3/dense-embedding/logger.py:11
↓ 1 callers
Method
setup_logging
Configure logging to file and console
chapter2/context-compression/run_all_strategies.py:60
↓ 1 callers
Function
setup_pedo_data
(store, org="acme")
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_final_comprehensive.py:147
↓ 1 callers
Function
setup_pedo_store
Set up PEDO store for condition (a).
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety.py:295
↓ 1 callers
Function
setup_pm_pedo
Create project management test data in PEDO store.
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/harness.py:349
↓ 1 callers
Function
setup_pm_raw
Create project management test data in raw database.
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/harness.py:316
↓ 1 callers
Function
setup_raw_data
(conn, org="acme")
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_final_comprehensive.py:118
↓ 1 callers
Function
setup_raw_table
Set up raw table with no protections.
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_overhead.py:56
↓ 1 callers
Function
setup_reaction_store
Set up PEDO store with equivalent reaction logic.
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_reactions.py:156
↓ 1 callers
Method
setup_richlog_logging
Set up logging to redirect to RichLog widget instead of stdout.
chapter9/browser-use-rpa/browser-use/browser_use/cli.py:481
↓ 1 callers
Function
setup_rls_schema
Set up PostgreSQL RLS policies matching PEDO authorization rules.
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_comparisons.py:45
↓ 1 callers
Function
setup_rls_tables
Set up PostgreSQL tables with Row-Level Security.
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_overhead.py:31
↓ 1 callers
Function
setup_test_data
Create test data.
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_harness_focused.py:79
↓ 1 callers
Function
setup_textual_logging
()
chapter9/browser-use-rpa/browser-use/browser_use/cli.py:1483
↓ 1 callers
Function
setup_trigger_failure_test
Set up a trigger that will fail to test failure propagation.
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_reactions.py:123
↓ 1 callers
Function
sft
()
scripts/book_figures/chapter8.py:150
↓ 1 callers
Function
sha
(path)
chapter8/curly-quote-sft/train_sft.py:44
↓ 1 callers
Function
sha
(path: Path)
chapter4/collaboration-tools/run_experiment_4_5.py:183
↓ 1 callers
Function
sha
(path: Path)
chapter4/execution-tools/run_experiment_4_4.py:29
↓ 1 callers
Function
sha256
(path: Path)
chapter7/package_evidence.py:14
↓ 1 callers
Function
sha256
(path: Path)
chapter7/user-memory-system-evaluation/build_73_evidence.py:22
↓ 1 callers
Function
sha256
(path: Path)
chapter5/dynamic-form/campaign.py:40
↓ 1 callers
Function
sha256
(path: Path)
chapter5/erp-agent/campaign_postgres.py:59
↓ 1 callers
Function
sha256
(path: Path)
chapter5/conversational-ui/campaign_browser.py:46
↓ 1 callers
Function
sha256
(path: Path)
chapter5/paper-to-ppt/paper_source.py:62
↓ 1 callers
Function
sha256
(path: Path)
chapter8/cot-distillation/evaluate_student.py:24
↓ 1 callers
Function
sha256
(path: Path)
chapter8/cot-distillation/train_student.py:26
↓ 1 callers
Function
sha256
(path: Path)
chapter6/controllable-tts/validate_artifacts.py:21
↓ 1 callers
Function
sha256
(path: Path)
chapter6/claude-computer-use-native/validate_weather_run.py:20
↓ 1 callers
Function
sha256
(path: Path)
chapter2/agent-skills-ppt/prepare_official_skill.py:22
↓ 1 callers
Function
sha256
(path: Path)
chapter2/attention_visualization/run_attention_experiment.py:28
↓ 1 callers
Function
sha256
(path: Path)
chapter9/hermes-self-evolution/run_experiment_9_8.py:51
↓ 1 callers
Function
sha256
(path: Path)
chapter10/autonomous-phone-registration/run_acceptance.py:102
↓ 1 callers
Function
sha256
(path: Path)
chapter10/staged-system-prompt/run_official_experiment.py:24
↓ 1 callers
Function
sha256
(path: Path)
chapter10/talkact-reproduction/validate_campaign.py:28
↓ 1 callers
Function
sha256
(path: Path)
chapter10/voice-werewolf/evaluate_audio_run.py:25
↓ 1 callers
Function
sha256
(path: Path)
chapter10/generative-agents/package_evidence.py:26
↓ 1 callers
Function
sha256
(path: Path)
chapter10/generative-agents/validate_campaign.py:27
↓ 1 callers
Function
sha256
(path: Path)
chapter10/multi-role-transfer/validate_comparison.py:16
↓ 1 callers
Function
sha256
(path: Path)
chapter4/collaboration-tools/validate_experiment_4_5.py:35
↓ 1 callers
Function
sha256_bytes
(value: bytes)
chapter10/multi-role-transfer/package_comparison.py:37
↓ 1 callers
Function
sha256_bytes
(data: bytes)
chapter1/image-gen-workflow/evidence.py:44
↓ 1 callers
Function
sha256_file
(path: Path)
chapter7/elo-leaderboard/validation/validate_evidence.py:11
↓ 1 callers
Function
sha256_file
(path: Path, chunk_size: int = 8 * 1024 * 1024)
chapter7/elo-leaderboard/validation/run_experiment.py:49
↓ 1 callers
Function
sha256_file
(path: Path)
chapter8/premature-completion-dpo/train_dpo.py:26
↓ 1 callers
Function
sha256_file
(path: Path)
chapter8/prompt-distillation/run_experiment_8_8.py:89
↓ 1 callers
Function
sha256_file
(path: Path)
chapter6/streaming-speech/run_official_experiment.py:55
↓ 1 callers
Function
sha256_file
(path: Path)
chapter10/parallel-web-research/run_official_experiment.py:65
↓ 1 callers
Function
sha256_file
(path: Path)
chapter10/multi-role-transfer/run_official_experiment.py:61
↓ 1 callers
Function
sha256_file
(path: Path)
chapter10/multi-role-transfer/package_comparison.py:41
↓ 1 callers
Function
sha256_file
(path: Path)
chapter1/image-gen-workflow/evidence.py:48
↓ 1 callers
Function
sha256_json
(value: Any)
chapter6/phone-agent/verify_acceptance.py:84
↓ 1 callers
Function
shapeCount
(source, tag)
web-astro/scripts/retrieval-structure-layout.mjs:6
↓ 1 callers
Function
shell_quote
(value: str)
chapter7/openvla-robotwin2-eval/experiment.py:341
↓ 1 callers
Function
show
(field_label, field)
chapter3/contextual-retrieval/compare_retrieval.py:211
↓ 1 callers
Function
show_added
(label, added)
chapter3/mem0/quickstart.py:89
↓ 1 callers
Function
show_auth_progress
()
chapter9/browser-use-rpa/browser-use/browser_use/cli.py:1715
↓ 1 callers
Method
show_category_results
Show results for a specific category
chapter3/agentic-rag-for-user-memory/main.py:480
↓ 1 callers
Function
show_game_solution
Show the optimal solution to the game.
chapter1/learning-from-experience/quick_demo.py:23
↓ 1 callers
Method
show_help
Display help information
chapter1/search-codegen/main.py:55
↓ 1 callers
Method
show_help
Display help information.
chapter3/mem0/main.py:57
↓ 1 callers
Function
show_hidden_rules
Reveal the hidden game mechanics.
chapter1/learning-from-experience/demo.py:166
↓ 1 callers
Function
show_index_structure
Display the internal structure of the index
chapter3/sparse-embedding/demo.py:183
↓ 1 callers
Function
show_knowledge_stats
Show knowledge base statistics.
chapter9/browser-use-rpa/quickstart.py:98
↓ 1 callers
Method
show_memories
Display stored memories.
chapter3/mem0/main.py:74
↓ 1 callers
Method
show_menu
Display the main menu
chapter3/agentic-rag-for-user-memory/main.py:86
← previous
next →
6,901–7,000 of 13,003, ranked by callers