MCPcopy Create free account

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

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

↓ 1 callersFunctionrequest
(prompt, parameters)
chapter10/generative-agents/tests/test_runner_helpers.py:85
↓ 1 callersMethodrequestPaused
(self, callback)
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_proxy.py:69
↓ 1 callersFunctionrequest_admin_input
Request input from a human administrator. Args: prompt: Question or prompt for the admin input_type: Type of input expected (
chapter4/collaboration-tools/src/hitl_tools.py:301
↓ 1 callersFunctionrequest_roles
(turn: Dict[str, Any])
chapter1/context/run_experiment_1_1.py:151
↓ 1 callersFunctionrequire_canonical_runtime
()
chapter6/phone-agent/run_acceptance.py:79
↓ 1 callersFunctionrequires_confirmation
(tool_name, args=None)
chapter9/harness-safety-gate/validation/real_20260807T160109Z/candidates/real_llm/confirmation_gate.py:21
↓ 1 callersMethodrerank
(self, query: str, documents: Sequence["Chunk"], top_k: int)
chapter7/user-memory-system-evaluation/experiment.py:404
↓ 1 callersMethodrerank
candidates: [(doc_id, text)] -> [(doc_id, rerank_score)] 降序,取 top_k。
chapter3/retrieval-pipeline/evaluate.py:317
↓ 1 callersMethodrerun_history
Rerun a saved history of actions with error handling and retry logic. Args: history: The history to replay m
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:1777
↓ 1 callersMethodreset
Reset agent state
chapter5/coding-agent/agent.py:489
↓ 1 callersMethodreset
Reset tracker for new generation
chapter2/attention_visualization/agent.py:97
↓ 1 callersMethodreset
Reset the agent's state
chapter2/system-hint/agent.py:1051
↓ 1 callersMethodreset
Reset state after resuming.
chapter9/browser-use-rpa/browser-use/browser_use/utils.py:321
↓ 1 callersMethodreset
Reset the agent state.
chapter3/mem0/agent.py:476
↓ 1 callersMethodreset_agent
Reset the agent state
chapter6/agent-with-event-trigger/client.py:77
↓ 1 callersFunctionreset_api_turns
()
chapter9/prompt-auto-optimization/config.py:154
↓ 1 callersMethodreset_conversation
Reset conversation history
chapter2/local_llm_serving/ollama_native.py:506
↓ 1 callersFunctionreset_environment
()
chapter9/browser-use-rpa/workflow_validation_demo.py:121
↓ 1 callersFunctionreset_extraction_receipts
()
chapter10/autonomous-phone-registration/orchestration.py:20
↓ 1 callersFunctionresolveFishReferenceId
(requested)
chapter6/live-audio/backend/run_real_validation.js:264
↓ 1 callersFunctionresolve_backend
(provider: str, model: str | None)
chapter5/conversational-ui/campaign_browser.py:84
↓ 1 callersFunctionresolve_client
()
chapter5/agent-creator/creator.py:71
↓ 1 callersFunctionresolve_config
(path: Path)
chapter7/openvla-robotwin2-eval/experiment.py:50
↓ 1 callersFunctionresolve_conflict
返回一个不冲突的目标路径。 若 dest 不存在则原样返回;否则在扩展名之前依次追加 _1、_2 ... 直到得到不存在的路径,保证不覆盖已有文件。 Args: dest: 期望的目标文件路径。 Returns: 实际可用的目标文
chapter10/staged-system-prompt/runs/staged-system-prompt-kimi-k3-20260730-v3/workspace/organize_downloads.py:59
↓ 1 callersFunctionresolve_hint
(graph: nx.Graph, hint: str)
chapter3/structured-index/campaign.py:327
↓ 1 callersFunctionresolve_key
Find this provider's own credential, refusing to fall back. The registry's :func:`resolve_backend` would happily reroute through OpenRouter w
chapter1/context/run_experiment_1_1.py:98
↓ 1 callersFunctionresolve_kimi_binary
()
chapter2/agent-skills-ppt/run_official_experiment.py:96
↓ 1 callersFunctionresolve_metrics
(raw: str)
chapter7/model-benchmark/demo.py:241
↓ 1 callersFunctionresolve_model
(api_key: str, requested: str | None)
chapter6/controllable-tts/evaluate_audio_quality.py:85
↓ 1 callersFunctionresolve_openrouter_model
(requested: str | None)
chapter6/controllable-tts/evaluate_audio_quality.py:109
↓ 1 callersFunctionresolve_relative
(base: Path, relative: str)
chapter8/MiniMind-pretrain/validation/validate_evidence.py:67
↓ 1 callersFunctionresolve_relative
(base: Path, relative: str)
chapter8/continued-pretraining/validation/validate_evidence.py:57
↓ 1 callersFunctionresolve_repo_path
(relative: str)
chapter8/MiniMind-pretrain/validation/validate_vlm_evidence.py:56
↓ 1 callersFunctionresolve_scenarios
把 --scenario 解析成有序去重的场景 key 列表。
chapter7/agent-cost-analysis/demo.py:56
↓ 1 callersFunctionrespond_to_request
Admin response to an approval request. Args: request_id: ID of the request to respond to approved: Whether the request is app
chapter4/collaboration-tools/src/hitl_tools.py:211
↓ 1 callersFunctionresponse_ids
(turns: List[Dict[str, Any]])
chapter1/web-search-agent/run_experiment_1_2.py:40
↓ 1 callersFunctionresponse_message
(turn: Dict[str, Any])
chapter1/context/run_experiment_1_1.py:146
↓ 1 callersFunctionrestore
()
web-astro/src/scripts/reading-position.ts:67
↓ 1 callersFunctionrestore_baseline
把 frontend/src 下的可编辑文件恢复为初始快照,保证可重复运行。
chapter5/conversational-ui/demo.py:71
↓ 1 callersFunctionrestore_content
(name: str, root)
book-vi/fix_svg_text_layout.py:329
↓ 1 callersMethodresume
Resume the agent
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:1970
↓ 1 callersFunctionretool
()
scripts/book_figures/chapter8.py:264
↓ 1 callersFunctionrevenue_trajectory
()
scripts/book_figures/chapter1.py:96
↓ 1 callersMethodreview
抽取成片的首/中/尾关键帧,用 Vision 检查: - 是否完整包含目标场景(无遗漏); - 是否夹带了无关场景(无多余)。 返回结构化结果 {pass, score, feedback, frames_checked}。
chapter5/video-edit/agents.py:289
↓ 1 callersMethodrevise
根据 Reviewer 的结构化文字反馈修订(只把 JSON 文本加入上下文)。
chapter5/paper-to-ppt/agents.py:401
↓ 1 callersFunctionrewriteSidebar
(targetCode)
extras/lang-switcher.js:354
↓ 1 callersFunctionrewrite_epub
(path, title_label, toc_label, rtl=False, language="ar")
flatten_epub_toc.py:153
↓ 1 callersFunctionrewrite_prompt
工作流路线节点 1:用 Kimi 把口语化需求改写为 SD 风格提示词。
chapter1/image-gen-workflow/pipeline.py:110
↓ 1 callersFunctionroadmap
()
scripts/book_figures/introduction.py:56
↓ 1 callersFunctionroadmap
()
scripts/book_figures/chapter3.py:5
↓ 1 callersMethodrole_work_summary
返回「哪个角色做了什么」的分工总览——按角色首次出场顺序, 列出每个角色实际调用过的专属工具,以及谁产出了最终回复。 这直接印证:同一段共享历史上,不同专业角色各司其职地接力完成任务。
chapter10/multi-role-transfer/orchestrator.py:286
↓ 1 callersFunctionrollouts
()
scripts/book_figures/chapter8.py:189
↓ 1 callersFunctionroom
(index, x, y, width = 175)
web-astro/scripts/training-foundations-figures.mjs:117
↓ 1 callersMethodroute
(self, dp: Datapoint, available_models: list[Model])
chapter2/prompt-engineering/tau_bench/model_utils/api/router.py:11
↓ 1 callersFunctionrow
(arm, chunk, source, seed, success=True)
chapter7/openvla-robotwin2-eval/test_experiment.py:19
↓ 1 callersFunctionrow
(task_id)
chapter5/small-model-codified-rules/test_campaign.py:71
↓ 1 callersFunctionrow
(label, calls, prompt, completion, total, peak)
chapter5/paper-to-ppt/demo.py:523
↓ 1 callersFunctionrow
(x,y,h,title,detail,fill='#ffffff')
scripts/book_figures/chapter4.py:66
↓ 1 callersFunctionrow
(name, s)
chapter3/agentic-rag/compare_offline.py:122
↓ 1 callersFunctionrows
(path: Path)
chapter8/exact-copy-sft/tokenizer_audit.py:17
↓ 1 callersFunctionrows
(path: Path)
chapter8/curly-quote-sft/quality_audit.py:20
↓ 1 callersFunctionrows
(path)
chapter8/curly-quote-sft/evaluate.py:9
↓ 1 callersFunctionrrf
(a: List[int], b: List[int], constant: int = 60)
chapter3/contextual-retrieval/campaign.py:122
↓ 1 callersFunctionrule_signature
模型在已有规则语义相同时复用 id;该稳定 id 就是合并键。
chapter9/ai-style-skill/skill_manager.py:18
↓ 1 callersFunctionrun
(cases_path: Path, output: Path, model: str, formats: list[str], max_cases: int | None)
chapter7/user-memory-policy-eval/runner.py:202
↓ 1 callersFunctionrun
(provider: str, run_id: str)
chapter5/video-edit/campaign.py:473
↓ 1 callersFunctionrun
(model_id: str, n_regen: int = 5, temp: float = 0.8)
chapter5/permission-embedded-data-objects/pedo/eval/regeneration_robustness.py:250
↓ 1 callersFunctionrun
(command, args)
slides/build-all.mjs:16
↓ 1 callersFunctionrun
(args: argparse.Namespace, endpoint: ModelEndpoint)
chapter6/computer-use-open-model/main.py:90
↓ 1 callersFunctionrun
(campaign_id: str | None, tick_real: float)
chapter6/async-agent/run_real_experiment.py:388
↓ 1 callersFunctionrun
(args: argparse.Namespace)
chapter6/agent-with-event-trigger/unipile_mailbox_experiment.py:652
↓ 1 callersFunctionrun
(config: RunConfig)
chapter2/prompt-engineering/tau_bench/run.py:20
↓ 1 callersFunctionrun
(command: list[str], cwd: Path | None = None)
chapter2/agent-skills-ppt/prepare_official_skill.py:17
↓ 1 callersFunctionrun
(args)
chapter2/attention_visualization/attention_cli.py:180
↓ 1 callersFunctionrun
( command: list[str], *, cwd: Path | None = None, env: dict[str, str] | None = None, captu
chapter9/hermes-self-evolution/run_experiment_9_8.py:33
↓ 1 callersFunctionrun
(run_dir: Path)
chapter10/autonomous-phone-registration/run_acceptance.py:145
↓ 1 callersFunctionrun
( campaign_id: str, *, interactive_human: bool = False, human_timeout_seconds: int = 14_400,
chapter4/collaboration-tools/run_experiment_4_5.py:218
↓ 1 callersFunctionrun
()
chapter4/collaboration-tools/test_recurring_interval_positive.py:35
↓ 1 callersFunctionrun
(campaign_id: str | None = None)
chapter4/perception-tools/run_experiment_4_2.py:580
↓ 1 callersFunctionrun
()
chapter4/execution-tools/cli.py:232
↓ 1 callersFunctionrun
( campaign_id: str, android_container: str, github_head_branch: str, github_base_branch: str,
chapter4/execution-tools/run_experiment_4_4.py:55
↓ 1 callersFunctionrun
(campaign_id: str | None = None, *, resume: bool = False)
chapter4/active-tool-discovery/run_exact_experiment.py:1060
↓ 1 callersFunctionrun
(args)
chapter4/active-tool-discovery/selection_ablation.py:89
↓ 1 callersMethodrun
Run agent with streaming output Args: user_message: User's input message max_iterations: Maximum num
chapter5/coding-agent/agent_new.py:108
↓ 1 callersMethodrun
(self)
chapter10/autonomous-phone-registration/orchestration.py:306
↓ 1 callersMethodrun
(self, user_message: str)
chapter10/multi-role-transfer/skill_orchestrator.py:268
↓ 1 callersMethodrun
Score every system over the test cases it provides responses for. Args: system_responses: {system_name: {test_id: response}}.
chapter3/user-memory-evaluation/comparison.py:68
↓ 1 callersMethodrun
Run the interactive evaluation session
chapter3/agentic-rag-for-user-memory/main.py:47
↓ 1 callersMethodrun
Run the interactive demo
chapter3/contextual-retrieval/demo.py:52
↓ 1 callersMethodrun
Run the interactive session
chapter3/contextual-retrieval-for-user-memory/main.py:51
↓ 1 callersFunctionrunAsr
(segmentPath, providerName, evidenceDir, options = {})
chapter6/live-audio/backend/run_real_validation.js:191
↓ 1 callersFunctionrunFishTts
(text, outputDir, options = {})
chapter6/live-audio/backend/run_real_validation.js:275
↓ 1 callersFunctionrunLlm
(transcript, providerName, requestedModel)
chapter6/live-audio/backend/run_real_validation.js:222
↓ 1 callersFunctionrunLocalWhisper
(segmentPath, requestedPython, modelName)
chapter6/live-audio/backend/run_real_validation.js:150
↓ 1 callersMethodrunSileroVAD
* Run Silero VAD inference on audio chunk * @param {Float32Array} audioSamples - Normalized audio samples * @returns {Promise<number>} Speech pr
chapter6/live-audio/backend/utils/vad.js:101
↓ 1 callersFunctionrunTts
(text, providerName, outputDir, options = {})
chapter6/live-audio/backend/run_real_validation.js:315
↓ 1 callersFunctionrunVad
(pcm, outputDir)
chapter6/live-audio/backend/run_real_validation.js:110
↓ 1 callersMethodrun_611
(self, cases: Sequence[TestCase])
chapter7/user-memory-system-evaluation/experiment.py:1119
↓ 1 callersMethodrun_64
(self, cases: Sequence[TestCase])
chapter7/user-memory-system-evaluation/experiment.py:1014
↓ 1 callersFunctionrun_ablation_study
Run ablation study to test importance of context Args: api_key: API key for the LLM provider provider: LLM provider to use
chapter1/context/main.py:802
← previousnext →6,501–6,600 of 13,003, ranked by callers