MCPcopy Create free account

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

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

Methodhandle_token_request
(request)
chapter9/browser-use-rpa/browser-use/tests/ci/test_sync_client_auth.py:685
Functionhandle_upload
(request)
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_downloads_upload_full_circle.py:93
Methodhas_errors
Check if the agent has any non-None errors
chapter9/browser-use-rpa/browser-use/browser_use/agent/views.py:502
Methodhas_partial_args
(self)
chapter5/provider-failover/streaming.py:31
Functionheading
(ids)
web-astro/scripts/evaluation-layout-kit.mjs:3
Functionhealth
()
chapter5/conversational-ui/backend/main.py:102
Functionhealth
()
chapter5/conversational-ui/validation/runs/20260729T212616Z-5_11-hmr/app/backend/main.py:100
Functionhealth
()
chapter5/conversational-ui/validation/runs/20260729T212933Z-5_11-hmr/app/backend/main.py:100
Functionhealth
()
chapter5/conversational-ui/validation/runs/20260729T212727Z-5_11-hmr/app/backend/main.py:100
Functionhealth
()
chapter6/phone-agent/webrtc_app.py:326
Functionhealth
Health check endpoint.
chapter3/retrieval-pipeline/main.py:108
Functionhealth_check
Health check endpoint
chapter6/agent-with-event-trigger/server_fastapi.py:226
Functionhealth_check
Health check endpoint
chapter6/agent-with-event-trigger/server.py:232
Functionhealthcare_pedo_run
()
chapter5/permission-embedded-data-objects/pedo/eval/case_studies.py:350
Functionhealthcare_raw_run
Naive role-as-string handler that doesn't actually enforce the role separation. This mirrors the typical LLM mistake: the LLM accepts a 'role'
chapter5/permission-embedded-data-objects/pedo/eval/case_studies.py:425
Functionheight
(ids, width, opts = {})
web-astro/scripts/evaluation-layout-kit.mjs:18
Functionheight
(id, width, options)
web-astro/scripts/coding-production-layout.mjs:648
Methodhelper_function
(browser_session: BrowserSession, data: str)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:250
Functionhiring_manager
()
chapter5/permission-embedded-data-objects/tests/test_scenarios.py:29
Functionhiring_store
()
chapter5/permission-embedded-data-objects/tests/test_scenarios.py:16
Functionhttp_client
Create a real HTTP client pointed at the test server
chapter9/browser-use-rpa/browser-use/tests/ci/test_sync_client_auth.py:41
Functionhttp_server
Create and provide a test HTTP server that serves static content.
chapter9/browser-use-rpa/browser-use/tests/ci/test_radio_buttons.py:29
Functionhttp_server
Create and provide a test HTTP server that serves static content.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:14
Functionhttp_server
Create and provide a test HTTP server that serves static content.
chapter9/browser-use-rpa/browser-use/tests/ci/test_tools.py:23
Functionhttp_server
Create and provide a test HTTP server that serves static content.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_GetDropdownOptionsEvent_aria_menus.py:12
Functionhttp_server
Create and provide a test HTTP server that serves static content.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_ScrollEvent.py:17
Functionhttp_server
Create a test HTTP server with a downloadable file.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_downloads_simple.py:16
Functionhttp_server
Create and provide a test HTTP server that serves static content.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_tab_management.py:22
Functionhttp_server
Create and provide a test HTTP server that serves static content.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_GetDropdownOptionsEvent.py:21
Functionhttp_server
Create and provide a test HTTP server that serves static content.
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:63
Functionhttp_server
Create and provide a test HTTP server that serves static content.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_ClickElementEvent.py:20
Methodhttp_server
Create and provide a test HTTP server that serves static content.
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry_action_parameter_injection.py:19
Functionhttpserver
Create and provide a test HTTP server that serves static content.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_element_cache.py:14
Functionhttpserver_url
Create a local HTTP server for testing.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_via_cdp_tab_management.py:13
Functionhttpserver_url
Simple test page.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_output_paths.py:21
Functionhunyuan_image_to_3d
调用 Hunyuan3D-2.1 公共 Space 的 /shape_generation,保存 GLB。 排队、限流、失败均抛异常前留证,由调用方决定是否降级。
chapter5/cad-vs-diffusion/route_b_gen3d.py:26
Functionimage_analyze
Analyze image with AI.
chapter4/perception-tools/src/main.py:523
Functionimage_message_part
(image_path: str)
chapter5/cad-vs-diffusion/llm.py:73
Functionimage_metadata
Get image metadata.
chapter4/perception-tools/src/main.py:562
Functionimage_ocr
Extract text from image using OCR.
chapter4/perception-tools/src/main.py:514
Functionimage_parser
Parse image content.
chapter4/perception-tools/src/main.py:158
Functionimport_fake_evaluation_module
(name, globals=None, locals=None, fromlist=(), level=0)
chapter3/user-memory/test_evaluation_memory_view.py:28
Functionimprovement
()
scripts/book_figures/chapter7.py:114
Methodincluded_action
(text: str)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:465
Functionindex
()
chapter6/phone-agent/webrtc_app.py:321
Functionindex_batch
Index multiple documents at once
chapter3/sparse-embedding/server.py:393
Functionindex_document
Index a document in both dense and sparse services. This endpoint: 1. Stores the document locally 2. Indexes in dense embedding servi
chapter3/retrieval-pipeline/main.py:115
Functionindex_document
Index a new document. This endpoint: 1. Generates embeddings using BGE-M3 2. Adds the document to the document store 3. Adds
chapter3/dense-embedding/main.py:178
Functionindex_document
Index a single document
chapter3/sparse-embedding/server.py:367
Methodindex_document
Index a document in both dense and sparse services. Args: text: Document text doc_id: Optional document ID (g
chapter3/retrieval-pipeline/retrieval_pipeline.py:38
Methodindex_document
Index a document in both services in parallel.
chapter3/retrieval-pipeline/retrieval_client.py:68
Methodindividual_params_action
(text: str, number: int, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:520
FunctioninitContinueReading
()
web-astro/src/scripts/reading-position.ts:125
FunctioninitFigureViewer
()
web-astro/src/scripts/figure-viewer.ts:1
FunctioninitHighlights
()
web-astro/src/scripts/highlights.ts:18
FunctioninitMachineTranslation
()
web-astro/src/scripts/machine-translation.ts:30
FunctioninitReaderNavigation
()
web-astro/src/scripts/reader-navigation.ts:119
FunctioninitReadingPosition
()
web-astro/src/scripts/reading-position.ts:9
Methodinput_text
(index: int, text: str, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:729
Methodinput_text
( params: InputTextAction, browser_session: BrowserSession, has_sensitive_data: bool = False, sens
chapter9/browser-use-rpa/browser-use/browser_use/tools/service.py:334
Functioninspect_release
Read a sample release's test results and evaluate its required checks.
chapter5/agent-creator/deepagents_release_review.py:19
Functioninstall
Install the upstream wrapper once and return its mutable recorder.
chapter10/generative-agents/action_arena_compat.py:105
Functioninteractive_llm
Create mocked LLM that navigates to page and interacts with elements.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_output_paths.py:51
Methodinvoke
(data: Dict[str, Any], user_id: str)
chapter2/prompt-engineering/tau_bench/envs/retail/tools/get_user_details.py:10
Methodinvoke
(data: Dict[str, Any], first_name: str, last_name: str, zip: str)
chapter2/prompt-engineering/tau_bench/envs/retail/tools/find_user_id_by_name_zip.py:9
Methodinvoke
(data: Dict[str, Any])
chapter2/prompt-engineering/tau_bench/envs/retail/tools/list_all_product_types.py:10
Methodinvoke
( data: Dict[str, Any], order_id: str, item_ids: List[str], payment_method_id: str )
chapter2/prompt-engineering/tau_bench/envs/retail/tools/return_delivered_order_items.py:10
Methodinvoke
(data: Dict[str, Any], email: str)
chapter2/prompt-engineering/tau_bench/envs/retail/tools/find_user_id_by_email.py:9
Methodinvoke
( data: Dict[str, Any], order_id: str, payment_method_id: str, )
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_pending_order_payment.py:10
Methodinvoke
( data: Dict[str, Any], order_id: str, item_ids: List[str], new_item_ids: List
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_pending_order_items.py:10
Methodinvoke
( data: Dict[str, Any], user_id: str, address1: str, address2: str, ci
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_user_address.py:10
Methodinvoke
(data: Dict[str, Any], order_id: str)
chapter2/prompt-engineering/tau_bench/envs/retail/tools/get_order_details.py:10
Methodinvoke
(data: Dict[str, Any], thought: str)
chapter2/prompt-engineering/tau_bench/envs/retail/tools/think.py:9
Methodinvoke
( data: Dict[str, Any], order_id: str, address1: str, address2: str, c
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_pending_order_address.py:10
Methodinvoke
(data: Dict[str, Any], order_id: str, reason: str)
chapter2/prompt-engineering/tau_bench/envs/retail/tools/cancel_pending_order.py:10
Methodinvoke
( data: Dict[str, Any], order_id: str, item_ids: List[str], new_item_ids: List
chapter2/prompt-engineering/tau_bench/envs/retail/tools/exchange_delivered_order_items.py:11
Methodinvoke
(data: Dict[str, Any], summary: str)
chapter2/prompt-engineering/tau_bench/envs/retail/tools/transfer_to_human_agents.py:9
Methodinvoke
(data: Dict[str, Any], product_id: str)
chapter2/prompt-engineering/tau_bench/envs/retail/tools/get_product_details.py:10
Methodinvoke
(data: Dict[str, Any], expression: str)
chapter2/prompt-engineering/tau_bench/envs/retail/tools/calculate.py:9
Methodinvoke
(data: Dict[str, Any], user_id: str)
chapter2/prompt-engineering/tau_bench/envs/airline/tools/get_user_details.py:10
Methodinvoke
( data: Dict[str, Any], reservation_id: str, )
chapter2/prompt-engineering/tau_bench/envs/airline/tools/cancel_reservation.py:10
Methodinvoke
( data: Dict[str, Any], user_id: str, origin: str, destination: str, f
chapter2/prompt-engineering/tau_bench/envs/airline/tools/book_reservation.py:11
Methodinvoke
( data: Dict[str, Any], reservation_id: str, cabin: str, flights: List[Dict[st
chapter2/prompt-engineering/tau_bench/envs/airline/tools/update_reservation_flights.py:11
Methodinvoke
( data: Dict[str, Any], reservation_id: str, passengers: List[Dict[str, Any]], )
chapter2/prompt-engineering/tau_bench/envs/airline/tools/update_reservation_passengers.py:10
Methodinvoke
(data: Dict[str, Any], origin: str, destination: str, date: str)
chapter2/prompt-engineering/tau_bench/envs/airline/tools/search_onestop_flight.py:10
Methodinvoke
(data: Dict[str, Any], thought: str)
chapter2/prompt-engineering/tau_bench/envs/airline/tools/think.py:9
Methodinvoke
(data: Dict[str, Any], reservation_id: str)
chapter2/prompt-engineering/tau_bench/envs/airline/tools/get_reservation_details.py:10
Methodinvoke
(data: Dict[str, Any], origin: str, destination: str, date: str)
chapter2/prompt-engineering/tau_bench/envs/airline/tools/search_direct_flight.py:10
Methodinvoke
(data: Dict[str, Any])
chapter2/prompt-engineering/tau_bench/envs/airline/tools/list_all_airports.py:10
Methodinvoke
( data: Dict[str, Any], reservation_id: str, total_baggages: int, nonfree_bagg
chapter2/prompt-engineering/tau_bench/envs/airline/tools/update_reservation_baggages.py:10
Methodinvoke
( data: Dict[str, Any], summary: str, )
chapter2/prompt-engineering/tau_bench/envs/airline/tools/transfer_to_human_agents.py:9
Methodinvoke
( data: Dict[str, Any], user_id: str, amount: int, )
chapter2/prompt-engineering/tau_bench/envs/airline/tools/send_certificate.py:9
Methodinvoke
(data: Dict[str, Any], expression: str)
chapter2/prompt-engineering/tau_bench/envs/airline/tools/calculate.py:9
Methodis_actually_scrollable
Enhanced scroll detection that combines CDP detection with CSS analysis. This detects scrollable elements that Chrome's CDP might miss, which is
chapter9/browser-use-rpa/browser-use/browser_use/dom/views.py:541
Functionis_debug_mode
Check if we're currently in debug mode.
chapter9/browser-use-rpa/browser-use/browser_use/observability.py:190
Methodis_element_visible_according_to_all_parents
Check if the element is visible according to all its parent HTML frames. Delegates to the DomService static method.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/dom_watchdog.py:565
Functionis_lmnr_available
Check if lmnr is available for tracing.
chapter9/browser-use-rpa/browser-use/browser_use/observability.py:185
Methodis_local
Whether this is a local browser instance from browser profile.
chapter9/browser-use-rpa/browser-use/browser_use/browser/session.py:328
Methodis_passed
Use the evaluator verdict, or the historical 0.6 cutoff for older records.
chapter3/user-memory-evaluation/models.py:121
Functionis_successful
(self: Any, env: Any)
chapter7/android-world/run_controlled_experiment.py:393
← previousnext →9,201–9,300 of 13,003, ranked by callers