Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bojieli/ai-agent-book
/ functions
Functions
13,003 in github.com/bojieli/ai-agent-book
⨍
Functions
13,003
◇
Types & classes
1,574
↳
Endpoints
161
Function
generate_image
调用 Gemini 生成图片并保存为 PNG,返回路径。
chapter5/cad-vs-diffusion/gemini_image.py:16
Method
generate_message
( self, messages: list[Message], force_json: bool, temperature: float | None =
chapter2/prompt-engineering/tau_bench/model_utils/model/claude.py:121
Method
generate_message
( self, messages: list[Message], force_json: bool, temperature: float | None =
chapter2/prompt-engineering/tau_bench/model_utils/model/mistral.py:53
Method
generate_message
( self, messages: list[Message], force_json: bool, temperature: float | None =
chapter2/prompt-engineering/tau_bench/model_utils/model/openai.py:87
Method
generate_message
( self, messages: list[Message], force_json: bool, temperature: float | None =
chapter2/prompt-engineering/tau_bench/model_utils/model/anyscale.py:53
Method
generate_message
( self, messages: list[Message], force_json: bool, temperature: float | None =
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_chat.py:110
Method
generate_parser_code
( self, samples: List[str], required_keys: List[str], error_report: str,
chapter5/adaptive-log-parser/agent.py:183
Method
generate_report
Generate evaluation report Args: output_file: Optional file path to save report Returns:
chapter3/agentic-rag-for-user-memory/evaluator.py:521
Method
get
(self, _url)
chapter4/perception-tools/test_arxiv_request_bounds.py:87
Method
get
(self, prop)
chapter4/perception-tools/test_analyze_video_release_on_error.py:59
Function
getBook
(locale: Locale, chapterNumber = 1)
web-astro/src/lib/book.ts:31
Method
getHeaders
* Prepare headers for API request * @returns {Object} Headers object
chapter6/live-audio/backend/utils/providers/llmProviders.js:30
Method
getRequestPayload
* Prepare request payload * @param {Array} messages - Chat messages * @param {Object} options - Additional options * @returns {Object} Reques
chapter6/live-audio/backend/utils/providers/llmProviders.js:43
Method
getState
* Get current VAD state * @returns {Object} Current state information
chapter6/live-audio/backend/utils/vad.js:276
Function
get_1password_2fa
Custom action to retrieve 2FA/MFA code from 1Password using onepassword.client SDK.
chapter9/browser-use-rpa/browser-use/examples/custom-functions/onepassword_2fa.py:28
Method
get_agent_context
Get the complete context for the agent including memory cards. Args: max_memory_cards: Maximum number of memory
chapter3/contextual-retrieval-for-user-memory/contextual_indexer.py:570
Function
get_agent_status
Get current agent status
chapter6/agent-with-event-trigger/server_fastapi.py:314
Function
get_agent_status
Get current agent status
chapter6/agent-with-event-trigger/server.py:320
Method
get_all
(self, **kwargs)
chapter3/mem0/test_agent_v3.py:23
Method
get_all_tool_names
Get list of all tool names
chapter5/coding-agent/tool_registry.py:45
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/claude.py:61
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_completion.py:108
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/mistral.py:72
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/openai.py:106
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/outlines_completion.py:26
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/anyscale.py:72
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_chat.py:95
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/model.py:40
Method
get_browser_pid_via_cdp
Get the browser process ID via CDP SystemInfo.getProcessInfo. Args: browser: Playwright Browser instance Returns: Process ID or None if fa
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/local_browser_watchdog.py:438
Method
get_browser_requiring_params
Get parameter names that require browser_session
chapter9/browser-use-rpa/browser-use/browser_use/tools/registry/views.py:159
Function
get_call
(call_id: str)
chapter6/phone-agent/webrtc_app.py:695
Method
get_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/claude.py:71
Method
get_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_completion.py:116
Method
get_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/mistral.py:82
Method
get_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/openai.py:116
Method
get_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/outlines_completion.py:32
Method
get_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/anyscale.py:82
Method
get_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_chat.py:103
Method
get_card
Get a specific memory card
chapter3/contextual-retrieval-for-user-memory/advanced_memory_manager.py:235
Function
get_cases
(group: str = None)
chapter9/prompt-auto-optimization/airline_env.py:324
Method
get_client
Returns an asynchronous OpenAI client. Returns: AsyncAzureOpenAIClient: An instance of the asynchronous OpenAI client.
chapter9/browser-use-rpa/browser-use/browser_use/llm/azure/chat.py:69
Function
get_clipboard_contents
(env: Any)
chapter7/android-world/run_controlled_experiment.py:467
Function
get_compact_ui_elements
()
chapter7/android-world/run_controlled_experiment.py:647
Function
get_config
Get configuration from environment or preset Args: preset: Optional preset name ('full', 'minimal', 'debug', 'demo')
chapter2/system-hint/config.py:114
Method
get_context_string
Get notes as formatted string for LLM context
chapter3/user-memory/memory_manager.py:245
Method
get_context_string
Get memory cards as formatted string for LLM context
chapter3/user-memory/memory_manager.py:514
Method
get_context_string
Get memory cards as formatted string for LLM context
chapter3/user-memory/memory_manager.py:700
Method
get_context_string
(self)
chapter3/user-memory/test_session_scoped_history.py:21
Method
get_context_string
(self)
chapter3/user-memory/test_evaluation_memory_view.py:36
Method
get_conversation_context
Get the full conversation context for background memory processing Returns: List of conversation messages
chapter3/user-memory/conversational_agent.py:187
Method
get_conversation_histories
Get conversation histories for a test case. Args: test_id: The test case ID Returns:
chapter3/user-memory-evaluation/framework.py:176
Method
get_conversation_history
Get the current conversation history
chapter2/local_llm_serving/agent.py:540
Method
get_conversation_history
获取对话历史
chapter1/web-search-agent/agent.py:545
Method
get_cost_by_model
Get cost breakdown by model
chapter9/browser-use-rpa/browser-use/browser_use/tokens/service.py:529
Function
get_covered_cwes
Return the list of CWE IDs covered by DataGuardBench.
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/cwe_taxonomy.py:123
Method
get_current_cookies
Get current cookies using CDP.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/storage_state_watchdog.py:309
Method
get_current_page
(self)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:709
Method
get_current_temperature
Get current temperature using Open-Meteo free weather API No API key required - https://open-meteo.com/
chapter2/attention_visualization/tools.py:159
Method
get_current_temperature
Get current temperature using Open-Meteo free weather API No API key required - https://open-meteo.com/
chapter2/local_llm_serving/tools.py:138
Method
get_current_time
Get current date and time in specified timezone using zoneinfo (Python 3.9+)
chapter2/attention_visualization/tools.py:279
Method
get_current_time
Get current date and time in specified timezone using zoneinfo (Python 3.9+)
chapter2/local_llm_serving/tools.py:258
Function
get_cwe_category
Return the category (authorization/validation/integrity/isolation) for a violation.
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/cwe_taxonomy.py:115
Method
get_direct_text_content
(n: EnhancedDOMTreeNode)
chapter9/browser-use-rpa/browser-use/browser_use/dom/serializer/serializer.py:344
Function
get_document
Get a specific document by ID.
chapter3/retrieval-pipeline/main.py:217
Function
get_document
Retrieve a specific document by ID
chapter3/sparse-embedding/server.py:427
Method
get_document
Retrieve a document by ID. Args: doc_id: Document ID Returns: Document or None if n
chapter3/dense-embedding/document_store.py:77
Method
get_document
Return the full source document for ``doc_id``.
chapter3/agentic-rag/offline_retriever.py:199
Method
get_documents
Get multiple documents by IDs.
chapter3/retrieval-pipeline/document_store.py:48
Method
get_dropdown_options
Get all options from a native dropdown or ARIA menu
chapter9/browser-use-rpa/browser-use/browser_use/tools/service.py:818
Method
get_element
Get an element by its backend node ID.
chapter9/browser-use-rpa/browser-use/browser_use/actor/page.py:93
Method
get_element_by_index
Get DOM element by index from cached selector map. Builds DOM if not cached. Returns: EnhancedDOMTreeNode or None if index not found
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/dom_watchdog.py:539
Method
get_email_address
Get the email address of the inbox
chapter9/browser-use-rpa/browser-use/examples/integrations/agentmail/email_tools.py:123
Method
get_events_by_type
(self, event_type: str)
chapter9/browser-use-rpa/browser-use/tests/ci/conftest.py:232
Function
get_holdout_prompts
()
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/holdout_prompts.py:225
Method
get_index
Delegate get_index to the underlying action model
chapter9/browser-use-rpa/browser-use/browser_use/tools/registry/service.py:543
Function
get_index_structure
Get detailed index structure for visualization
chapter3/sparse-embedding/server.py:453
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/get_user_details.py:17
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/find_user_id_by_name_zip.py:21
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/list_all_product_types.py:19
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/return_delivered_order_items.py:45
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/find_user_id_by_email.py:17
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_pending_order_payment.py:87
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_pending_order_items.py:89
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_user_address.py:35
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/get_order_details.py:17
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/think.py:14
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_pending_order_address.py:40
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/cancel_pending_order.py:48
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/exchange_delivered_order_items.py:76
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/transfer_to_human_agents.py:14
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/get_product_details.py:17
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/calculate.py:19
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/get_user_details.py:17
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/cancel_reservation.py:33
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/book_reservation.py:107
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/update_reservation_flights.py:91
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/update_reservation_passengers.py:25
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/search_onestop_flight.py:49
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/think.py:13
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/get_reservation_details.py:17
← previous
next →
9,001–9,100 of 13,003, ranked by callers