MCPcopy Create free account

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

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

↓ 1 callersFunction_validate
(payload: dict[str, Any])
chapter9/self-modifying-agent/sandbox_runner.py:45
↓ 1 callersFunction_validate_candidate
( rule: Dict[str, Any], pair_by_id: Dict[str, Dict[str, Any]] )
chapter9/ai-style-skill/extract_rules.py:53
↓ 1 callersFunction_validate_candidate_source
(evidence: dict[str, Any], hypothesis_id: str)
chapter7/android-world/run_controlled_experiment.py:594
↓ 1 callersFunction_validate_diagnosis
(payload: dict[str, Any], sources: dict[str, dict[str, Any]])
chapter5/log-diagnosis/campaign.py:324
↓ 1 callersFunction_validate_hash_map
( *, expected_names: set[str], hashes: Any, base: Path, label: str, )
chapter10/autonomous-phone-registration/validate_acceptance.py:69
↓ 1 callersFunction_validate_phase1_source
(evidence: dict[str, Any])
chapter7/android-world/run_controlled_experiment.py:570
↓ 1 callersFunction_validate_phase2_source
(evidence: dict[str, Any])
chapter7/android-world/run_controlled_experiment.py:579
↓ 1 callersMethod_validate_references
Validate that all declared references point to existing objects.
chapter5/permission-embedded-data-objects/pedo/core/store.py:455
↓ 1 callersMethod_validate_scratch_blueprint
Validate the model-authored contract used across staged scratch calls. Generating every source file in one JSON response is unnecessarily bri
chapter5/agent-creator/creator.py:690
↓ 1 callersMethod_validate_template_spec
Validate the compact specialization consumed by the proven template. Template mode intentionally asks the model for domain decisions only. T
chapter5/agent-creator/creator.py:431
↓ 1 callersFunction_validate_tests
(payload: dict[str, Any], sources: dict[str, dict[str, Any]])
chapter5/log-diagnosis/campaign.py:353
↓ 1 callersMethod_vals
(self, attr: str)
chapter7/model-benchmark/benchmark.py:245
↓ 1 callersFunction_value_appears_in_text
Return True if *value* appears as a substring of *text* (case-insensitive).
chapter3/log-sanitization/agent.py:30
↓ 1 callersFunction_variant_in_chapter
判断某个 variant 是否在 text 中“独立”出现。 对“提示”这种会成为“提示词/提示语”子串的情况:仅当去掉更长 variant 后仍出现才算。
chapter10/book-translation/consistency.py:83
↓ 1 callersMethod_verify_and_setup_llm
Verify that the LLM API keys are setup and the LLM API is responding properly. Also handles tool calling method detection if in auto mode.
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:2010
↓ 1 callersMethod_vote
(self)
chapter10/voice-werewolf/werewolf/game.py:383
↓ 1 callersFunction_wait_for_admin_response
Wait for admin to respond to approval request.
chapter4/collaboration-tools/src/hitl_tools.py:151
↓ 1 callersMethod_wait_for_cdp_url
Wait for the browser to start and return the CDP URL.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/local_browser_watchdog.py:358
↓ 1 callersMethod_wait_for_ready
Wait for server to be ready
chapter2/local_llm_serving/server.py:101
↓ 1 callersMethod_wait_for_stable_network
Wait for page stability - simplified for CDP-only branch.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/dom_watchdog.py:443
↓ 1 callersFunction_web
(name: str, query: str, options: dict[str, Any])
chapter4/perception-tools/src/expanded_catalog.py:586
↓ 1 callersFunction_wilson
(successes, total, z=1.959963984540054)
chapter5/code-for-math/demo.py:426
↓ 1 callersFunction_wilson
(successes, total, z=1.959963984540054)
chapter5/code-for-logic/demo.py:357
↓ 1 callersMethod_wire
()
extras/agent-lab/agent-trajectory.js:291
↓ 1 callersFunction_with_hint
(provider: str, payload: dict, hint: str)
chapter5/provider-failover/run_continuation.py:86
↓ 1 callersMethod_worker
逐批处理事件:追加到轨迹后跑一轮可被取消的 LLM。
chapter6/async-agent/runtime.py:246
↓ 1 callersMethod_write_checkpoint
(path: Path, payload: Dict[str, Any])
chapter3/user-memory/run_evaluation.py:219
↓ 1 callersFunction_write_json_atomic
(path: str, value: dict)
chapter10/book-translation/agents.py:167
↓ 1 callersFunction_write_jsonl
(tmp_path: Path, examples: list[dict])
tests/test_ch8_sft_data_auditor.py:41
↓ 1 callersFunction_write_jsonl
(tmp_path: Path, examples: list[dict])
tests/test_ch7_sft_data_auditor.py:41
↓ 1 callersFunctionaccuracy
(model: RGBPolicy, images: torch.Tensor, labels: torch.Tensor, device: torch.device)
chapter6/rgb-sim2real-grasping/pipeline.py:131
↓ 1 callersMethodact
(self, task: Dict[str, Any])
chapter9/self-evolution-eval/agent.py:38
↓ 1 callersFunctionaction_from_index
(index: int)
chapter6/gemini-xlerobot-navigation/desktop_planner.py:167
↓ 1 callersMethodaction_history
Get truncated action history with only essential fields
chapter9/browser-use-rpa/browser-use/browser_use/agent/views.py:576
↓ 1 callersMethodaction_quit
Quit the application and clean up resources.
chapter9/browser-use-rpa/browser-use/browser_use/cli.py:985
↓ 1 callersMethodaction_results
Get all results from history
chapter9/browser-use-rpa/browser-use/browser_use/agent/views.py:596
↓ 1 callersFunctionaction_summary
(sim_dir: Path)
chapter10/generative-agents/analyze_campaign.py:110
↓ 1 callersFunctionactivate
(name, conf)
extras/auto-translate.js:397
↓ 1 callersFunctionadd
(**kw)
chapter5/log-diagnosis/sut.py:28
↓ 1 callersFunctionadd
(attr, key, val)
scripts/seo_meta.py:31
↓ 1 callersFunctionadd
(check_id: str, passed: bool, detail: str, stages: list[int])
chapter6/rgb-sim2real-grasping/preflight.py:46
↓ 1 callersFunctionadd
(check_id: str, passed: bool, detail: str, required: bool = True)
chapter6/xlerobot-teleoperation/preflight.py:37
↓ 1 callersFunctionadd_check
(checks: list[dict[str, Any]], name: str, passed: bool, detail: Any)
chapter6/computer-use-open-model/validate_run.py:24
↓ 1 callersFunctionadd_comment
(post_id, role, owner_arg, body)
chapter5/permission-embedded-data-objects/pedo/eval/case_studies.py:582
↓ 1 callersFunctionadd_common
(sp, with_model=False)
chapter5/erp-agent/demo.py:325
↓ 1 callersFunctionadd_common
(p, need_mode=True)
chapter3/user-memory/memory_cli.py:233
↓ 1 callersMethodadd_document
Add a document to the store.
chapter3/retrieval-pipeline/document_store.py:16
↓ 1 callersMethodadd_document
Add a document to the local store
chapter3/contextual-retrieval/tools.py:470
↓ 1 callersMethodadd_document
Add a document to the local store
chapter3/agentic-rag/tools.py:465
↓ 1 callersMethodadd_frame
Decodes a base64-encoded PNG frame, resizes it, pads it to be codec-compatible, and appends it to the video. Args: frame_data_b64: A bas
chapter9/browser-use-rpa/browser-use/browser_use/browser/video_recorder.py:87
↓ 1 callersFunctionadd_md_tag
(prompt: str)
chapter2/prompt-engineering/tau_bench/model_utils/model/utils.py:149
↓ 1 callersMethodadd_memory
Add a new note
chapter3/user-memory/memory_manager.py:162
↓ 1 callersMethodadd_metric
Add a new metric to the collection
chapter3/log-sanitization/metrics.py:56
↓ 1 callersMethodadd_response
(self, response: Any)
chapter7/model-action-threshold/experiment.py:232
↓ 1 callersFunctionadd_silence
(ms, why)
chapter6/controllable-tts/markup.py:77
↓ 1 callersFunctionadd_speech_token
Insert a Fish S1 native non-verbal marker as a speech segment.
chapter6/controllable-tts/markup.py:82
↓ 1 callersMethodadd_step
(self, request: str, **kwargs: Any)
chapter1/search-codegen/agent.py:386
↓ 1 callersMethodadd_trigger
(self, trigger: TriggerSource)
chapter6/agent-with-event-trigger/event_loop_demo.py:185
↓ 1 callersMethodadd_turn
Add a turn to the conversation history.
chapter3/mem0/agent.py:82
↓ 1 callersMethodadd_usage
Add token usage entry to history (without calculating cost)
chapter9/browser-use-rpa/browser-use/browser_use/tokens/service.py:213
↓ 1 callersFunctionagent
(heading, steps, panelX, cardX)
web-astro/scripts/training-foundations-figures.mjs:232
↓ 1 callersFunctionagent
Create an agent instance for testing URL shortening functionality.
chapter9/browser-use-rpa/browser-use/tests/ci/test_url_shortening.py:24
↓ 1 callersFunctionagent_environment
()
scripts/book_figures/chapter1.py:8
↓ 1 callersFunctionagent_factory
( tools_info: List[Dict[str, Any]], wiki, config: RunConfig )
chapter2/prompt-engineering/tau_bench/run.py:124
↓ 1 callersFunctionagentic_architecture
()
scripts/book_figures/chapter3.py:311
↓ 1 callersFunctionagentic_retrieval
智能体化多轮检索(离线确定性模拟)。 模拟 Agent 的 ReAct 检索循环,但用规则代替 LLM,从而完全离线: 1. 用原始问题做首轮检索; 2. 从首轮结果里发现「还提到了哪些车辆实体」(关键线索); 3. 针对每个发现的实体追加一次聚焦查询「
chapter3/agentic-rag-for-user-memory/offline_demo.py:94
↓ 1 callersFunctionagg
(subset)
chapter3/agentic-rag/compare_offline.py:89
↓ 1 callersFunctionaggregate
(rows: List[Dict[str, Any]], arms: Iterable[str])
chapter3/memory_rag_campaign.py:468
↓ 1 callersFunctionaggregate
(results: List[Dict[str, Any]])
chapter3/user-memory/run_evaluation.py:382
↓ 1 callersFunctionaggregate
(rows: List[Dict[str, Any]])
chapter3/log-sanitization/campaign.py:188
↓ 1 callersFunctionaggregate
(rows: List[Dict[str, Any]], arm: str, group: str | None = None)
chapter3/agentic-rag/campaign.py:281
↓ 1 callersFunctionaggregate_judges
(chapter_judges: list[dict[str, Any]])
chapter10/book-translation/run_official_experiment.py:417
↓ 1 callersFunctionaggregate_metrics
(per_query_ranked: List[Tuple[List[str], Sequence[str]]], k: int)
chapter3/retrieval-pipeline/evaluate.py:368
↓ 1 callersFunctionanalyze
(cfg: dict[str, Any], run_dir: Path, annotations_path: Path | None)
chapter7/openvla-robotwin2-eval/experiment.py:527
↓ 1 callersFunctionanalyze
(path: Path, job: str)
chapter6/async-agent/analysis_worker.py:14
↓ 1 callersMethodanalyze_audio
Analyze audio with a specific query
chapter4/multimodal-agent/agent.py:111
↓ 1 callersMethodanalyze_complexity
用 AST 估算复杂度:函数数量、最大分支数、最大嵌套深度。
chapter10/staged-system-prompt/tools.py:121
↓ 1 callersFunctionanalyze_frame_hierarchy
Analyze and display complete frame hierarchy for a URL.
chapter9/browser-use-rpa/browser-use/tests/scripts/test_frame_hierarchy.py:12
↓ 1 callersFunctionanalyze_image_ai
Analyze image using AI (OpenAI Vision API). Args: image_path: Path to image file prompt: Prompt for AI analysis
chapter4/perception-tools/src/media_processing_tools.py:363
↓ 1 callersMethodanalyze_pdf
Analyze a PDF document with a specific query
chapter4/multimodal-agent/agent.py:122
↓ 1 callersMethodanalyze_results
Analyze ablation study results Args: results: List of test results Returns: Ana
chapter1/context/main.py:281
↓ 1 callersFunctionanalyze_video_ai
Analyze video content using AI vision on keyframes. Args: video_path: Path to video file num_frames: Number of frames to
chapter4/perception-tools/src/media_processing_tools.py:549
↓ 1 callersFunctionannotation_key
(row: dict[str, Any])
chapter7/openvla-robotwin2-eval/experiment.py:523
↓ 1 callersFunctionanswer
(calls: CachedCalls, purpose: str, model: str, question: str, context: str)
chapter3/structured-index/campaign.py:378
↓ 1 callersMethodanswer
(self, question: str)
chapter10/staged-system-prompt/simulated_user.py:48
↓ 1 callersMethodanswer_agentic
(self, recorder: ChatRecorder, case: Dict[str, Any])
chapter3/agentic-rag/campaign.py:143
↓ 1 callersFunctionanswer_hash
(answer: str)
chapter7/user-memory-system-evaluation/supplement_73_missing.py:30
↓ 1 callersFunctionanswer_json
(text)
chapter6/astra-async-steering/experiment.py:68
↓ 1 callersFunctionanswer_json
(text)
chapter6/astra-async-steering/validation/runs/pilot-20260905-v1/source/experiment.py:68
↓ 1 callersFunctionanswer_json
(text)
chapter6/astra-async-steering/validation/runs/exp6-14-20260905-formal/source/experiment.py:68
↓ 1 callersFunctionanswer_json
(text)
chapter6/astra-async-steering/validation/runs/pilot-20260905-v2/source/experiment.py:68
↓ 1 callersMethodanswer_once
(self, recorder: ChatRecorder, case: Dict[str, Any], retrieved: List[Dict[str, Any]])
chapter3/agentic-rag/campaign.py:123
↓ 1 callersFunctionanswer_prompt
(case: Dict[str, Any], arm: str, retrieved: List[Dict[str, Any]], card: Dict[str, Any] | None)
chapter3/memory_rag_campaign.py:311
↓ 1 callersFunctionanswer_prompt
(mode: str, memory: Any, question: str)
chapter3/user-memory/run_evaluation.py:127
↓ 1 callersFunctionanswer_text
(recorder: CheckpointRecorder, model: str, context: str, question: str, purpose: str)
chapter4/multimodal-agent/campaign.py:109
↓ 1 callersFunctionanswer_with_tool
( recorder: CheckpointRecorder, model: str, extracted: str, image: Path, question: str,
chapter4/multimodal-agent/campaign.py:142
↓ 1 callersFunctionapi_exchange
()
scripts/book_figures/chapter2.py:78
↓ 1 callersFunctionappendTurn
(speaker, text)
chapter6/phone-agent/static/app.js:25
↓ 1 callersFunctionappend_history
Append one immutable conversation event and a cumulative hash-chain receipt.
chapter4/active-tool-discovery/run_exact_experiment.py:604
↓ 1 callersFunctionapplyDefaultState
()
extras/nav-collapse.js:75
← previousnext →4,101–4,200 of 13,003, ranked by callers