MCPcopy Create free account

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

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

↓ 1 callersFunctiongit_value
(*args: str)
chapter1/search-codegen/run_experiment_1_3.py:93
↓ 1 callersFunctionglossary_agent
Glossary Agent:读全书内容,识别反复出现的专业术语, 输出结构化术语对照表(JSON)。独立上下文,产出后即可释放。
chapter10/book-translation/agents.py:334
↓ 1 callersMethodgo_back
Navigate back in history.
chapter9/browser-use-rpa/browser-use/browser_use/actor/page.py:288
↓ 1 callersFunctiongoogle_search_api
Search Google using Custom Search API. Args: query: Search query num_results: Number of results (1-10) safe_sear
chapter4/perception-tools/src/google_search_enhanced.py:22
↓ 1 callersFunctiongpu_inventory
()
chapter7/openvla-robotwin2-eval/experiment.py:74
↓ 1 callersFunctiongrade
根据实际调用的工具给某个任务打分。
chapter4/active-tool-discovery/tools_library.py:449
↓ 1 callersFunctiongrade_plan
(task: dict[str, Any], actions: list[dict[str, Any]])
chapter4/active-tool-discovery/run_exact_experiment.py:331
↓ 1 callersFunctiongraphMap
(count)
web-astro/scripts/retrieval-structure-layout.mjs:375
↓ 1 callersFunctiongraph_context
(query: str, spec: dict[str, Any], entities: dict[str, Any], relationships: list[dict[str, A
chapter3/structured-index/campaign.py:335
↓ 1 callersFunctiongraph_memory
()
scripts/book_figures/chapter3.py:257
↓ 1 callersFunctiongreet
Return a friendly greeting for the given name.
chapter5/coding-agent/hello_world.py:5
↓ 1 callersFunctiongreet
(name)
chapter4/execution-tools/test_script.py:1
↓ 1 callersFunctiongrid
()
scripts/book_figures/chapter8.py:33
↓ 1 callersFunctiongrounding
()
scripts/book_figures/chapter6.py:179
↓ 1 callersFunctiongroup
(split: str)
chapter8/premature-completion-dpo/evaluate.py:249
↓ 1 callersFunctiongrowing_prefix
Re-encode [0:t] for every chunk; this is intentionally not incremental.
chapter6/streaming-speech/qwen2_streaming.py:158
↓ 1 callersFunctionguardSource
(source, figure, labels)
web-astro/scripts/async-architecture-layout.mjs:45
↓ 1 callersFunctionguardSource
(source, figure, labels)
web-astro/scripts/voice-architecture-layout.mjs:44
↓ 1 callersFunctionguardSource
(source, figure, labels)
web-astro/scripts/coding-production-layout.mjs:36
↓ 1 callersFunctionhand_calculation
Compare engine output with a hand-calculable RSJ BM25 example.
chapter3/sparse-embedding/benchmark.py:32
↓ 1 callersFunctionhandleInterrupt
()
chapter6/live-audio/frontend/pages/index.tsx:508
↓ 1 callersFunctionhandleSend
()
chapter5/conversational-ui/frontend/src/App.jsx:24
↓ 1 callersFunctionhandleSend
()
chapter5/conversational-ui/baseline/src/App.jsx:24
↓ 1 callersFunctionhandleSend
()
chapter5/conversational-ui/validation/runs/20260729T212616Z-5_11-hmr/app/frontend/src/App.jsx:24
↓ 1 callersFunctionhandleSend
()
chapter5/conversational-ui/validation/runs/20260729T212933Z-5_11-hmr/app/frontend/src/App.jsx:24
↓ 1 callersFunctionhandleSend
()
chapter5/conversational-ui/validation/runs/20260729T212727Z-5_11-hmr/app/frontend/src/App.jsx:24
↓ 1 callersFunctionhandleServerEvent
(event)
chapter6/phone-agent/static/app.js:106
↓ 1 callersFunctionhandleTrajectorySelect
(index: number)
chapter2/attention_visualization/frontend/pages/index.tsx:160
↓ 1 callersMethodhandle_authentication_failure
Handle authentication failures with fallback mechanisms. Returns True if recovery was successful.
chapter9/browser-use-rpa/browser-use/examples/integrations/gmail_2fa_integration.py:154
↓ 1 callersMethodhandle_command
Handle special commands. Returns True if it was a command, False otherwise.
chapter5/coding-agent/main.py:172
↓ 1 callersMethodhandle_event
(self, event, event_id)
chapter9/browser-use-rpa/browser-use/examples/integrations/slack/slack_api.py:48
↓ 1 callersFunctionhandle_model_action
Given a computer action (e.g., click, double_click, scroll, etc.), execute the corresponding operation using CDP.
chapter9/browser-use-rpa/browser-use/examples/custom-functions/cua.py:38
↓ 1 callersFunctionhandoff_summary
(run_dir: pathlib.Path)
chapter5/provider-failover/summarize.py:33
↓ 1 callersFunctionhangup
(reason = 'user_hangup')
chapter6/phone-agent/static/app.js:199
↓ 1 callersMethodhasSufficientAudio
* Check if audio buffer has sufficient content for transcription * @param {Buffer} audioBuffer - Audio buffer to check * @returns {boolean} True
chapter6/live-audio/backend/utils/speechToText.js:110
↓ 1 callersMethodhas_provider_key
Whether the direct API key for a provider is configured.
chapter4/multimodal-agent/config.py:138
↓ 1 callersFunctionhas_web_search_declaration
(tools: List[Dict[str, Any]])
chapter1/web-search-agent/run_experiment_1_2.py:61
↓ 1 callersFunctionhash_func_call
( func: Callable[..., Any], args: tuple[Any], kwargs: dict[str, Any] )
chapter2/prompt-engineering/tau_bench/model_utils/api/cache.py:75
↓ 1 callersFunctionhaversine_km
(a: Tuple[float, float], b: Tuple[float, float])
chapter1/search-codegen/run_experiment_1_3.py:69
↓ 1 callersFunctionheading_text
(value: str)
scripts/homepage_index.py:23
↓ 1 callersFunctionhierarchical_discovery
()
scripts/book_figures/chapter4.py:29
↓ 1 callersFunctionhnsw
()
scripts/book_figures/chapter3.py:157
↓ 1 callersFunctionhookLifecycle
(translate, conf)
extras/auto-translate.js:184
↓ 1 callersFunctionhost_info
()
chapter1/image-gen-workflow/evidence.py:52
↓ 1 callersFunctionhost_provenance
()
chapter6/streaming-speech/demo.py:80
↓ 1 callersFunctionhosted_tools
()
scripts/book_figures/chapter1.py:139
↓ 1 callersMethodhover
Hover over the element.
chapter9/browser-use-rpa/browser-use/browser_use/actor/element.py:508
↓ 1 callersFunctionhr
(title: str = "")
chapter5/adaptive-log-parser/demo.py:69
↓ 1 callersFunctionhttp_probe
(name, method, url, key_env, payload=None)
chapter7/user-memory-system-evaluation/probe_candidates.py:76
↓ 1 callersFunctionhybrid
()
scripts/book_figures/chapter3.py:213
↓ 1 callersFunctionhybridMap
(count)
web-astro/scripts/retrieval-structure-layout.mjs:21
↓ 1 callersFunctionhydra_command
(cfg: dict[str, Any], arm: str, run_dir: Path, worktree: Path)
chapter7/openvla-robotwin2-eval/experiment.py:270
↓ 1 callersFunctionids
(html)
web-astro/scripts/build.test.mjs:37
↓ 1 callersFunctionimage_data_url
(path: Path)
chapter5/paper-to-video/campaign.py:137
↓ 1 callersFunctionimage_data_url
(path: Path)
chapter8/MiniMind-pretrain/validation/run_vlm_training_report_audit.py:329
↓ 1 callersFunctionimage_to_base64
Convert image file to base64 string. Args: image_path: Path to the image file Returns: Base64 encoded string of the image Raises:
chapter9/browser-use-rpa/browser-use/examples/features/add_image_context.py:20
↓ 1 callersFunctionimportHighlights
( db: IDBDatabase, imported: Annotation[], chapter = chapterKey, )
web-astro/src/lib/highlight-store.ts:82
↓ 1 callersFunctioninbox_folder
(client: UnipileClient, account_id: str)
chapter6/agent-with-event-trigger/unipile_mailbox_experiment.py:489
↓ 1 callersFunctionindependent_judge
用同一套 rubric、独立地给某一版最终 PPT 打分,用于公平比较两种方案的质量。
chapter5/paper-to-ppt/agents.py:491
↓ 1 callersMethodindex_chunk
Index a contextual chunk in the retrieval pipeline
chapter3/contextual-retrieval/index_local_laws_contextual.py:236
↓ 1 callersMethodindex_chunk
Index a chunk in the retrieval pipeline
chapter3/agentic-rag/index_local_laws.py:260
↓ 1 callersMethodindex_conversation
Index a conversation turn in Dify Args: turn: Conversation turn to index
chapter3/user-memory/conversation_history.py:196
↓ 1 callersMethodindex_document_dense
Index a document in the dense embedding service.
chapter3/retrieval-pipeline/retrieval_client.py:30
↓ 1 callersMethodindex_document_sparse
Index a document in the sparse embedding service.
chapter3/retrieval-pipeline/retrieval_client.py:48
↓ 1 callersFunctionindex_documents
Index documents into knowledge base
chapter3/agentic-rag/quickstart.py:97
↓ 1 callersFunctionindex_sample_documents
Index a collection of sample documents
chapter3/sparse-embedding/demo.py:46
↓ 1 callersFunctionindex_to_alpha
(index: int)
chapter2/prompt-engineering/tau_bench/model_utils/model/utils.py:29
↓ 1 callersFunctionindices_for_spans
(spans: list[tuple[int, int]])
chapter2/attention_visualization/run_status_bar_experiment.py:180
↓ 1 callersFunctioninit
(cfg, i18n)
extras/lang-switcher.js:27
↓ 1 callersFunctioninitSidebarToggle
()
extras/nav-collapse.js:140
↓ 1 callersFunctioninit_agent
Initialize the agent with optional MCP tools
chapter6/agent-with-event-trigger/server_fastapi.py:118
↓ 1 callersFunctioninit_agent
Initialize the agent with optional MCP tools
chapter6/agent-with-event-trigger/server.py:119
↓ 1 callersFunctioninitial_memory
(mode: str)
chapter3/user-memory/run_evaluation.py:106
↓ 1 callersMethodinitializeLLMProvider
* Initialize LLM provider based on configuration
chapter6/live-audio/backend/server.js:83
↓ 1 callersMethodinitializeProvider
* Initialize ASR provider based on configuration
chapter6/live-audio/backend/utils/speechToText.js:18
↓ 1 callersMethodinitializeSileroVAD
* Initialize the Silero VAD ONNX model
chapter6/live-audio/backend/utils/vad.js:41
↓ 1 callersFunctioninitialize_agent
(query: str, provider: str)
chapter9/browser-use-rpa/browser-use/examples/ui/streamlit_demo.py:55
↓ 1 callersFunctioninitialize_agent
Initialize the browser agent with the given query and provider.
chapter9/browser-use-rpa/browser-use/examples/ui/command_line.py:70
↓ 1 callersFunctioninitialize_sandbox
(root: Path, suite: str, case: dict[str, Any])
chapter2/system-hint/run_experiment_2_8.py:121
↓ 1 callersFunctioninput_record
(path: Path)
chapter8/MiniMind-pretrain/validation/run_training_report_audit.py:610
↓ 1 callersFunctioninput_record
(path: Path)
chapter8/MiniMind-pretrain/validation/run_vlm_training_report_audit.py:757
↓ 1 callersFunctioninput_record
(path: Path)
chapter8/continued-pretraining/validation/run_report_audit.py:637
↓ 1 callersMethodinsert_file_content
Insert content at specific line in file. Args: file_path: File path content: Content to insert
chapter4/execution-tools/terminal_controller.py:297
↓ 1 callersMethodinspect_dangerous_commands
Inspect parameters for dangerous bash/shell command patterns.
chapter9/harness-safety-gate/safety_policy_gate.py:241
↓ 1 callersMethodinspect_path_traversal
Inspect parameters for path traversal vulnerabilities.
chapter9/harness-safety-gate/safety_policy_gate.py:194
↓ 1 callersMethodinspect_resource_limits
Inspect parameters against predefined resource limit boundaries.
chapter9/harness-safety-gate/safety_policy_gate.py:262
↓ 1 callersFunctioninstall_provider
(receipt_path: Path)
chapter10/generative-agents/run_campaign.py:87
↓ 1 callersFunctioninstall_task_decomp_compat
Repair task-decomposition parser input without editing upstream.
chapter10/generative-agents/run_campaign.py:155
↓ 1 callersFunctioninstall_validated_zero_compat
Preserve validated zero poignancy instead of treating it as failure.
chapter10/generative-agents/run_campaign.py:201
↓ 1 callersFunctioninstrument
(upstream: Path)
chapter7/openvla-robotwin2-eval/instrument_upstream.py:83
↓ 1 callersFunctioninteraction
()
scripts/book_figures/chapter8.py:6
↓ 1 callersFunctioninteractive_mode
Interactive mode for sending custom events
chapter6/agent-with-event-trigger/client.py:250
↓ 1 callersFunctioninteractive_mode
Run interactive chat mode with optional streaming
chapter2/local_llm_serving/main.py:340
↓ 1 callersFunctioninteractive_mode
Run the agent in interactive mode
chapter2/system-hint/main.py:130
↓ 1 callersFunctioninteractive_mode
Run the agent in interactive mode Args: api_key: API key for the LLM provider provider: LLM provider to use mode
chapter1/context/main.py:897
↓ 1 callersFunctioninteractive_mode
交互模式
chapter1/web-search-agent/quickstart.py:115
↓ 1 callersFunctioninteractive_mode
Run the agent in interactive mode with separated architecture
chapter3/user-memory/main.py:92
↓ 1 callersFunctionintervention_is_visible
(row: dict)
chapter2/system-hint/run_experiment_2_8.py:758
↓ 1 callersFunctionisChapterStart
(lesson)
slides/review.mjs:31
↓ 1 callersMethodisCompleteSentence
(sentence, isFirstSentence)
chapter6/live-audio/backend/server.js:535
← previousnext →5,201–5,300 of 13,003, ranked by callers