MCPcopy Create free account

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

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

↓ 1 callersMethodcontextualize_chunks
Add contextual information to conversation chunks. Args: chunks: List of basic conversation chunks f
chapter3/contextual-retrieval-for-user-memory/contextual_chunking.py:161
↓ 1 callersFunctioncontinuation_score
(prompt: str, continuation: str)
chapter8/premature-completion-dpo/evaluate.py:218
↓ 1 callersFunctioncontinuation_summary
(run_dir: pathlib.Path)
chapter5/provider-failover/summarize.py:67
↓ 1 callersMethodcontinueRequest
(self, params: dict, session_id: str | None = None)
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_proxy.py:54
↓ 1 callersFunctioncontinue_task
把用户提交的 JSON 交回 Agent(在线),生成订票摘要。
chapter5/dynamic-form/demo.py:503
↓ 1 callersFunctionconvert
(source, destination, page)
scripts/kindle_epub_patcher.py:69
↓ 1 callersFunctionconvertGroup
(n)
chapter6/live-audio/backend/utils/textProcessor.js:49
↓ 1 callersMethodconvert_ids_to_tokens
(self, token_id)
chapter2/attention_visualization/test_streaming.py:57
↓ 1 callersFunctioncoordinate
(name)
web-astro/scripts/coding-comparison-layout.mjs:56
↓ 1 callersFunctioncoordinate
(name)
web-astro/scripts/coding-application-layout.mjs:28
↓ 1 callersFunctioncoordinates
()
scripts/book_figures/chapter6.py:199
↓ 1 callersFunctioncopy_app
(run_dir: Path, backend_port: int)
chapter5/conversational-ui/campaign_browser.py:192
↓ 1 callersFunctioncosine
(a: Sequence[float], b: Sequence[float])
chapter7/user-memory-system-evaluation/experiment.py:496
↓ 1 callersFunctioncost_summary
( rows: Sequence[dict[str, Any]], providers: dict[str, Provider], )
chapter7/model-benchmark/analysis.py:219
↓ 1 callersFunctioncount
(source, tag)
web-astro/scripts/coding-comparison-layout.mjs:17
↓ 1 callersFunctioncount
(tag)
web-astro/scripts/collaboration-society-figures.mjs:27
↓ 1 callersFunctioncount
(source, name)
web-astro/scripts/evaluation-overview-figures.mjs:31
↓ 1 callersFunctioncount
(pattern)
web-astro/scripts/tool-cache-layout.mjs:16
↓ 1 callersFunctioncount
(source, tag)
web-astro/scripts/pairwise-figure.mjs:6
↓ 1 callersFunctioncount
(source, tag)
web-astro/scripts/evaluation-spectrum-figures.mjs:11
↓ 1 callersFunctioncount
(source, tagName)
web-astro/scripts/async-architecture-layout.mjs:41
↓ 1 callersFunctioncount
(tag)
web-astro/scripts/training-foundations-figures.mjs:17
↓ 1 callersFunctioncount
(tag)
web-astro/scripts/training-systems-figures.mjs:16
↓ 1 callersFunctioncount
(tag)
web-astro/scripts/training-sequences-figures.mjs:21
↓ 1 callersFunctioncount
(tag)
web-astro/scripts/evolution-flow-figures.mjs:29
↓ 1 callersFunctioncount
(tag)
web-astro/scripts/collaboration-manager-figures.mjs:42
↓ 1 callersFunctioncount
(source, tag)
web-astro/scripts/voice-architecture-layout.mjs:40
↓ 1 callersFunctioncount
(source, tag)
web-astro/scripts/memory-foundation-layout.mjs:14
↓ 1 callersFunctioncount
(source, tag)
web-astro/scripts/coding-production-layout.mjs:32
↓ 1 callersFunctioncount
(source, tag)
web-astro/scripts/coding-application-layout.mjs:20
↓ 1 callersFunctioncount
(tag)
web-astro/scripts/evolution-methods-figures.mjs:46
↓ 1 callersFunctioncount
(html, tag)
web-astro/scripts/build.test.mjs:35
↓ 1 callersFunctioncount
(tag)
web-astro/scripts/collaboration-context-figures.mjs:26
↓ 1 callersFunctioncount
(tag)
web-astro/scripts/training-workflows-figures.mjs:16
↓ 1 callersFunctioncount_git_clones
(path: Path)
scripts/check_i18n_consistency.py:65
↓ 1 callersFunctioncount_lines
Count non-empty, non-comment lines.
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_spec_errors.py:255
↓ 1 callersFunctioncount_tokens_in_schema
Rough estimation of tokens in a tool schema (approximately 1 token per 4 characters).
chapter4/active-tool-selection/tool_knowledge_base.py:612
↓ 1 callersMethodcreate
(self, **kwargs)
chapter5/agent-creator/reference_agent/tests/test_contract.py:18
↓ 1 callersMethodcreate
(self, **kwargs)
chapter2/agent-skills-ppt/tests/test_reasoning_degrade.py:29
↓ 1 callersMethodcreate
(self, **kwargs: Any)
chapter10/staged-system-prompt/evidence.py:23
↓ 1 callersFunctioncreateNoteEditor
( db: IDBDatabase, refresh: () => Promise<void>, notify: (message: string) => void, chapterKey: string
web-astro/src/scripts/note-editor.ts:5
↓ 1 callersFunctioncreateRequest
()
chapter6/phone-agent/static/app.js:119
↓ 1 callersFunctioncreateTestAudioBuffer
* Create a test audio buffer with spoken content * This creates a simple sine wave that simulates audio content
chapter6/live-audio/backend/tests/test-asr-providers.js:33
↓ 1 callersFunctioncreateTestAudioBuffer
* Create a sample audio buffer for testing * This creates a simple sine wave audio buffer
chapter6/live-audio/backend/tests/provider-tests.js:67
↓ 1 callersFunctioncreate_ad_from_landing_page
(url: str, debug: bool = False, mode: str = 'instagram', ad_id: int = 1)
chapter9/browser-use-rpa/browser-use/examples/apps/ad-use/ad_generator.py:289
↓ 1 callersFunctioncreate_attention_comparison
Plot several [seq x seq] attention matrices side by side for comparison. Used to contrast attention patterns - e.g. two different layers, tw
chapter2/attention_visualization/visualization.py:588
↓ 1 callersFunctioncreate_chart
用 matplotlib 生成一张柱状图(图像模态样例)。
chapter4/multimodal-agent/create_sample.py:31
↓ 1 callersFunctioncreate_default_baseline_agent
Creates a default baseline agent function for ablation campaigns.
chapter9/hermes-self-evolution/run_downstream_ablation.py:467
↓ 1 callersFunctioncreate_default_config
Create a fresh default configuration.
chapter9/browser-use-rpa/browser-use/browser_use/config.py:275
↓ 1 callersFunctioncreate_default_evolved_agent
Creates a self-evolved agent function with improved capability for ablation campaigns.
chapter9/hermes-self-evolution/run_downstream_ablation.py:489
↓ 1 callersFunctioncreate_default_task_suite
Creates a benchmark task suite containing synthetic and real tasks.
chapter9/hermes-self-evolution/run_downstream_ablation.py:523
↓ 1 callersFunctioncreate_demo_conversation
Create a demo conversation with important information
chapter3/agentic-rag-for-user-memory/demo_agent_logging.py:25
↓ 1 callersFunctioncreate_demo_conversation
Create a demo conversation with important information
chapter3/contextual-retrieval-for-user-memory/demo_agent_logging.py:25
↓ 1 callersFunctioncreate_excel_screenshot
Create a screenshot of Excel file (requires GUI environment). Note: This is a simplified implementation that exports to image. Args:
chapter4/collaboration-tools/src/excel_tools.py:274
↓ 1 callersFunctioncreate_financial_report
Create a sample financial report PDF for testing
chapter1/context/create_sample_pdf.py:15
↓ 1 callersFunctioncreate_highlighted_screenshot
Create a highlighted screenshot with bounding boxes around interactive elements. Args: screenshot_b64: Base64 encoded screenshot selector_
chapter9/browser-use-rpa/browser-use/browser_use/browser/python_highlights.py:409
↓ 1 callersFunctioncreate_highlighted_screenshot_async
Async wrapper for creating highlighted screenshots. Args: screenshot_b64: Base64 encoded screenshot selector_map: Map of interactive eleme
chapter9/browser-use-rpa/browser-use/browser_use/browser/python_highlights.py:502
↓ 1 callersFunctioncreate_hiring_enforcer
Create an AgentSpec enforcer with rules for the hiring scenario. These rules demonstrate the limitations of agent-action enforcement: they ca
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/agentspec_baseline.py:106
↓ 1 callersFunctioncreate_history_gif
Create a GIF from the agent's history with overlaid task and goal text.
chapter9/browser-use-rpa/browser-use/browser_use/agent/gif.py:35
↓ 1 callersMethodcreate_inbox_client
Create a default inbox profile for this API key (assume that agent is on free tier) If you are not on free tier it is recommended to create 1 in
chapter9/browser-use-rpa/browser-use/examples/integrations/agentmail/email_tools.py:88
↓ 1 callersMethodcreate_initial_messages
Create initial messages with proper format for Qwen3
chapter2/attention_visualization/main.py:54
↓ 1 callersMethodcreate_multinational_budget_task
Create a task requiring multiple currency conversions and calculations Returns: Task description
chapter1/context/main.py:113
↓ 1 callersFunctioncreate_multiple_ads
Generate multiple ads in parallel using asyncio concurrency
chapter9/browser-use-rpa/browser-use/examples/apps/ad-use/ad_generator.py:362
↓ 1 callersFunctioncreate_pm_enforcer
Create an AgentSpec enforcer with rules for project management.
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/agentspec_baseline.py:188
↓ 1 callersMethodcreate_pull
(self, **_kwargs)
chapter4/execution-tools/test_github_idempotency.py:40
↓ 1 callersFunctioncreate_random_text_image
(text: str = 'hello world', width: int = 4000, height: int = 4000)
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_gemini_image.py:20
↓ 1 callersFunctioncreate_report_pdf
把图表和一段文字说明组合成一份 PDF 报告(文档模态样例)。
chapter4/multimodal-agent/create_sample.py:61
↓ 1 callersFunctioncreate_sample_files
Create sample files for testing
chapter4/multimodal-agent/quickstart.py:15
↓ 1 callersFunctioncreate_sample_images
Create image context for the agent. Returns: list of content parts containing text and image data
chapter9/browser-use-rpa/browser-use/examples/features/add_image_context.py:46
↓ 1 callersFunctioncreate_sample_intel_doc
Create a sample Intel architecture documentation for testing.
chapter3/structured-index/download_sample.py:11
↓ 1 callersFunctioncreate_sample_queries
Create sample queries for testing.
chapter3/structured-index/download_sample.py:229
↓ 1 callersFunctioncreate_schema
(connection, schema: str, employees: list[dict[str, Any]], salaries: list[dict[str, Any]])
chapter5/erp-agent/campaign_postgres.py:154
↓ 1 callersFunctioncreate_simple_animation
Convenience function to create animation in one step. Args: history_df: DataFrame with rating history output_path: Path
chapter7/elo-leaderboard/animation.py:421
↓ 1 callersFunctioncreate_simple_expense_report
Create a simpler expense report for quick testing
chapter1/context/create_sample_pdf.py:217
↓ 1 callersMethodcreate_state_messages
Create single state message with all content
chapter9/browser-use-rpa/browser-use/browser_use/agent/message_manager/service.py:268
↓ 1 callersFunctioncreate_task
Create a new browser automation task. Args: instructions: Natural language description of what the agent should do Returns: task_id: U
chapter9/browser-use-rpa/browser-use/examples/cloud/01_basic_task.py:61
↓ 1 callersFunctioncreate_test_data
Create test data in raw database.
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety_v2.py:227
↓ 1 callersFunctioncreate_test_data_pedo
Create base test data in PEDO store.
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety.py:328
↓ 1 callersFunctioncreate_test_data_raw
Create base test data in raw database.
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety.py:303
↓ 1 callersFunctioncreate_token_attention_summary
Create a summary visualization showing tokens and their attention patterns Args: result: Generation result dictionary sa
chapter2/attention_visualization/visualization.py:224
↓ 1 callersFunctioncreate_ui
()
chapter9/browser-use-rpa/browser-use/examples/ui/gradio_demo.py:81
↓ 1 callersFunctioncreate_visualization_data
Create data for visualization (can be used with plotting libraries)
chapter2/prompt-engineering/analyze_results.py:285
↓ 1 callersFunctioncredential_blocked
(receipt: dict[str, Any])
chapter4/perception-tools/run_experiment_4_2.py:435
↓ 1 callersFunctioncredential_preflight
()
chapter4/perception-tools/run_experiment_4_2.py:238
↓ 1 callersFunctioncredential_scan
(run_dir: Path)
chapter6/computer-use-open-model/validate_run.py:47
↓ 1 callersFunctioncredential_scan
(path: Path)
chapter2/local_llm_serving/run_experiment.py:342
↓ 1 callersFunctioncredential_scan
(payload: bytes)
chapter10/multi-role-transfer/package_comparison.py:49
↓ 1 callersFunctioncredit
()
scripts/book_figures/chapter8.py:220
↓ 1 callersFunctioncrosses
([x1, y1, x2, y2], box)
web-astro/scripts/evaluation-overview-layout.test.mjs:81
↓ 1 callersFunctioncrossesInterior
(segment, box)
web-astro/scripts/collaboration-manager-figures.test.mjs:125
↓ 1 callersFunctioncustomize
( client: OpenAI, model: str, frontend: Path, requirement: str, round_number: int, rec
chapter5/conversational-ui/campaign_browser.py:100
↓ 1 callersFunctiondata_url
(path: Path)
chapter4/multimodal-agent/campaign.py:80
↓ 1 callersFunctiondatapoint_factory
(d: dict[str, Any])
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:223
↓ 1 callersMethodday
白天:公布死讯 → 依次发言 → 投票放逐。返回被放逐者名(或 None)。
chapter10/voice-werewolf/werewolf/game.py:340
↓ 1 callersFunctiondebug_iframe_scrolling
Debug iframe scrolling and DOM visibility issue.
chapter9/browser-use-rpa/browser-use/tests/scripts/debug_iframe_scrolling.py:24
↓ 1 callersFunctiondecide_orchestration
Let the Computer Use Agent choose whether to initiate a Phone Agent. There is intentionally no Python ``if len(fields)`` decision. The model sees
chapter10/autonomous-phone-registration/decision.py:72
↓ 1 callersFunctiondecision
(client, task, schemas, position, target, seed)
chapter4/active-tool-discovery/selection_ablation.py:48
↓ 1 callersFunctiondecode
(s)
web-astro/scripts/build.test.mjs:504
↓ 1 callersFunctiondecode
(value)
web-astro/scripts/check-deployment.mjs:21
↓ 1 callersFunctiondecode
(snac, ids)
chapter8/speech-sft-experiment/run_orpheus.py:121
← previousnext →4,601–4,700 of 13,003, ranked by callers