MCPcopy Create free account

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

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

↓ 1 callersMethodget_api_key
Get API key for the specified provider Args: provider: Provider name (defaults to LLM_PROVIDER)
chapter1/context/config.py:117
↓ 1 callersFunctionget_api_turns
()
chapter9/prompt-auto-optimization/config.py:158
↓ 1 callersFunctionget_archived_content
Get content from archived webpage. Args: url: URL to retrieve timestamp: Wayback timestamp (YYYYMMDDhhmmss)
chapter4/perception-tools/src/wayback_enhanced.py:21
↓ 1 callersFunctionget_article_categories
Get categories for Wikipedia article. Args: title: Article title language: Language code Returns: T
chapter4/perception-tools/src/wiki_enhanced.py:83
↓ 1 callersFunctionget_article_content
Get full Wikipedia article content. Args: title: Article title language: Language code Returns: Tex
chapter4/perception-tools/src/wiki_enhanced.py:23
↓ 1 callersFunctionget_article_links
Get links from Wikipedia article. Args: title: Article title language: Language code Returns: TextC
chapter4/perception-tools/src/wiki_enhanced.py:131
↓ 1 callersFunctionget_arxiv_categories
Get list of ArXiv subject categories. Returns: TextContent with categories
chapter4/perception-tools/src/arxiv_enhanced.py:175
↓ 1 callersMethodget_attention_steps
Convert cached data into AttentionStep objects
chapter2/attention_visualization/agent.py:136
↓ 1 callersMethodget_basic_info
Get basic information about the element including coordinates and properties.
chapter9/browser-use-rpa/browser-use/browser_use/actor/element.py:1005
↓ 1 callersMethodget_branch
(self, name)
chapter4/execution-tools/test_github_idempotency.py:32
↓ 1 callersMethodget_by_id
Get a specific test case by ID.
chapter3/user-memory-evaluation/models.py:147
↓ 1 callersFunctionget_calendar_events
Get events from Google Calendar. Args: start_date: Start date (ISO format, defaults to today) end_date: End date (ISO fo
chapter4/perception-tools/src/private_data_tools.py:20
↓ 1 callersMethodget_capability
Return the capability of the model, a float between 0.0 and 1.0.
chapter2/prompt-engineering/tau_bench/model_utils/model/model.py:35
↓ 1 callersFunctionget_category
根据文件扩展名返回对应的分类文件夹名。 扩展名比较不区分大小写;不在映射表中的类型一律归入 Others。
chapter10/staged-system-prompt/runs/staged-system-prompt-kimi-k3-20260730-v2/workspace/organize_downloads.py:37
↓ 1 callersFunctionget_category
根据文件扩展名判断其所属类别。 Args: file_path: Path 对象,待分类的文件路径。 Returns: str: 类别对应的子文件夹名;未匹配时返回 DEFAULT_CATEGORY。
chapter10/staged-system-prompt/runs/staged-system-prompt-kimi-k3-20260730-v1/workspace/organize_downloads.py:64
↓ 1 callersFunctionget_client
()
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety_final.py:38
↓ 1 callersFunctionget_client
()
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_application.py:49
↓ 1 callersFunctionget_client
()
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_harness_focused.py:35
↓ 1 callersFunctionget_client
()
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_spec_errors.py:23
↓ 1 callersFunctionget_client
()
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_spec_errors_v2.py:34
↓ 1 callersFunctionget_client
()
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_comparisons.py:37
↓ 1 callersFunctionget_client
()
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety_v2.py:36
↓ 1 callersFunctionget_client
()
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_final_comprehensive.py:41
↓ 1 callersMethodget_client
Returns an OllamaAsyncClient client.
chapter9/browser-use-rpa/browser-use/browser_use/llm/ollama/chat.py:50
↓ 1 callersMethodget_client
Returns an AsyncAnthropic client. Returns: AsyncAnthropic: An instance of the AsyncAnthropic client.
chapter9/browser-use-rpa/browser-use/browser_use/llm/anthropic/chat.py:99
↓ 1 callersMethodget_client
Returns a genai.Client instance. Returns: genai.Client: An instance of the Google genai client.
chapter9/browser-use-rpa/browser-use/browser_use/llm/google/chat.py:119
↓ 1 callersMethodget_client
Returns an AsyncOpenAI client. Returns: AsyncOpenAI: An instance of the AsyncOpenAI client.
chapter9/browser-use-rpa/browser-use/browser_use/llm/openai/chat.py:102
↓ 1 callersMethodget_client
Returns an AsyncAnthropicBedrock client. Returns: AsyncAnthropicBedrock: An instance of the AsyncAnthropicBedrock client.
chapter9/browser-use-rpa/browser-use/browser_use/llm/aws/chat_anthropic.py:120
↓ 1 callersMethodget_client
Returns an AsyncOpenAI client configured for OpenRouter. Returns: AsyncOpenAI: An instance of the AsyncOpenAI client with OpenRouter base
chapter9/browser-use-rpa/browser-use/browser_use/llm/openrouter/chat.py:81
↓ 1 callersMethodget_client_config
Get OpenAI client configuration
chapter3/agentic-rag-for-user-memory/config.py:130
↓ 1 callersMethodget_client_config
Get OpenAI client configuration
chapter3/agentic-rag/config.py:135
↓ 1 callersMethodget_current_directory
Get the current working directory. Returns: Dictionary with current directory path
chapter4/execution-tools/terminal_controller.py:92
↓ 1 callersMethodget_current_page
(self)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:918
↓ 1 callersMethodget_data_hash
(self)
chapter2/prompt-engineering/tau_bench/envs/base.py:123
↓ 1 callersFunctionget_default_config
Return default configuration dictionary using the new config system.
chapter9/browser-use-rpa/browser-use/browser_use/cli.py:102
↓ 1 callersFunctionget_default_sampling_strategy
()
chapter2/prompt-engineering/tau_bench/model_utils/api/sample.py:231
↓ 1 callersFunctionget_diagnosis
(role, did)
chapter5/permission-embedded-data-objects/pedo/eval/case_studies.py:441
↓ 1 callersFunctionget_display_size
()
chapter9/browser-use-rpa/browser-use/browser_use/browser/profile.py:190
↓ 1 callersMethodget_documents_by_ids
Retrieve multiple documents by their IDs. Args: doc_ids: List of document IDs Returns:
chapter3/dense-embedding/document_store.py:153
↓ 1 callersFunctionget_element_color
Get color for element based on tag name and type.
chapter9/browser-use-rpa/browser-use/browser_use/browser/python_highlights.py:92
↓ 1 callersMethodget_evaluator_config
Get configuration for the specified evaluator.
chapter3/user-memory-evaluation/config.py:59
↓ 1 callersMethodget_final_message
(self)
chapter7/model-benchmark/test_campaign.py:221
↓ 1 callersFunctionget_gemini_client
()
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety.py:36
↓ 1 callersFunctionget_git_info
Get git information if installed from git repository
chapter9/browser-use-rpa/browser-use/browser_use/utils.py:601
↓ 1 callersMethodget_headers
Get headers for API requests
chapter9/browser-use-rpa/browser-use/browser_use/sync/auth.py:345
↓ 1 callersMethodget_history
(self)
chapter1/search-codegen/agent.py:372
↓ 1 callersMethodget_index_info
Get comprehensive information about the index
chapter3/sparse-embedding/bm25_engine.py:513
↓ 1 callersMethodget_index_structure
Get a visualization-friendly representation of the index
chapter3/sparse-embedding/bm25_engine.py:225
↓ 1 callersMethodget_info
()
chapter2/prompt-engineering/tau_bench/envs/tool.py:11
↓ 1 callersMethodget_interacted_element
(model_output: AgentOutput, selector_map: DOMSelectorMap)
chapter9/browser-use-rpa/browser-use/browser_use/agent/views.py:260
↓ 1 callersFunctionget_judge_client_and_model
构造 LLM 评审用的 client 并返回 (client, 实际模型名)。 回退:gpt-5.x 且有 OPENROUTER_API_KEY -> 优先 OpenRouter;否则有 OPENAI_API_KEY -> 直连;否则有 OPENROUTER_API_KEY ->
chapter7/tts-quality-eval/pipeline.py:71
↓ 1 callersFunctionget_llm
(provider: str)
chapter9/browser-use-rpa/browser-use/examples/ui/streamlit_demo.py:29
↓ 1 callersFunctionget_llm
(provider: str)
chapter9/browser-use-rpa/browser-use/examples/ui/command_line.py:32
↓ 1 callersMethodget_llm_config
Get LLM configuration based on provider.
chapter4/execution-tools/config.py:137
↓ 1 callersMethodget_meaningful_text_for_llm
Get the meaningful text content that the LLM actually sees for this element. This matches exactly what goes into the DOMTreeSerializer output.
chapter9/browser-use-rpa/browser-use/browser_use/dom/views.py:521
↓ 1 callersMethodget_messages
Get current message list, potentially trimmed to max tokens
chapter9/browser-use-rpa/browser-use/browser_use/agent/message_manager/service.py:359
↓ 1 callersFunctionget_model_client
Create a model client from a spec string like 'gemini:gemini-2.5-flash'.
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/harness.py:152
↓ 1 callersMethodget_model_output
Get next action from LLM based on current state
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:1168
↓ 1 callersMethodget_model_pricing
Get pricing information for a specific model
chapter9/browser-use-rpa/browser-use/browser_use/tokens/service.py:164
↓ 1 callersFunctionget_next_action
()
chapter9/browser-use-rpa/browser-use/tests/ci/conftest.py:121
↓ 1 callersFunctionget_or_create_device_id
Get or create a persistent device ID for this installation.
chapter9/browser-use-rpa/browser-use/browser_use/sync/auth.py:22
↓ 1 callersMethodget_output
(self)
chapter2/context-compression/run_all_strategies.py:170
↓ 1 callersFunctionget_paper_details
Get detailed information about an ArXiv paper. Args: paper_id: ArXiv paper ID (e.g., '2301.07041') Returns:
chapter4/perception-tools/src/arxiv_enhanced.py:24
↓ 1 callersFunctionget_parent_process_cmdline
Get the command line of all parent processes up the chain.
chapter9/browser-use-rpa/browser-use/browser_use/mcp/server.py:154
↓ 1 callersMethodget_pulls
(self, *, state, head, base)
chapter4/execution-tools/test_github_idempotency.py:35
↓ 1 callersFunctionget_reasoning
从返回的 message 中提取思维链。 依次尝试:OpenRouter 的 reasoning / reasoning_details 字段, 以及 Moonshot、DeepSeek 等原生 API 的 reasoning_content 字段。
chapter8/cot-distillation/generate_data.py:92
↓ 1 callersMethodget_recent_emails
Get recent emails with optional query filter Args: max_results: Maximum number of emails to fetch query: Gmail search query (e.g., 'f
chapter9/browser-use-rpa/browser-use/browser_use/integrations/gmail/service.py:140
↓ 1 callersMethodget_repo
(self, name)
chapter4/execution-tools/test_github_idempotency.py:45
↓ 1 callersMethodget_reservation
(self, reservation_id: str)
chapter5/small-model-codified-rules/airline_env.py:85
↓ 1 callersMethodget_retrieval_metrics
Get detailed retrieval metrics for analysis
chapter3/contextual-retrieval/contextual_agent.py:285
↓ 1 callersMethodget_scroll_info_text
Get human-readable scroll information text for this element.
chapter9/browser-use-rpa/browser-use/browser_use/dom/views.py:707
↓ 1 callersMethodget_session_id
Get the current session ID
chapter3/user-memory/conversational_agent.py:285
↓ 1 callersMethodget_session_turns
Get all turns from a specific session Args: session_id: Session identifier Returns:
chapter3/user-memory/conversation_history.py:133
↓ 1 callersMethodget_statistics
Get pipeline statistics. Returns: Statistics dictionary
chapter3/retrieval-pipeline/retrieval_pipeline.py:403
↓ 1 callersFunctionget_stock_price
Get stock price information. Args: symbol: Stock ticker symbol (e.g., AAPL, TSLA) interval: Data interval (1d, 1h, etc.)
chapter4/perception-tools/src/public_data_tools.py:149
↓ 1 callersFunctionget_subagent_status
Inspect a sub-agent's status/result (useful for async sub-agents).
chapter4/collaboration-tools/src/subagent_tools.py:529
↓ 1 callersFunctionget_sys_prompt
(condition: str)
chapter5/permission-embedded-data-objects/pedo/eval/regeneration_robustness.py:123
↓ 1 callersFunctionget_sys_prompt
(condition: str, scenario: str)
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/harness.py:243
↓ 1 callersMethodget_system_message
Get the system prompt for the agent. Returns: SystemMessage: Formatted system prompt
chapter9/browser-use-rpa/browser-use/browser_use/agent/prompts.py:59
↓ 1 callersFunctionget_task_details
Get full task details including steps and output.
chapter9/browser-use-rpa/browser-use/examples/cloud/01_basic_task.py:93
↓ 1 callersFunctionget_token
()
scripts/gen_star_history.py:82
↓ 1 callersFunctionget_tool_definitions
Get OpenAI-format tool definitions
chapter3/contextual-retrieval/tools.py:481
↓ 1 callersFunctionget_tool_definitions
Get OpenAI-format tool definitions
chapter3/agentic-rag/tools.py:476
↓ 1 callersMethodget_total_cost
(self)
chapter2/prompt-engineering/tau_bench/envs/user.py:173
↓ 1 callersFunctionget_unique_destination
在目标目录中为文件生成不冲突的目标路径。 若目标目录中已存在同名文件,则在文件名后追加 _1、_2 等序号, 直到找到未被占用的名称为止,保证不覆盖已有文件。 Args: dest_dir: Path 对象,目标目录。 filename:
chapter10/staged-system-prompt/runs/staged-system-prompt-kimi-k3-20260730-v1/workspace/organize_downloads.py:80
↓ 1 callersMethodget_url
Get the current URL.
chapter9/browser-use-rpa/browser-use/browser_use/actor/page.py:267
↓ 1 callersMethodget_usage_tokens_for_model
Get usage tokens for a specific model
chapter9/browser-use-rpa/browser-use/browser_use/tokens/service.py:348
↓ 1 callersMethodget_user_input
Get user input with a nice prompt
chapter5/coding-agent/main.py:310
↓ 1 callersFunctionget_val
(key1: str, key2: Optional[str] = None)
chapter8/MultilingualReasoning/evaluate_multilingual.py:115
↓ 1 callersFunctionget_viewport_info_from_cdp
Get viewport information from CDP session. Returns: Tuple of (device_pixel_ratio, scroll_x, scroll_y)
chapter9/browser-use-rpa/browser-use/browser_use/browser/python_highlights.py:470
↓ 1 callersFunctionget_website_list_for_prompt
Get a compact website list for the input prompt.
chapter9/browser-use-rpa/browser-use/browser_use/dom/playground/extraction.py:76
↓ 1 callersFunctiongit
(repo: Path, *args: str)
chapter6/rgb-sim2real-grasping/preflight.py:28
↓ 1 callersFunctiongit
(repo: Path, *args: str)
chapter6/xlerobot-teleoperation/preflight.py:24
↓ 1 callersFunctiongit_commit
()
chapter6/streaming-speech/run_official_experiment.py:67
↓ 1 callersFunctiongit_commit
()
chapter10/parallel-web-research/run_official_experiment.py:73
↓ 1 callersFunctiongit_commit
(upstream: Path)
chapter10/generative-agents/run_campaign.py:67
↓ 1 callersFunctiongit_commit
()
chapter10/multi-role-transfer/run_official_experiment.py:69
↓ 1 callersFunctiongit_metadata
()
chapter6/end-to-end-speech/demo.py:43
↓ 1 callersFunctiongit_value
(*args: str)
chapter1/context/run_experiment_1_1.py:61
↓ 1 callersFunctiongit_value
(*args: str)
chapter1/web-search-agent/run_experiment_1_2.py:28
← previousnext →5,101–5,200 of 13,003, ranked by callers