MCPcopy Create free account

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

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

↓ 1 callersFunctionsummarize
(out: dict)
chapter5/permission-embedded-data-objects/pedo/eval/case_studies.py:646
↓ 1 callersFunctionsummarize
(results: list[AgentScenarioResult])
chapter5/permission-embedded-data-objects/pedo/eval/enterprise_agent_scenarios.py:191
↓ 1 callersFunctionsummarize
(out: dict)
chapter5/permission-embedded-data-objects/pedo/eval/regeneration_robustness.py:307
↓ 1 callersFunctionsummarize
Compact text summary suitable for paper inclusion.
chapter5/permission-embedded-data-objects/pedo/eval/baxbench_adapter/harness.py:147
↓ 1 callersFunctionsummarize
(results: list[dict])
chapter5/small-model-codified-rules/demo.py:141
↓ 1 callersFunctionsummarize
(retained: dict[str, Any], receipts: list[dict[str, Any]], contract: dict[str, Any])
chapter8/MiniMind-pretrain/validation/run_training_report_audit.py:460
↓ 1 callersFunctionsummarize
( retained: dict[str, Any], receipts: list[dict[str, Any]], contract: dict[str, Any] )
chapter8/MiniMind-pretrain/validation/run_vlm_training_report_audit.py:601
↓ 1 callersFunctionsummarize
( retained: dict[str, Any], receipts: list[dict[str, Any]], contract: dict[str, Any] )
chapter8/continued-pretraining/validation/run_report_audit.py:464
↓ 1 callersFunctionsummarize
(run_dir)
chapter6/astra-async-steering/summarize.py:12
↓ 1 callersFunctionsummarize
(protocol: dict, protocol_hash: str, run_dir: Path, rows: list[dict])
chapter2/system-hint/run_experiment_2_8.py:675
↓ 1 callersFunctionsummarize
(protocol: dict[str, Any], protocol_hash: str, run_dir: Path, rows: list[dict[str, Any]])
chapter2/prompt-injection/run_campaign.py:217
↓ 1 callersFunctionsummarize
把一条失败轨迹压成提炼模型能读的紧凑摘要。
chapter9/tau2-escalation-experience/derive_rules.py:13
↓ 1 callersFunctionsummarize
统计各类别命中次数
chapter3/log-sanitization/regex_sanitizer.py:242
↓ 1 callersFunctionsummarize
(results: List[Dict[str, Any]])
chapter3/agentic-rag/compare_offline.py:88
↓ 1 callersMethodsummarize_for_conversation
Summarize memory cards for a specific conversation. This creates a conversation-specific summary of relevant memory cards
chapter3/contextual-retrieval-for-user-memory/advanced_memory_manager.py:327
↓ 1 callersFunctionsummarize_judge
(raw: Dict[str, Any], arm: str)
chapter3/memory_rag_campaign.py:359
↓ 1 callersFunctionsummarize_retained_teacher_receipts
Summarize durable teacher receipts, including interrupted campaigns.
chapter8/prompt-distillation/run_experiment_8_8.py:509
↓ 1 callersFunctionsummarize_text
Summarize long text content. Args: text: Text to summarize max_length: Target summary length use_llm: Whether to
chapter4/perception-tools/src/filesystem_tools.py:508
↓ 1 callersMethodsummary
(self)
chapter10/multi-role-transfer/skill_orchestrator.py:302
↓ 1 callersMethodsummary_table
Generate a text summary table of results.
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/metrics.py:201
↓ 1 callersFunctionsummary_to_dict
把一个汇总序列化为可 JSON 落盘的结构(供 --output 使用)。
chapter7/model-benchmark/demo.py:164
↓ 1 callersFunctionsupported_providers
Return every accepted provider name, canonical plus aliases. Prefer the :data:`SUPPORTED_PROVIDERS` constant unless :data:`PROVIDERS` may hav
agentbook/providers/registry.py:185
↓ 1 callersMethodsupports_speed
(self)
chapter7/tts-quality-eval/config.py:50
↓ 1 callersFunctionsvg_text
(path: Path)
tests/test_ch3_english_figures.py:28
↓ 1 callersFunctionsweep_concurrency
压测:对同一 (provider, model) 逐步提升并发,返回每个并发档位的汇总。 对应书中"通过逐步提升并发量来找到限流点,记录 RPM/TPM 上限"—— 随着并发上升,单请求延迟(p95)会变差、可用性可能因限流而下降, 而聚合吞吐(RPS / tok
chapter7/model-benchmark/benchmark.py:354
↓ 1 callersMethodswitchProvider
* Switch ASR provider dynamically * @param {string} providerName - Provider name to switch to
chapter6/live-audio/backend/utils/speechToText.js:33
↓ 1 callersFunctionswitchTo
(target)
extras/lang-switcher.js:441
↓ 1 callersMethodsynth
(self, speaker: str, text: str, round_no: int)
chapter10/voice-werewolf/werewolf/tts.py:26
↓ 1 callersFunctionsynth_direct_reference
Fish S1 without the 24-clip control library (configuration A).
chapter6/controllable-tts/tts.py:60
↓ 1 callersFunctionsynth_speech
Clone from the selected real reference clip using Fish S1.
chapter6/controllable-tts/tts.py:25
↓ 1 callersMethodsynthesize
(text, options = {})
chapter6/live-audio/backend/tests/test-tts-providers.js:38
↓ 1 callersMethodsynthesizeAndStreamAudio
(text)
chapter6/live-audio/backend/server.js:599
↓ 1 callersFunctionsynthesize_fish
(text: str, reference_id: str, output: Path)
chapter5/paper-to-video/campaign.py:173
↓ 1 callersFunctionsynthesize_offline
离线占位 TTS:用 ffmpeg 生成一段“静音” mp3,时长按讲解词字数估算。 这样无需任何 API/网络即可跑通「渲染 -> 估时 -> ffmpeg 合成」全链路, 用于验证 ffmpeg 逐页对齐与拼接是否正确(音轨为静音占位,非真实配音)。
chapter5/paper-to-video/demo.py:305
↓ 1 callersFunctionsynthesize_openai
用 OpenAI tts-1 把讲解词合成为 mp3。
chapter5/paper-to-video/demo.py:292
↓ 1 callersFunctionsynthesize_segments
( segments, out_path, workdir, *, manifest_path: str | Path = DEFAULT_MANIFEST, )
chapter6/controllable-tts/tts.py:93
↓ 1 callersFunctionsynthesize_speech
按供应商合成一段语音音频。
chapter5/paper-to-video/demo.py:326
↓ 1 callersFunctionsynthetic_summary
用伪随机数生成一批"看起来像真实测量"的 RequestResult,用于: 1) 在没有 API key / 没有网络时验证指标聚合数学(p50/p95/p99/std/可用性); 2) 演示并发上升时延迟长尾变差、可用性可能下降的趋势。 ⚠️ 生成的所
chapter7/model-benchmark/benchmark.py:382
↓ 1 callersFunctiontag
(element, attributes)
web-astro/scripts/voice-architecture-layout.mjs:61
↓ 1 callersFunctionteacher_chosen
教师模型路径:生成 chosen 并做规则过滤的拒绝采样,返回(chosen, 回执列表)。
chapter8/premature-completion-dpo/build_preference_data.py:89
↓ 1 callersFunctionteacher_outputs
(path: Path)
chapter8/cot-distillation/evaluate_student.py:99
↓ 1 callersFunctiontemplate_boundaries
()
scripts/book_figures/chapter2.py:197
↓ 1 callersFunctiontemplate_sequence
()
scripts/book_figures/chapter2.py:174
↓ 1 callersFunctiontestLLMEndpoint
()
chapter6/live-audio/backend/test_llm.js:4
↓ 1 callersFunctiontest_agent_error_propagation
Test that errors are properly formatted for the agent
chapter2/local_llm_serving/test_code_interpreter_full.py:132
↓ 1 callersFunctiontest_agent_initialization
Test agent initialization.
chapter3/mem0/test_simple.py:67
↓ 1 callersMethodtest_agent_messages_integration
Test integration with actual agent messages.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_anthropic_cache.py:186
↓ 1 callersMethodtest_assistant_cache_empty_content
Test AssistantMessage with empty content and cache.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_anthropic_cache.py:121
↓ 1 callersMethodtest_authentication
Test Gmail authentication and return status. Returns (success, message)
chapter9/browser-use-rpa/browser-use/examples/integrations/gmail_2fa_integration.py:136
↓ 1 callersFunctiontest_basic_conversation
Test basic conversation capabilities
chapter1/context/tests/manual/check_kimi.py:22
↓ 1 callersFunctiontest_basic_conversation
Test basic conversation capabilities
chapter1/context/tests/manual/check_deepseek.py:22
↓ 1 callersFunctiontest_basic_functionality
Test basic agent functionality without API calls
chapter2/system-hint/test_basic.py:12
↓ 1 callersFunctiontest_basic_functionality
Test basic agent functionality
chapter4/multimodal-agent/quickstart.py:69
↓ 1 callersFunctiontest_bm25_scoring
Test BM25 scoring algorithm
chapter3/sparse-embedding/test_engine.py:89
↓ 1 callersFunctiontest_browser_tools
Test browser tools (basic initialization).
chapter4/collaboration-tools/test_basic.py:106
↓ 1 callersMethodtest_cache_basic_functionality
Test basic cache functionality for all message types.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_anthropic_cache.py:25
↓ 1 callersMethodtest_cache_cleaning_last_message_only
Test that only the last cache=True message remains cached.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_anthropic_cache.py:196
↓ 1 callersMethodtest_cache_cleaning_no_cached_messages
Test that messages without cache=True are not affected.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_anthropic_cache.py:251
↓ 1 callersMethodtest_cache_cleaning_with_system_message
Test that system messages are not affected by cache cleaning logic.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_anthropic_cache.py:230
↓ 1 callersMethodtest_cache_content_types
Test different content types with cache.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_anthropic_cache.py:100
↓ 1 callersFunctiontest_cache_invalidation
Test that incorrect modes properly invalidate KV cache each iteration
chapter2/kv-cache/tests/manual/check_cache_invalidation.py:19
↓ 1 callersMethodtest_cache_with_base64_images
Test cache functionality with base64 images.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_anthropic_cache.py:83
↓ 1 callersMethodtest_cache_with_images
Test cache functionality with image content.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_anthropic_cache.py:67
↓ 1 callersMethodtest_cache_with_tool_calls
Test cache functionality with tool calls.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_anthropic_cache.py:54
↓ 1 callersFunctiontest_cached_tokens
Test that cached tokens are correctly parsed from API response
chapter2/kv-cache/tests/manual/check_cached_tokens.py:14
↓ 1 callersFunctiontest_command_execution
Test command execution tool
chapter2/system-hint/test_basic.py:121
↓ 1 callersFunctiontest_completion_logic
Test that the agent correctly handles responses without tool calls as final answers
chapter2/kv-cache/tests/manual/check_completion.py:15
↓ 1 callersFunctiontest_config
Test configuration loading.
chapter4/collaboration-tools/test_basic.py:14
↓ 1 callersFunctiontest_configuration
Test configuration loading.
chapter3/mem0/test_simple.py:36
↓ 1 callersFunctiontest_conversation_history
Test that conversation history persists between tasks
chapter1/context/tests/manual/check_conversation_history.py:19
↓ 1 callersFunctiontest_conversation_mode
Test conversation mode with streaming
chapter4/multimodal-agent/quickstart.py:153
↓ 1 callersFunctiontest_currency_conversion
Test currency conversion tool
chapter1/context/tests/manual/check_kimi.py:108
↓ 1 callersFunctiontest_currency_conversion
Test currency conversion tool
chapter1/context/tests/manual/check_deepseek.py:103
↓ 1 callersFunctiontest_datetime_parsing
Test datetime parsing.
chapter4/execution-tools/test_external_tools.py:58
↓ 1 callersFunctiontest_doubao
Test Doubao provider with a simple task
chapter1/context/tests/manual/check_doubao.py:14
↓ 1 callersFunctiontest_dual_memory_system
Test the dual memory system with a sample scenario
chapter3/contextual-retrieval-for-user-memory/test_contextual_system.py:16
↓ 1 callersFunctiontest_edge_cases
Test edge cases and special scenarios
chapter3/sparse-embedding/test_engine.py:198
↓ 1 callersFunctiontest_error_handling
Test that local tools return structured errors instead of raising.
chapter2/kv-cache/tests/test_error_handling.py:6
↓ 1 callersFunctiontest_error_handling
Test that errors are properly captured and formatted
chapter2/local_llm_serving/test_code_interpreter_full.py:47
↓ 1 callersFunctiontest_evaluation_system
Test the evaluation system with Layer 1 test cases
chapter3/contextual-retrieval-for-user-memory/test_contextual_system.py:147
↓ 1 callersFunctiontest_experiment_runner
Test that the experiment runner works.
chapter1/learning-from-experience/tests/test_basic.py:121
↓ 1 callersFunctiontest_file_edit
Test file edit functionality.
chapter4/execution-tools/test_file_tools.py:43
↓ 1 callersFunctiontest_file_range_reading
Test reading files with offset and size parameters
chapter2/kv-cache/tests/test_file_range.py:8
↓ 1 callersFunctiontest_file_tools
Test the local file system tools
chapter2/kv-cache/tests/test_tools.py:12
↓ 1 callersFunctiontest_file_write
Test file write functionality.
chapter4/execution-tools/test_file_tools.py:11
↓ 1 callersFunctiontest_focus_vs_all_elements
()
chapter9/browser-use-rpa/browser-use/browser_use/dom/playground/extraction.py:21
↓ 1 callersFunctiontest_fragmented_violations
Test which violations the fragmented approach catches.
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_comparisons.py:342
↓ 1 callersFunctiontest_full_environment_access
Test that the code interpreter has access to full Python environment
chapter2/local_llm_serving/test_code_interpreter_full.py:92
↓ 1 callersFunctiontest_game_environment
Test that the game environment works.
chapter1/learning-from-experience/tests/test_basic.py:14
↓ 1 callersFunctiontest_gemini_image_vision
Test Gemini's ability to see and describe images.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_gemini_image.py:51
↓ 1 callersFunctiontest_geo_restricted_content
Test access to geo-restricted content.
chapter9/browser-use-rpa/browser-use/examples/cloud/04_proxy_usage.py:113
↓ 1 callersFunctiontest_get_conversation_context_logging
Test get_conversation_context with full logging
chapter3/agentic-rag-for-user-memory/test_logging.py:123
↓ 1 callersFunctiontest_get_conversation_context_logging
Test get_conversation_context with full logging
chapter3/contextual-retrieval-for-user-memory/test_logging.py:123
↓ 1 callersFunctiontest_get_full_conversation_logging
Test get_full_conversation with full logging
chapter3/agentic-rag-for-user-memory/test_logging.py:169
↓ 1 callersFunctiontest_get_full_conversation_logging
Test get_full_conversation with full logging
chapter3/contextual-retrieval-for-user-memory/test_logging.py:169
↓ 1 callersFunctiontest_github_pr
Test GitHub PR creation.
chapter4/execution-tools/test_external_tools.py:32
↓ 1 callersFunctiontest_google_calendar
Test Google Calendar integration.
chapter4/execution-tools/test_external_tools.py:8
↓ 1 callersFunctiontest_graphrag_backend
Test Agentic RAG with GraphRAG knowledge graph backend
chapter3/agentic-rag/test_structured_backends.py:61
↓ 1 callersFunctiontest_hint_behavior
Test and demonstrate the system hint behavior
chapter2/system-hint/test_hint_behavior.py:11
↓ 1 callersFunctiontest_hitl_tools
Test human-in-the-loop functionality.
chapter4/collaboration-tools/test_basic.py:72
← previousnext →7,101–7,200 of 13,003, ranked by callers