MCPcopy Create free account

hub / github.com/bojieli/ai-agent-book / functions

Functions2,925 in github.com/bojieli/ai-agent-book

Methodevaluate
(self, api: tau_bench.model_utils.API)
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:138
Methodevaluate
(self, api: tau_bench.model_utils.API)
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:157
Methodevaluate
(self, api: tau_bench.model_utils.API)
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:175
Methodevaluate
(self, api: tau_bench.model_utils.API)
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:185
Methodevaluate
(self, api: tau_bench.model_utils.API)
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:199
Methodevaluate
(self, api: tau_bench.model_utils.API)
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:210
Methodevaluate_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
Methodevaluate_batch
Evaluate multiple test cases
chapter3/contextual-retrieval-for-user-memory/contextual_evaluator.py:631
Functionexample_basic_search
基础搜索示例
chapter1/web-search-agent/examples.py:118
Functionexample_batch_search
批量搜索示例
chapter1/web-search-agent/examples.py:138
Functionexample_comparative_search
比较搜索示例
chapter1/web-search-agent/examples.py:179
Functionexample_contextual_search
带上下文的搜索示例
chapter1/web-search-agent/examples.py:160
Functionexample_fact_check
事实核查示例
chapter1/web-search-agent/examples.py:199
Functionexample_github_pr
Example: GitHub Pull Request creation.
chapter4/execution-tools/examples.py:117
Functionexample_google_calendar
Example: Google Calendar integration.
chapter4/execution-tools/examples.py:99
Functionexample_research_assistant
研究助手示例 - 深度研究某个主题
chapter1/web-search-agent/examples.py:220
Methodexecute
Execute command in the persistent shell
chapter5/coding-agent/tools/shell_session.py:35
Methodexecute
(self, invocable_or_invokables: Callable[..., T])
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:41
Methodexecute
(self, invocable_or_invokables: Callable[..., T] | list[Callable[..., T]])
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:52
Methodexecute
(self, invocable_or_invokables: Callable[..., T])
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:68
Methodexecute
(self, invocable_or_invokables: Callable[..., T] | list[Callable[..., T]])
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:93
Methodexecute
(self, invocable_or_invokables: Callable[..., T] | list[Callable[..., T]])
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:151
Methodexecute
(self, invocable_or_invokables: Callable[..., T] | list[Callable[..., T]])
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:185
Methodexit_cli
Exit the application
chapter1/search-codegen/main.py:176
Methodextract_code_blocks
Extract code blocks or instruction examples from text.
chapter3/structured-index/document_processor.py:253
Methodextract_intel_opcodes
Extract Intel instruction opcodes and their descriptions. Specific to Intel architecture manuals.
chapter3/structured-index/document_processor.py:272
Methodextract_sections
Extract sections from text based on patterns. Useful for structured documents like Intel manuals.
chapter3/structured-index/document_processor.py:222
Functionfig2_11_memobase
Memobase 4 memory types with concrete examples.
book/gen_ch2_figs.py:674
Functionfig2_9
Mem0 architecture with actual data flow and concrete memory examples.
book/gen_ch2_figs.py:596
Functionfig3_1
本章知识脉络
book/gen_ch3_figs.py:45
Functionfig3_10
Agentic RAG 系统架构(实验 3.6)
book/gen_ch3_figs.py:534
Functionfig3_11
上下文感知检索(具体前缀示例)
book/gen_ch3_figs.py:602
Functionfig3_12
结构化知识提取流水线(实验 3.10)
book/gen_ch3_figs.py:662
Functionfig3_13
外部化学习循环(具体示例)
book/gen_ch3_figs.py:736
Functionfig3_14
GAIA 经验学习系统(实验 3.11)
book/gen_ch3_figs.py:785
Functionfig3_2
RAG 端到端流水线(具体示例)
book/gen_ch3_figs.py:110
Functionfig3_3
稠密嵌入技术演进
book/gen_ch3_figs.py:169
Functionfig3_4
HNSW 索引结构
book/gen_ch3_figs.py:221
Functionfig3_5
BM25 评分机制
book/gen_ch3_figs.py:266
Functionfig3_6
混合检索与重排序流水线(含分数示例)
book/gen_ch3_figs.py:317
Functionfig3_7
RAPTOR 树状结构
book/gen_ch3_figs.py:372
Functionfig3_8
GraphRAG 关系网络
book/gen_ch3_figs.py:419
Functionfig3_9
Agentic RAG 与 Non-Agentic RAG 对比(具体示例)
book/gen_ch3_figs.py:466
Functionfig4_1
MCP 协议时序图(具体消息载荷)
book/gen_ch4_figs.py:52
Functionfig4_10
工具自我进化流水线(多阶段)
book/gen_ch4_figs.py:741
Functionfig4_11
实验 4.7:Agent 从网络上寻找工具,自我进化
book/gen_ch4_figs.py:820
Functionfig4_12
Voyager 学习循环(课程+技能库+迭代提示)
book/gen_ch4_figs.py:899
Functionfig4_2
Sub-Agent 上下文准备(四策略对比)
book/gen_ch4_figs.py:128
Functionfig4_3
事件驱动架构(具体事件源和载荷)
book/gen_ch4_figs.py:197
Functionfig4_4
异步事件处理:三种策略时序对比
book/gen_ch4_figs.py:274
Functionfig4_5
实验 4.4:事件驱动 Agent 架构
book/gen_ch4_figs.py:353
Functionfig4_6
同步-异步模型矛盾
book/gen_ch4_figs.py:436
Functionfig4_7
实验 4.5:带打断能力的异步 Agent
book/gen_ch4_figs.py:511
Functionfig4_8
工具发现层次结构(server→tool 匹配)
book/gen_ch4_figs.py:584
Functionfig4_9
KV 缓存优化(系统提示词稳定性)
book/gen_ch4_figs.py:655
Functionfig5_1
OpenClaw 架构:以 Coding Agent 为核心的通用 Agent
book/gen_ch5_figs.py:38
Functionfig5_10
Agent 自举循环(自我复制与进化)
book/gen_ch5_figs.py:895
Functionfig5_11
实验 5.14:Meta-Agent 创建新 Agent 的流水线
book/gen_ch5_figs.py:983
Functionfig5_2
Coding Agent 多阶段工作流程(具体工具调用)
book/gen_ch5_figs.py:132
Functionfig5_3
搜索工具对比(四种工具 + 实际查询示例)
book/gen_ch5_figs.py:223
Functionfig5_4
文件编辑方案对比(五种方式 + 代码示例)
book/gen_ch5_figs.py:288
Functionfig5_5
PPT 生成流水线(Proposer-Reviewer 协作 + Slidev 代码)
book/gen_ch5_figs.py:387
Functionfig5_6
实验 5.6+5.7:论文→PPT→视频 端到端流水线
book/gen_ch5_figs.py:475
Functionfig5_7
实验 5.10:生产日志智能诊断流水线
book/gen_ch5_figs.py:784
Functionfig5_8
动态表单生成流程(LLM→HTML→JSON→继续)
book/gen_ch5_figs.py:593
Functionfig5_9
SQL 查询 Agent(artifact 模式 — 数据绕过 LLM)
book/gen_ch5_figs.py:689
Functionfig8_1
()
book/gen_ch8_figs.py:43
Functionfig8_2
()
book/gen_ch8_figs.py:49
Functionfig8_3
()
book/gen_ch8_figs.py:55
Functionfig8_4
()
book/gen_ch8_figs.py:72
Functionfig8_5
()
book/gen_ch8_figs.py:94
Functionfig8_6
()
book/gen_ch8_figs.py:100
Functionfig8_7
()
book/gen_ch8_figs.py:106
Functionfig9_1
()
book/gen_ch9_figs.py:52
Functionfig9_10
()
book/gen_ch9_figs.py:773
Functionfig9_11
()
book/gen_ch9_figs.py:860
Functionfig9_12
()
book/gen_ch9_figs.py:939
Functionfig9_2
()
book/gen_ch9_figs.py:149
Functionfig9_3
()
book/gen_ch9_figs.py:217
Functionfig9_4
()
book/gen_ch9_figs.py:312
Functionfig9_5
()
book/gen_ch9_figs.py:383
Functionfig9_6
()
book/gen_ch9_figs.py:461
Functionfig9_7
()
book/gen_ch9_figs.py:527
Functionfig9_8
()
book/gen_ch9_figs.py:610
Functionfig9_9
()
book/gen_ch9_figs.py:694
Functionfile_reader
Read file contents.
chapter4/perception-tools/src/main.py:165
Functionfilter_data_parallel
Filter large DataFrame using parallel processing. Args: df: Input DataFrame filters: Dictionary of filter conditions
chapter6/elo-leaderboard/parallel_processing.py:210
Functionfilter_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
Functionflow_lr
Left-to-right flow diagram: nodes connected by arrows.
book/svg_lib.py:260
Functionflow_tb
Top-to-bottom flow diagram.
book/svg_lib.py:282
MethodforceEndSpeech
* Force end current speech session * @returns {Promise<Object|null>} Final speech data if available
chapter9/live-audio/backend/utils/vad.js:224
Methodforce_json_prompt
(self, text: str, _: bool = False)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_chat.py:128
Functionformat_chat_template
格式化对话模板 将数据集中的消息格式化为模型可以理解的对话格式 Args: example: 数据集中的一个样本 tokenizer: 分词器 Returns: dict: 格式化
chapter7/MultilingualReasoning/gpt_oss_20b_sft.py:70
Methodformat_conversation_text
Format a conversation into readable text
chapter2/log-sanitization/test_loader.py:160
Functionformat_tool_response
Format tool response for the chat model
chapter2/attention_visualization/tools.py:443
Functionformat_tool_response
Format tool response for the chat model
chapter2/local_llm_serving/tools.py:491
Functionformatting_prompts_func_alpaca
(conversations)
chapter7/continued-pretraining/continued-pretrain.py:214
Functionformatting_prompts_func_wiki
(examples)
chapter7/continued-pretraining/continued-pretrain.py:191
Methodfrom_browser_action
Create a workflow step from browser-use action and element info
chapter8/browser-use-rpa/learning_agent/workflow.py:74
Methodfrom_dict
Create step from dictionary
chapter8/browser-use-rpa/learning_agent/workflow.py:67
← previousnext →2,101–2,200 of 2,925, ranked by callers