Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bojieli/ai-agent-book
/ functions
Functions
2,925 in github.com/bojieli/ai-agent-book
⨍
Functions
2,925
◇
Types & classes
570
↳
Endpoints
80
Method
evaluate
(self, api: tau_bench.model_utils.API)
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:138
Method
evaluate
(self, api: tau_bench.model_utils.API)
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:157
Method
evaluate
(self, api: tau_bench.model_utils.API)
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:175
Method
evaluate
(self, api: tau_bench.model_utils.API)
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:185
Method
evaluate
(self, api: tau_bench.model_utils.API)
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:199
Method
evaluate
(self, api: tau_bench.model_utils.API)
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:210
Method
evaluate_batch
Evaluate multiple test cases Args: test_ids: List of test IDs to evaluate (evaluates all if None) ca
chapter3/contextual-retrieval-for-user-memory/evaluator.py:472
Method
evaluate_batch
Evaluate multiple test cases
chapter3/contextual-retrieval-for-user-memory/contextual_evaluator.py:631
Function
example_basic_search
基础搜索示例
chapter1/web-search-agent/examples.py:118
Function
example_batch_search
批量搜索示例
chapter1/web-search-agent/examples.py:138
Function
example_comparative_search
比较搜索示例
chapter1/web-search-agent/examples.py:179
Function
example_contextual_search
带上下文的搜索示例
chapter1/web-search-agent/examples.py:160
Function
example_fact_check
事实核查示例
chapter1/web-search-agent/examples.py:199
Function
example_github_pr
Example: GitHub Pull Request creation.
chapter4/execution-tools/examples.py:117
Function
example_google_calendar
Example: Google Calendar integration.
chapter4/execution-tools/examples.py:99
Function
example_research_assistant
研究助手示例 - 深度研究某个主题
chapter1/web-search-agent/examples.py:220
Method
execute
Execute command in the persistent shell
chapter5/coding-agent/tools/shell_session.py:35
Method
execute
(self, invocable_or_invokables: Callable[..., T])
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:41
Method
execute
(self, invocable_or_invokables: Callable[..., T] | list[Callable[..., T]])
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:52
Method
execute
(self, invocable_or_invokables: Callable[..., T])
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:68
Method
execute
(self, invocable_or_invokables: Callable[..., T] | list[Callable[..., T]])
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:93
Method
execute
(self, invocable_or_invokables: Callable[..., T] | list[Callable[..., T]])
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:151
Method
execute
(self, invocable_or_invokables: Callable[..., T] | list[Callable[..., T]])
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:185
Method
exit_cli
Exit the application
chapter1/search-codegen/main.py:176
Method
extract_code_blocks
Extract code blocks or instruction examples from text.
chapter3/structured-index/document_processor.py:253
Method
extract_intel_opcodes
Extract Intel instruction opcodes and their descriptions. Specific to Intel architecture manuals.
chapter3/structured-index/document_processor.py:272
Method
extract_sections
Extract sections from text based on patterns. Useful for structured documents like Intel manuals.
chapter3/structured-index/document_processor.py:222
Function
fig2_11_memobase
Memobase 4 memory types with concrete examples.
book/gen_ch2_figs.py:674
Function
fig2_9
Mem0 architecture with actual data flow and concrete memory examples.
book/gen_ch2_figs.py:596
Function
fig3_1
本章知识脉络
book/gen_ch3_figs.py:45
Function
fig3_10
Agentic RAG 系统架构(实验 3.6)
book/gen_ch3_figs.py:534
Function
fig3_11
上下文感知检索(具体前缀示例)
book/gen_ch3_figs.py:602
Function
fig3_12
结构化知识提取流水线(实验 3.10)
book/gen_ch3_figs.py:662
Function
fig3_13
外部化学习循环(具体示例)
book/gen_ch3_figs.py:736
Function
fig3_14
GAIA 经验学习系统(实验 3.11)
book/gen_ch3_figs.py:785
Function
fig3_2
RAG 端到端流水线(具体示例)
book/gen_ch3_figs.py:110
Function
fig3_3
稠密嵌入技术演进
book/gen_ch3_figs.py:169
Function
fig3_4
HNSW 索引结构
book/gen_ch3_figs.py:221
Function
fig3_5
BM25 评分机制
book/gen_ch3_figs.py:266
Function
fig3_6
混合检索与重排序流水线(含分数示例)
book/gen_ch3_figs.py:317
Function
fig3_7
RAPTOR 树状结构
book/gen_ch3_figs.py:372
Function
fig3_8
GraphRAG 关系网络
book/gen_ch3_figs.py:419
Function
fig3_9
Agentic RAG 与 Non-Agentic RAG 对比(具体示例)
book/gen_ch3_figs.py:466
Function
fig4_1
MCP 协议时序图(具体消息载荷)
book/gen_ch4_figs.py:52
Function
fig4_10
工具自我进化流水线(多阶段)
book/gen_ch4_figs.py:741
Function
fig4_11
实验 4.7:Agent 从网络上寻找工具,自我进化
book/gen_ch4_figs.py:820
Function
fig4_12
Voyager 学习循环(课程+技能库+迭代提示)
book/gen_ch4_figs.py:899
Function
fig4_2
Sub-Agent 上下文准备(四策略对比)
book/gen_ch4_figs.py:128
Function
fig4_3
事件驱动架构(具体事件源和载荷)
book/gen_ch4_figs.py:197
Function
fig4_4
异步事件处理:三种策略时序对比
book/gen_ch4_figs.py:274
Function
fig4_5
实验 4.4:事件驱动 Agent 架构
book/gen_ch4_figs.py:353
Function
fig4_6
同步-异步模型矛盾
book/gen_ch4_figs.py:436
Function
fig4_7
实验 4.5:带打断能力的异步 Agent
book/gen_ch4_figs.py:511
Function
fig4_8
工具发现层次结构(server→tool 匹配)
book/gen_ch4_figs.py:584
Function
fig4_9
KV 缓存优化(系统提示词稳定性)
book/gen_ch4_figs.py:655
Function
fig5_1
OpenClaw 架构:以 Coding Agent 为核心的通用 Agent
book/gen_ch5_figs.py:38
Function
fig5_10
Agent 自举循环(自我复制与进化)
book/gen_ch5_figs.py:895
Function
fig5_11
实验 5.14:Meta-Agent 创建新 Agent 的流水线
book/gen_ch5_figs.py:983
Function
fig5_2
Coding Agent 多阶段工作流程(具体工具调用)
book/gen_ch5_figs.py:132
Function
fig5_3
搜索工具对比(四种工具 + 实际查询示例)
book/gen_ch5_figs.py:223
Function
fig5_4
文件编辑方案对比(五种方式 + 代码示例)
book/gen_ch5_figs.py:288
Function
fig5_5
PPT 生成流水线(Proposer-Reviewer 协作 + Slidev 代码)
book/gen_ch5_figs.py:387
Function
fig5_6
实验 5.6+5.7:论文→PPT→视频 端到端流水线
book/gen_ch5_figs.py:475
Function
fig5_7
实验 5.10:生产日志智能诊断流水线
book/gen_ch5_figs.py:784
Function
fig5_8
动态表单生成流程(LLM→HTML→JSON→继续)
book/gen_ch5_figs.py:593
Function
fig5_9
SQL 查询 Agent(artifact 模式 — 数据绕过 LLM)
book/gen_ch5_figs.py:689
Function
fig8_1
()
book/gen_ch8_figs.py:43
Function
fig8_2
()
book/gen_ch8_figs.py:49
Function
fig8_3
()
book/gen_ch8_figs.py:55
Function
fig8_4
()
book/gen_ch8_figs.py:72
Function
fig8_5
()
book/gen_ch8_figs.py:94
Function
fig8_6
()
book/gen_ch8_figs.py:100
Function
fig8_7
()
book/gen_ch8_figs.py:106
Function
fig9_1
()
book/gen_ch9_figs.py:52
Function
fig9_10
()
book/gen_ch9_figs.py:773
Function
fig9_11
()
book/gen_ch9_figs.py:860
Function
fig9_12
()
book/gen_ch9_figs.py:939
Function
fig9_2
()
book/gen_ch9_figs.py:149
Function
fig9_3
()
book/gen_ch9_figs.py:217
Function
fig9_4
()
book/gen_ch9_figs.py:312
Function
fig9_5
()
book/gen_ch9_figs.py:383
Function
fig9_6
()
book/gen_ch9_figs.py:461
Function
fig9_7
()
book/gen_ch9_figs.py:527
Function
fig9_8
()
book/gen_ch9_figs.py:610
Function
fig9_9
()
book/gen_ch9_figs.py:694
Function
file_reader
Read file contents.
chapter4/perception-tools/src/main.py:165
Function
filter_data_parallel
Filter large DataFrame using parallel processing. Args: df: Input DataFrame filters: Dictionary of filter conditions
chapter6/elo-leaderboard/parallel_processing.py:210
Function
filter_operations_by_action
Filter operations by action type Args: operations: List of memory operations action: Action type to filter ('add', 'upda
chapter3/user-memory/memory_operation_formatter.py:130
Function
flow_lr
Left-to-right flow diagram: nodes connected by arrows.
book/svg_lib.py:260
Function
flow_tb
Top-to-bottom flow diagram.
book/svg_lib.py:282
Method
forceEndSpeech
* Force end current speech session * @returns {Promise<Object|null>} Final speech data if available
chapter9/live-audio/backend/utils/vad.js:224
Method
force_json_prompt
(self, text: str, _: bool = False)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_chat.py:128
Function
format_chat_template
格式化对话模板 将数据集中的消息格式化为模型可以理解的对话格式 Args: example: 数据集中的一个样本 tokenizer: 分词器 Returns: dict: 格式化
chapter7/MultilingualReasoning/gpt_oss_20b_sft.py:70
Method
format_conversation_text
Format a conversation into readable text
chapter2/log-sanitization/test_loader.py:160
Function
format_tool_response
Format tool response for the chat model
chapter2/attention_visualization/tools.py:443
Function
format_tool_response
Format tool response for the chat model
chapter2/local_llm_serving/tools.py:491
Function
formatting_prompts_func_alpaca
(conversations)
chapter7/continued-pretraining/continued-pretrain.py:214
Function
formatting_prompts_func_wiki
(examples)
chapter7/continued-pretraining/continued-pretrain.py:191
Method
from_browser_action
Create a workflow step from browser-use action and element info
chapter8/browser-use-rpa/learning_agent/workflow.py:74
Method
from_dict
Create step from dictionary
chapter8/browser-use-rpa/learning_agent/workflow.py:67
← previous
next →
2,101–2,200 of 2,925, ranked by callers