MCPcopy Create free account

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

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

Functionon_rollback
()
tests/test_ch9_safety_policy_gate.py:20
Methodon_screencastFrame
Synchronous handler for incoming screencast frames.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/recording_watchdog.py:96
Methodon_target_crashed
(event: TargetCrashedEvent, session_id: SessionID | None = None)
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/crash_watchdog.py:110
Functionon_track
(track: Any)
chapter6/phone-agent/webrtc_app.py:607
Functionone_run
(provider: str, model: str, arm: str, seed: int)
chapter9/self-evolution-eval/run_experiment_9_9.py:58
Functionopen_evaluator
Evaluator with every sandbox protection disabled (fail-open).
tests/test_ch5_sandbox_evaluator.py:40
Functionopenai_cua_fallback
Fallback action that uses OpenAI's Computer Use Assistant to perform complex computer interactions when standard browser actions are insufficient.
chapter9/browser-use-rpa/browser-use/examples/custom-functions/cua.py:180
Methodopenrouter_chat
Provides an initialized ChatOpenRouter client for tests.
chapter9/browser-use-rpa/browser-use/browser_use/llm/tests/test_chat_models.py:51
Functionoperations_to_json
Convert operations to JSON string Args: operations: List of memory operations pretty: Whether to pretty-print the JSON
chapter3/user-memory/memory_operation_formatter.py:113
Methodoptimize_schema
Apply all optimization techniques including flattening all $ref/$defs
chapter9/browser-use-rpa/browser-use/browser_use/llm/schema.py:29
Functionorder_service
()
chapter5/log-diagnosis/test_campaign_orchestrator.py:16
Functionorg_admin
()
chapter5/permission-embedded-data-objects/tests/test_scenarios.py:171
Functionother_tenant_member
()
chapter5/permission-embedded-data-objects/tests/test_scenarios.py:186
Functionoutput_callback
(block: Any)
chapter6/claude-computer-use-native/run_weather_task.py:154
Functionoverview
()
scripts/book_figures/chapter7.py:6
Functionpairs
()
chapter8/premature-completion-dpo/test_pipeline.py:68
Functionpanel
( k, x, y, width, rows, { fill = '#f0f0f0', min = 0, name = '', dash = false } = {}, )
web-astro/scripts/evaluation-layout-kit.mjs:31
Functionparse
(line: str)
chapter5/adaptive-log-parser/validation/runs/20260729T212342Z-5_7-live/parsers/live_bracket_parser.py:3
Functionparse
(line: str)
chapter5/adaptive-log-parser/validation/runs/20260729T212342Z-5_7-live/parsers/live_pipe_parser.py:3
Methodparse
( self, text: str, typ: type[T] | dict[str, Any], examples: list[ParseDatapoin
chapter2/prompt-engineering/tau_bench/model_utils/model/chat.py:358
Methodparse
( self, text: str, typ: type[T] | dict[str, Any], examples: list[ParseDatapoin
chapter2/prompt-engineering/tau_bench/model_utils/model/completion.py:285
Methodparse
( self, text: str, typ: type[T] | dict[str, Any], examples: list[ParseDatapoin
chapter2/prompt-engineering/tau_bench/model_utils/model/model.py:79
Methodparse
( self, text: str, typ: type[T] | dict[str, Any], examples: list[ParseDatapoin
chapter2/prompt-engineering/tau_bench/model_utils/model/general_model.py:84
Functionparse_agent_history
(history_str: str)
chapter9/browser-use-rpa/browser-use/examples/ui/gradio_demo.py:37
Functionparse_concurrency
(value: str)
chapter2/local_llm_serving/benchmark.py:327
Methodparse_force
( self, instruction: str, typ: type[T] | dict[str, Any], text: str | None = No
chapter2/prompt-engineering/tau_bench/model_utils/model/chat.py:389
Methodparse_force
( self, instruction: str, typ: type[T] | dict[str, Any], text: str | None = No
chapter2/prompt-engineering/tau_bench/model_utils/model/completion.py:312
Methodparse_force
( self, instruction: str, typ: type[T] | dict[str, Any], text: str | None = No
chapter2/prompt-engineering/tau_bench/model_utils/model/model.py:103
Methodparse_force
( self, instruction: str, typ: type[T] | dict[str, Any], text: str | None = No
chapter2/prompt-engineering/tau_bench/model_utils/model/general_model.py:104
Methodparse_force_from_prompt
( self, prompt: str, typ: BaseModel | dict[str, Any], temperature: float | None = None )
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_completion.py:98
Methodparse_force_from_prompt
( self, prompt: str, typ: BaseModel, temperature: float | None = None )
chapter2/prompt-engineering/tau_bench/model_utils/model/outlines_completion.py:11
Methodparse_pdf
Parse a PDF document from URL or local file
chapter2/local_llm_serving/tools.py:372
Methodparser_names
(self)
chapter5/adaptive-log-parser/engine.py:71
Functionpatch_hole_diameter
变更请求的实现:只改 PARAMS 中 hole_diameter 一个参数。返回修补记录。
chapter5/cad-vs-diffusion/route_a_codegen.py:82
Functionpdf_extract
Extract text from PDF.
chapter4/perception-tools/src/main.py:458
FunctionperceptionLoop
(k)
web-astro/scripts/computer-use-layout.mjs:46
Methodpersist
(status: str, error: str | None = None)
chapter5/agent-creator/creator.py:887
Methodpersist_calls
()
chapter3/user-memory/run_evaluation.py:274
Functionpersist_checkpoint
(arm, records)
chapter5/code-for-logic/demo.py:558
Functionplaywright_fill_form
Custom action that uses Playwright to fill forms with high precision. This demonstrates how to create Browser-Use actions that leverage Playwright'
chapter9/browser-use-rpa/browser-use/examples/browser/playwright_integration.py:154
Functionplaywright_get_text
Custom action that uses Playwright's advanced text extraction with CSS selectors and XPath.
chapter9/browser-use-rpa/browser-use/examples/browser/playwright_integration.py:249
Functionplaywright_screenshot
Custom action that uses Playwright's advanced screenshot features.
chapter9/browser-use-rpa/browser-use/examples/browser/playwright_integration.py:216
Functionplot_rating_history
Plot rating evolution over time for selected models. Args: history_df: DataFrame with columns: date, model, rating model
chapter7/elo-leaderboard/visualization.py:94
Functionpm_store
()
chapter5/permission-embedded-data-objects/tests/test_scenarios.py:163
Functionpoi_search
Search points of interest.
chapter4/perception-tools/src/main.py:294
Methodportable_text
换一家模型时还能带走的部分。
chapter5/provider-failover/neutral_trace.py:35
Functionppt
()
scripts/book_figures/chapter5.py:60
Functionpptx_extract
Extract content from PPTX.
chapter4/perception-tools/src/main.py:475
Methodpredict
(self, prompt)
tests/test_ch7_evaluate_multilingual.py:172
Methodpredict
(self, prompt)
tests/test_ch8_evaluate_multilingual.py:172
Functionprefix_one
(args: argparse.Namespace, chunk: Dict[str, Any], source: Dict[str, Any])
chapter3/contextual-retrieval/campaign.py:86
Functionpreprocess_example
(example)
chapter8/sesame/sesame_csm_sft_unsloth.py:120
Methodprice
( self, input_tokens: int, output_tokens: int = 0, cached_input_tokens: int =
chapter7/user-memory-system-evaluation/experiment.py:204
Methodprint_config
Print current configuration (hiding sensitive data)
chapter1/context/config.py:202
Methodprint_config
Print current configuration (hiding sensitive data)
chapter3/user-memory/config.py:210
Functionprint_model
(model)
chapter3/structured-knowledge-extraction/archetypes.py:220
Functionprint_result
Print formatted result
chapter3/user-memory/main.py:40
Methodprint_results
Pretty print search results.
chapter3/retrieval-pipeline/test_client.py:49
Functionprint_schema
(schema)
chapter3/structured-knowledge-extraction/discovery.py:132
Functionprint_with_typing_effect
Print text with a typing effect
chapter2/local_llm_serving/demo_streaming.py:10
Functionprobe_duration
返回音频时长(秒)。ffprobe 缺失或出错时抛异常。
chapter7/tts-quality-eval/pipeline.py:264
Methodprocess
(inputs, outputs, parameters)
chapter6/live-audio/frontend/public/audioWorklet.js:10
Methodprocess
(inputs, outputs, parameters)
chapter6/live-audio/frontend/public/audioWorklet.js:103
Methodprocess_frame_tree
Recursively process frame tree and add to all_frames.
chapter9/browser-use-rpa/browser-use/browser_use/browser/session.py:2169
Methodprocess_html
Process HTML files.
chapter3/structured-index/document_processor.py:199
Methodprocess_markdown
Process Markdown files.
chapter3/structured-index/document_processor.py:185
Functionprocess_page
( run_dir: Path, narration_client: OpenAI, vision_client: OpenAI, protocol: dict[str, Any],
chapter5/paper-to-video/campaign.py:209
Methodprocess_pdf
Process PDF files with special handling for technical documentation. Optimized for Intel manuals with complex formatting.
chapter3/structured-index/document_processor.py:49
Methodprocess_text
Process plain text files.
chapter3/structured-index/document_processor.py:176
Functionprocess_time_slice
Process a single time slice to build leaderboard. Args: args: Tuple of (end_date, slice_df, initial_rating, k_factor)
chapter7/elo-leaderboard/parallel_processing.py:13
Methodprocess_turn
Process a single turn in the conversation.
chapter3/mem0/agent.py:245
Methodproduct
(self, product_id)
chapter7/model-action-threshold/tasks/cache_contract/repo/cachelib/catalog.py:6
Functionproject_admin
()
chapter5/permission-embedded-data-objects/tests/test_scenarios.py:176
Methodprompt_cost
(self)
chapter9/browser-use-rpa/browser-use/browser_use/tokens/views.py:36
Functionprompt_statistics
Return summary statistics for the prompt suite.
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/prompts.py:833
Methodproperties
(self)
chapter9/browser-use-rpa/browser-use/browser_use/telemetry/views.py:17
Methodprovider
Return the provider name based on the LangChain model class.
chapter9/browser-use-rpa/browser-use/examples/models/langchain/chat.py:35
Methodprovider
(self)
chapter9/browser-use-rpa/browser-use/browser_use/llm/base.py:24
Methodprovider
(self)
chapter9/browser-use-rpa/browser-use/browser_use/llm/deepseek/chat.py:47
Methodprovider
(self)
chapter9/browser-use-rpa/browser-use/browser_use/llm/ollama/chat.py:39
Methodprovider
(self)
chapter9/browser-use-rpa/browser-use/browser_use/llm/azure/chat.py:40
Methodprovider
(self)
chapter9/browser-use-rpa/browser-use/browser_use/llm/groq/chat.py:80
Methodprovider
(self)
chapter9/browser-use-rpa/browser-use/browser_use/llm/anthropic/chat.py:56
Methodprovider
(self)
chapter9/browser-use-rpa/browser-use/browser_use/llm/google/chat.py:94
Methodprovider
(self)
chapter9/browser-use-rpa/browser-use/browser_use/llm/openai/chat.py:74
Methodprovider
(self)
chapter9/browser-use-rpa/browser-use/browser_use/llm/aws/chat_anthropic.py:63
Methodprovider
(self)
chapter9/browser-use-rpa/browser-use/browser_use/llm/aws/chat_bedrock.py:60
Methodprovider
(self)
chapter9/browser-use-rpa/browser-use/browser_use/llm/openrouter/chat.py:54
Functionprovider_date
(email: dict[str, Any])
chapter6/agent-with-event-trigger/unipile_mailbox_experiment.py:340
Functionprovider_environment
(monkeypatch)
chapter6/phone-agent/test_agent.py:57
Functionpubchem_properties
Get compound properties.
chapter4/perception-tools/src/main.py:383
Functionpubchem_search
Search PubChem compounds.
chapter4/perception-tools/src/main.py:373
Functionpubchem_similar
Search similar compounds.
chapter4/perception-tools/src/main.py:401
Functionpubchem_synonyms
Get compound synonyms.
chapter4/perception-tools/src/main.py:392
Methodput
(self, item, *args, **kwargs)
tests/test_ch5_pedo_atomic_delete.py:264
Methodpydantic_action
(params: ComplexParams, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:159
Methodpydantic_params_action
(params: TestParams, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:529
Functionq10_owed_salary
(emps, sals, today)
chapter5/erp-agent/reference.py:133
Functionq1_avg_tenure_days
(emps, sals, today)
chapter5/erp-agent/reference.py:31
Functionq2_active_by_dept
(emps, sals, today)
chapter5/erp-agent/reference.py:36
← previousnext →9,601–9,700 of 13,003, ranked by callers