MCPcopy Create free account

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

Functions13,003 in github.com/bojieli/ai-agent-book

↓ 1 callersFunctionorganize
整理 folder 顶层的文件(不递归子目录)。 遍历 folder 第一层的所有文件,按类别移动到对应的分类子文件夹; 忽略所有子目录,也跳过脚本自身(防止脚本恰好放在该目录时被移走)。 Args: folder: 待整理的文件夹路径(须已存在且为目录)
chapter10/staged-system-prompt/runs/staged-system-prompt-kimi-k3-20260730-v3/workspace/organize_downloads.py:81
↓ 1 callersFunctionorganize_downloads
整理下载文件夹的顶层文件,返回成功移动的文件数量。 只处理顶层文件,忽略所有子文件夹(包括脚本创建的分类文件夹); 按类型移动到下载文件夹内部的分类子文件夹中,并逐个打印移动情况; 单个文件移动失败时打印提示并继续处理其余文件。
chapter10/staged-system-prompt/runs/staged-system-prompt-kimi-k3-20260730-v2/workspace/organize_downloads.py:66
↓ 1 callersFunctionorpheus_analysis
(root: Path, manifest)
chapter8/speech-sft-experiment/analyze_campaign.py:48
↓ 1 callersFunctionoutline
()
slides/generate.mjs:411
↓ 1 callersFunctionoutline
(root)
scripts/book_figures/typography.py:193
↓ 1 callersFunctionoutput_text
(response)
chapter6/astra-async-steering/experiment.py:60
↓ 1 callersFunctionoutput_text
(response)
chapter6/astra-async-steering/validation/runs/pilot-20260905-v1/source/experiment.py:60
↓ 1 callersFunctionoutput_text
(response)
chapter6/astra-async-steering/validation/runs/exp6-14-20260905-formal/source/experiment.py:60
↓ 1 callersFunctionoutput_text
(response)
chapter6/astra-async-steering/validation/runs/pilot-20260905-v2/source/experiment.py:60
↓ 1 callersFunctionoutput_types
(result: Dict[str, Any])
chapter1/search-codegen/run_experiment_1_3.py:102
↓ 1 callersFunctionoutputs_for_image
(retained: dict[str, Any], image: str)
chapter8/MiniMind-pretrain/validation/run_vlm_training_report_audit.py:308
↓ 1 callersFunctionoverlaps
(first, second)
web-astro/scripts/collaboration-manager-figures.test.mjs:116
↓ 1 callersFunctionp
(semanticId)
web-astro/scripts/async-architecture-layout.mjs:457
↓ 1 callersFunctionpackage_evidence
(run_dir: Path, command: str)
chapter8/prompt-distillation/run_experiment_8_8.py:647
↓ 1 callersFunctionpad
(text: str, w: int)
chapter7/model-benchmark/demo.py:74
↓ 1 callersFunctionpanel
(x, title, subtitle, fill)
web-astro/scripts/retrieval-structure-layout.mjs:560
↓ 1 callersFunctionparagraph
(items, x, y, width, height, options = {})
web-astro/scripts/evolution-flow-figures.mjs:373
↓ 1 callersFunctionparallel
()
scripts/book_figures/chapter10.py:84
↓ 1 callersMethodparameterize
Create a parameterized copy of this workflow with specific values. Args: parameters: Dictionary mapping paramete
chapter9/browser-use-rpa/learning_agent/workflow.py:227
↓ 1 callersMethodparent
(self)
chapter9/browser-use-rpa/browser-use/browser_use/dom/views.py:387
↓ 1 callersMethodparent_branch_hash
Hash the element based on its parent branch path and attributes.
chapter9/browser-use-rpa/browser-use/browser_use/dom/views.py:772
↓ 1 callersFunctionparse
(log_text: str)
chapter7/android-world/failure-attribution/extract_trajectories.py:28
↓ 1 callersFunctionparse
({ path, source })
web-astro/scripts/book-math.test.mjs:53
↓ 1 callersFunctionparse
(s: str)
chapter2/prompt-engineering/tau_bench/model_utils/model/utils.py:77
↓ 1 callersFunctionparse_action
(response: dict[str, Any])
chapter4/active-tool-discovery/run_exact_experiment.py:300
↓ 1 callersFunctionparse_args
()
chapter7/public-health-reporting-eval/demo.py:24
↓ 1 callersFunctionparse_args
()
chapter7/model-action-threshold/experiment.py:622
↓ 1 callersFunctionparse_args
()
chapter7/model-benchmark/demo.py:197
↓ 1 callersFunctionparse_args
()
chapter7/elo-leaderboard/validation/run_experiment.py:228
↓ 1 callersFunctionparse_args
(argv=None)
chapter5/code-for-math/demo.py:345
↓ 1 callersFunctionparse_args
解析命令行参数。
chapter5/paper-to-video/demo.py:523
↓ 1 callersFunctionparse_args
解析命令行参数:控制跑几轮、是否跳过构建。
chapter5/conversational-ui/demo.py:135
↓ 1 callersFunctionparse_args
(argv=None)
chapter5/conversational-ui/backend/main.py:124
↓ 1 callersFunctionparse_args
(argv=None)
chapter5/conversational-ui/validation/runs/20260729T212616Z-5_11-hmr/app/backend/main.py:122
↓ 1 callersFunctionparse_args
(argv=None)
chapter5/conversational-ui/validation/runs/20260729T212933Z-5_11-hmr/app/backend/main.py:122
↓ 1 callersFunctionparse_args
(argv=None)
chapter5/conversational-ui/validation/runs/20260729T212727Z-5_11-hmr/app/backend/main.py:122
↓ 1 callersFunctionparse_args
(argv=None)
chapter5/paper-to-ppt/demo.py:327
↓ 1 callersFunctionparse_args
()
chapter8/cot-distillation/evaluate_student.py:174
↓ 1 callersFunctionparse_args
()
chapter8/cot-distillation/train_student.py:112
↓ 1 callersFunctionparse_args
()
chapter8/MiniMind-pretrain/validation/validate_vlm_evidence.py:323
↓ 1 callersFunctionparse_args
()
chapter8/MiniMind-pretrain/validation/run_training_report_audit.py:655
↓ 1 callersFunctionparse_args
()
chapter8/MiniMind-pretrain/validation/run_vlm_training_report_audit.py:806
↓ 1 callersFunctionparse_args
()
chapter8/continued-pretraining/compare_models.py:124
↓ 1 callersFunctionparse_args
()
chapter8/continued-pretraining/continued-pretrain.py:33
↓ 1 callersFunctionparse_args
()
chapter8/continued-pretraining/validation/run_report_audit.py:683
↓ 1 callersFunctionparse_args
()
chapter6/streaming-speech/run_official_experiment.py:96
↓ 1 callersFunctionparse_args
()
chapter6/computer-use-open-model/main.py:35
↓ 1 callersFunctionparse_args
()
chapter2/prompt-engineering/run.py:17
↓ 1 callersFunctionparse_args
()
chapter2/prompt-engineering/analyze_results.py:320
↓ 1 callersFunctionparse_args
()
chapter2/prompt-engineering/run_ablation.py:41
↓ 1 callersFunctionparse_args
()
chapter2/agent-skills-ppt/demo.py:420
↓ 1 callersFunctionparse_args
()
chapter9/hermes-self-evolution/run_review_pass.py:23
↓ 1 callersFunctionparse_args
()
chapter9/hermes-self-evolution/run_acceptance_review.py:22
↓ 1 callersFunctionparse_args
()
chapter9/hermes-self-evolution/run_experiment_9_8.py:65
↓ 1 callersFunctionparse_args
命令行参数:不带任何参数运行时行为与原版完全一致。
chapter10/book-translation/demo.py:39
↓ 1 callersFunctionparse_args
解析命令行参数。不传任何参数时,行为与原始固定脚本完全一致。
chapter10/staged-system-prompt/demo.py:23
↓ 1 callersFunctionparse_args
解析命令行参数:可选的下载文件夹路径,默认 ~/Downloads。
chapter10/staged-system-prompt/runs/staged-system-prompt-kimi-k3-20260730-v2/workspace/organize_downloads.py:95
↓ 1 callersFunctionparse_args
解析命令行参数。 Args: argv: 命令行参数列表,None 时使用 sys.argv[1:]。 Returns: argparse.Namespace: 包含 downloads_dir(Path 类型)的解析结果。
chapter10/staged-system-prompt/runs/staged-system-prompt-kimi-k3-20260730-v1/workspace/organize_downloads.py:41
↓ 1 callersFunctionparse_args
解析命令行参数。 Args: argv: 参数列表;为 None 时使用 sys.argv。 Returns: 解析结果,folder 字段为下载文件夹路径(默认 ~/Downloads)。
chapter10/staged-system-prompt/runs/staged-system-prompt-kimi-k3-20260730-v3/workspace/organize_downloads.py:126
↓ 1 callersFunctionparse_args
()
chapter10/parallel-web-research/run_official_experiment.py:210
↓ 1 callersFunctionparse_args
()
chapter10/parallel-web-research/demo.py:23
↓ 1 callersFunctionparse_args
()
chapter10/multi-role-transfer/run_comparison.py:253
↓ 1 callersFunctionparse_args
()
chapter10/multi-role-transfer/validate_comparison.py:20
↓ 1 callersFunctionparse_args
()
chapter10/multi-role-transfer/run_official_experiment.py:119
↓ 1 callersFunctionparse_args
()
chapter10/multi-role-transfer/package_comparison.py:65
↓ 1 callersFunctionparse_args
()
chapter10/multi-role-transfer/judge_comparison.py:36
↓ 1 callersFunctionparse_args
命令行参数——均为可选,不传时行为与最初版本完全一致(跑默认复合任务)。
chapter10/multi-role-transfer/demo.py:109
↓ 1 callersFunctionparse_arguments
Parse command-line arguments.
chapter9/browser-use-rpa/browser-use/examples/ui/command_line.py:54
↓ 1 callersFunctionparse_attrs
(attr_str)
book-en/strip_titles.py:33
↓ 1 callersFunctionparse_attrs
(attr_str)
book-tr/strip_titles.py:32
↓ 1 callersFunctionparse_attrs
(attr_str)
book/strip_titles.py:32
↓ 1 callersFunctionparse_attrs
(attr_str)
book-zhtw/strip_titles.py:32
↓ 1 callersFunctionparse_attrs
(attr_str)
book-mn/strip_titles.py:34
↓ 1 callersFunctionparse_attrs
(attr_str)
book-id/strip_titles.py:32
↓ 1 callersFunctionparse_attrs
(attr_str)
book-ta/strip_titles.py:33
↓ 1 callersFunctionparse_final_answer
Parse the final answer from the model response. For Thinking models, extract from <think>...</think> tags or after them.
chapter8/prompt-distillation/create_data.py:88
↓ 1 callersFunctionparse_frontmatter
从 SKILL.md 顶部的 --- YAML frontmatter --- 中解析 name / description。
chapter2/agent-skills-ppt/demo.py:57
↓ 1 callersFunctionparse_image
Parse and understand image content. Args: image_path: Path to image file or URL use_llm: Whether to use LLM for image un
chapter4/perception-tools/src/multimodal_tools.py:248
↓ 1 callersFunctionparse_json
(text: str)
chapter10/voice-werewolf/evaluate_audio_run.py:40
↓ 1 callersFunctionparse_json
(text: str)
chapter3/structured-index/campaign.py:108
↓ 1 callersFunctionparse_json
(text: str)
chapter3/user-memory/run_evaluation.py:62
↓ 1 callersFunctionparse_json
(text: str)
chapter3/agentic-rag/campaign.py:39
↓ 1 callersFunctionparse_json
(text: str)
chapter3/structured-knowledge-extraction/campaign.py:44
↓ 1 callersFunctionparse_json_content
(content: str)
chapter5/paper-to-video/campaign.py:63
↓ 1 callersFunctionparse_judgment
(text: str)
chapter10/multi-role-transfer/judge_comparison.py:46
↓ 1 callersFunctionparse_messages
Parse messages.txt and extract scheduling info
chapter9/browser-use-rpa/browser-use/examples/apps/msg-use/scheduler.py:44
↓ 1 callersFunctionparse_payload
(result)
chapter4/active-tool-discovery/run_exact_experiment.py:342
↓ 1 callersMethodparse_pdf
Download and parse a PDF from URL or local file Args: url: URL or file path of the PDF to parse
chapter1/context/agent.py:80
↓ 1 callersMethodparse_request
把自然语言需求解析成结构化意图:目标场景描述 + 特效列表。
chapter5/video-edit/agents.py:236
↓ 1 callersMethodparse_response
(self, response: str)
chapter2/prompt-engineering/tau_bench/envs/user.py:221
↓ 1 callersFunctionparse_response_content
(content: str)
chapter8/MiniMind-pretrain/validation/validate_evidence.py:83
↓ 1 callersFunctionparse_response_content
(content: str)
chapter8/continued-pretraining/validation/validate_evidence.py:46
↓ 1 callersFunctionparse_retained_outputs
Extract all six historical LLM evaluation cells from the bilingual report.
chapter8/MiniMind-pretrain/validation/run_training_report_audit.py:151
↓ 1 callersFunctionparse_retained_outputs
(report_path: Path = REPORT_PATH)
chapter8/MiniMind-pretrain/validation/run_vlm_training_report_audit.py:271
↓ 1 callersFunctionparse_retained_outputs
Extract the five-by-three raw comparison matrix from the saved report.
chapter8/continued-pretraining/validation/run_report_audit.py:100
↓ 1 callersMethodparse_tool_calls
Parse tool calls from agent response using Qwen3 format
chapter2/attention_visualization/main.py:65
↓ 1 callersFunctionparse_value
(value: Any)
chapter4/collaboration-tools/run_experiment_4_5.py:195
↓ 1 callersFunctionparse_video
Parse and extract information from video files. Args: video_path: Path to video file or URL extract_frames: Whether to e
chapter4/perception-tools/src/multimodal_tools.py:322
↓ 1 callersFunctionparser
()
chapter10/autonomous-phone-registration/run_acceptance.py:137
↓ 1 callersFunctionparser
()
chapter10/autonomous-phone-registration/demo.py:34
← previousnext →6,101–6,200 of 13,003, ranked by callers