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
Function
probe
(path: Path)
chapter6/controllable-tts/demo.py:32
↓ 1 callers
Function
probe_cursor_synthesis
Check that a synthesized cursor really seeks to `at` before relying on it.
scripts/gen_star_history.py:188
↓ 1 callers
Function
probe_slots
(duration_hours: float, interval_seconds: float)
chapter7/model-benchmark/campaign.py:946
↓ 1 callers
Function
probe_streams
返回 ffprobe 的 JSON(format + streams),用于打印成片信息。
chapter5/video-edit/ffmpeg_utils.py:62
↓ 1 callers
Function
process
(path)
book-en/fit_svg_text.py:22
↓ 1 callers
Function
process
(path)
book-tr/fit_svg_text.py:25
↓ 1 callers
Function
process
(path)
book-ar/fit_svg_text.py:22
↓ 1 callers
Function
process
(path)
book-ru/fit_svg_text.py:22
↓ 1 callers
Function
process
(path)
book-es/fit_svg_text.py:25
↓ 1 callers
Function
process
(path)
book-mn/fit_svg_text.py:22
↓ 1 callers
Function
process
(path)
book-id/fit_svg_text.py:25
↓ 1 callers
Method
processAudioWithVAD
* Process audio chunk through VAD * @param {Buffer} audioChunk - Raw audio data
chapter6/live-audio/backend/server.js:225
↓ 1 callers
Method
processSpeechSegment
* Process speech segment with STT * @param {Buffer} audioData - Speech audio data * @param {number} duration - Duration of speech in ms
chapter6/live-audio/backend/server.js:252
↓ 1 callers
Method
processTTSQueue
()
chapter6/live-audio/backend/server.js:715
↓ 1 callers
Function
process_alive
(pid: int | None)
chapter10/generative-agents/monitor_campaign.py:16
↓ 1 callers
Function
process_alive
(pid: int | None)
chapter10/generative-agents/supervise_campaigns.py:25
↓ 1 callers
Method
process_all_documents
Process all legal documents with contextual chunking
chapter3/contextual-retrieval/index_local_laws_contextual.py:351
↓ 1 callers
Method
process_all_documents
Process all legal documents
chapter3/agentic-rag/index_local_laws.py:319
↓ 1 callers
Method
process_conversation_batch
Process multiple conversation contexts in batch Args: conversation_contexts: List of conversation contexts
chapter3/user-memory/background_memory_processor.py:605
↓ 1 callers
Method
process_document
Process a document using contextual chunking with optional immediate indexing
chapter3/contextual-retrieval/index_local_laws_contextual.py:187
↓ 1 callers
Function
process_element_highlight
Process a single element for highlighting.
chapter9/browser-use-rpa/browser-use/browser_use/browser/python_highlights.py:340
↓ 1 callers
Function
process_file
(path, dry_run=False)
book-en/strip_titles.py:37
↓ 1 callers
Function
process_file
(path, dry_run=False)
book-tr/strip_titles.py:36
↓ 1 callers
Function
process_file
(path, dry_run=False)
book/strip_titles.py:36
↓ 1 callers
Function
process_file
(path, dry_run=False)
book-zhtw/strip_titles.py:36
↓ 1 callers
Function
process_file
(path, dry_run=False)
book-mn/strip_titles.py:38
↓ 1 callers
Function
process_file
(path, dry_run=False)
book-id/strip_titles.py:36
↓ 1 callers
Function
process_file
(path, dry_run=False)
book-ta/strip_titles.py:37
↓ 1 callers
Function
process_file
Process a single file with the agent
chapter4/multimodal-agent/main.py:32
↓ 1 callers
Method
process_test_case
Process all conversations in a test case
chapter3/log-sanitization/agent.py:387
↓ 1 callers
Function
project_count_in_table
统计 chapter README 表格里项目数据行数(含 ✅/📖/🚧 类型列的行)。
scripts/check_i18n_consistency.py:55
↓ 1 callers
Method
prompt_description
Get a description of the action for the prompt
chapter9/browser-use-rpa/browser-use/browser_use/tools/registry/views.py:27
↓ 1 callers
Function
pronounceCodeBlock
(text)
chapter6/live-audio/backend/utils/textProcessor.js:170
↓ 1 callers
Function
pronounceNumbers
(text, language)
chapter6/live-audio/backend/utils/textProcessor.js:146
↓ 1 callers
Method
propose
首轮生成。
chapter5/paper-to-ppt/agents.py:397
↓ 1 callers
Method
propose
(self)
chapter5/paper-to-ppt/agents.py:447
↓ 1 callers
Function
proposer_reviewer
()
scripts/book_figures/chapter10.py:39
↓ 1 callers
Function
protected_segments
Return spans whose ASCII syntax must survive the quote edit. The data generator varies method names, JSON values and literals, so a fixed lis
chapter8/curly-quote-sft/evaluate.py:10
↓ 1 callers
Function
provider
()
chapter7/model-benchmark/test_campaign.py:53
↓ 1 callers
Function
provider_receipt_valid
(receipt: dict[str, Any], expected_model: str)
chapter5/paper-to-video/campaign.py:142
↓ 1 callers
Function
provider_summary
(status: dict)
chapter10/generative-agents/analyze_campaign.py:155
↓ 1 callers
Function
providers_from_config
(config: dict[str, Any], names: set[str] | None)
chapter7/model-benchmark/campaign.py:882
↓ 1 callers
Function
publishReady
()
chapter6/phone-agent/static/app.js:63
↓ 1 callers
Function
push
(role: str, parts: list[dict])
chapter5/provider-failover/renderers.py:147
↓ 1 callers
Function
push
(list, values)
extras/auto-translate.js:86
↓ 1 callers
Function
px
(rho)
web-astro/scripts/voice-architecture-layout.mjs:348
↓ 1 callers
Function
py
(latency)
web-astro/scripts/voice-architecture-layout.mjs:349
↓ 1 callers
Function
q_update
()
scripts/book_figures/chapter8.py:54
↓ 1 callers
Method
query
Query objects by type, matching real ObjectStore.query() semantics. The real store catches PermissionDeniedError per row and silently
tests/test_ch5_pedo_live_security_eval.py:294
↓ 1 callers
Method
query
Process query with contextual retrieval and detailed logging. This override adds educational logging to show the retrieval p
chapter3/contextual-retrieval/contextual_agent.py:253
↓ 1 callers
Function
query_indexes
Query RAPTOR and/or GraphRAG indexes.
chapter3/structured-index/main.py:68
↓ 1 callers
Function
queueing
()
scripts/book_figures/chapter6.py:115
↓ 1 callers
Function
quick_demo
Run a quick demonstration of the agent's capabilities
chapter3/memobase/quickstart.py:16
↓ 1 callers
Function
quick_integration_test
Quick integration test with real browser-use.
chapter9/browser-use-rpa/test_validation.py:316
↓ 1 callers
Function
quick_test
Run a quick test with context-aware citations strategy
chapter2/context-compression/quickstart.py:41
↓ 1 callers
Function
quick_test
Quick test with a single simple task (no replay comparison).
chapter9/browser-use-rpa/demo_email.py:265
↓ 1 callers
Function
quickstart
Quick demonstration of the execution tools.
chapter4/execution-tools/quickstart.py:9
↓ 1 callers
Function
quickstart
Run a quick demonstration of the memory system with separated architecture
chapter3/user-memory/quickstart.py:21
↓ 1 callers
Function
rag_comparison
()
scripts/book_figures/chapter3.py:277
↓ 1 callers
Function
rag_flow
()
scripts/book_figures/chapter3.py:101
↓ 1 callers
Method
rank
返回按相关性从高到低排序的 chunk_id 列表。
chapter3/contextual-retrieval/compare_retrieval.py:125
↓ 1 callers
Function
rank_comparison
(online: pd.DataFrame, official_method: pd.DataFrame)
chapter7/elo-leaderboard/validation/run_experiment.py:153
↓ 1 callers
Function
rankings_bm25
(texts: List[str], queries: List[str])
chapter3/contextual-retrieval/campaign.py:113
↓ 1 callers
Function
rankings_dense
(vectors: np.ndarray, query_vectors: np.ndarray)
chapter3/contextual-retrieval/campaign.py:118
↓ 1 callers
Function
raptor
()
scripts/book_figures/chapter3.py:239
↓ 1 callers
Function
raptor_context
(query: str, nodes: list[dict[str, Any]], encoder: Encoder, matrix: np.ndarray)
chapter3/structured-index/campaign.py:315
↓ 1 callers
Function
rate_limit_summary
( batches: Sequence[dict[str, Any]], observations: Sequence[dict[str, Any]], )
chapter7/model-benchmark/analysis.py:187
↓ 1 callers
Function
read
(directory)
web-astro/scripts/training-foundations-figures.test.mjs:100
↓ 1 callers
Function
read
()
chapter6/astra-async-steering/validation/runs/pilot-20260905-v1/source/experiment.py:247
↓ 1 callers
Function
read
()
chapter6/astra-async-steering/validation/runs/exp6-14-20260905-formal/source/experiment.py:262
↓ 1 callers
Function
read
()
chapter6/astra-async-steering/validation/runs/pilot-20260905-v2/source/experiment.py:247
↓ 1 callers
Function
readFigure
(directory, figure)
web-astro/scripts/retrieval-structure-layout.test.mjs:24
↓ 1 callers
Function
readFigure
(directory, figure)
web-astro/scripts/evaluation-overview-layout.test.mjs:19
↓ 1 callers
Function
readFigure
(directory, number)
web-astro/scripts/collaboration-context-figures.test.mjs:40
↓ 1 callers
Function
readFigure
(directory, figure)
web-astro/scripts/coding-production-layout.test.mjs:10
↓ 1 callers
Function
readFigure
(directory, number)
web-astro/scripts/memory-foundation-layout.test.mjs:38
↓ 1 callers
Function
readFigure
(directory, figure)
web-astro/scripts/tool-cache-layout.test.mjs:8
↓ 1 callers
Function
readFigure
(directory, figure)
web-astro/scripts/voice-architecture-layout.test.mjs:10
↓ 1 callers
Function
readFigure
(directory, figure)
web-astro/scripts/async-architecture-layout.test.mjs:10
↓ 1 callers
Function
readSidebarPreference
()
extras/nav-collapse.js:101
↓ 1 callers
Function
read_document
Read and extract content from documents (PDF, DOCX, PPTX). Args: file_path: Path to the document file (or URL) extract_i
chapter4/perception-tools/src/multimodal_tools.py:133
↓ 1 callers
Method
read_document
Read a legal document from disk
chapter3/contextual-retrieval/index_local_laws_contextual.py:141
↓ 1 callers
Method
read_document
Read a legal document from disk
chapter3/agentic-rag/index_local_laws.py:127
↓ 1 callers
Function
read_editable_sources
读取所有可编辑文件当前内容,返回 {相对路径: 内容}。
chapter5/conversational-ui/agent.py:119
↓ 1 callers
Method
read_file
(self, path: str)
chapter10/staged-system-prompt/tools.py:54
↓ 1 callers
Method
read_file
Read a file from current directory. Args: file_path: File path relative to current directory encodin
chapter4/execution-tools/terminal_controller.py:202
↓ 1 callers
Function
read_jsonl
(path: Path)
chapter7/openvla-robotwin2-eval/experiment.py:476
↓ 1 callers
Function
read_log_file
从外部日志文件读取日志(每行一条,忽略空行)。
chapter5/adaptive-log-parser/demo.py:93
↓ 1 callers
Function
read_provider
()
chapter1/context/tests/test_env_provider.py:20
↓ 1 callers
Function
read_webpage_content
Read and extract content from webpage. Args: url: URL to read extract_links: Whether to extract links Retur
chapter4/perception-tools/src/google_search_enhanced.py:141
↓ 1 callers
Function
real_task
(receipt: dict[str, Any])
chapter6/async-agent/run_real_experiment.py:249
↓ 1 callers
Function
reasoning_extra_body
Build the provider-specific reasoning control without silently ignoring it.
chapter8/cot-distillation/generate_data.py:114
↓ 1 callers
Function
reassemble_translations
( translations: dict[str, str], chapter_units: dict[str, list[str]] )
chapter10/book-translation/run_official_experiment.py:122
↓ 1 callers
Function
recall
(cover: Dict[str, bool])
chapter3/agentic-rag-for-user-memory/offline_demo.py:194
↓ 1 callers
Function
recall_at_k
计算一批查询在各 k 值下的 recall@k(命中率)。
chapter3/contextual-retrieval/compare_retrieval.py:141
↓ 1 callers
Method
receipt
(self)
chapter4/active-tool-discovery/run_exact_experiment.py:229
↓ 1 callers
Function
receipt_rows
(path: Path)
chapter10/generative-agents/monitor_campaign.py:26
↓ 1 callers
Function
reciprocal_rank_fusion
Fuse multiple ranked lists with Reciprocal Rank Fusion (RRF). Args: ranked_lists: Mapping from source name (e.g. "dense", "sparse") to a
chapter3/retrieval-pipeline/fusion.py:66
↓ 1 callers
Method
record
(self, row: dict[str, Any])
chapter10/generative-agents/action_arena_compat.py:84
↓ 1 callers
Method
record
( self, *, kind: str, request: dict[str, Any], started: float,
chapter10/generative-agents/provider_adapter.py:72
← previous
next →
6,301–6,400 of 13,003, ranked by callers