MCPcopy Create free account

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

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

↓ 1 callersMethod_filter_sensitive_data
Filter out sensitive data from the message
chapter9/browser-use-rpa/browser-use/browser_use/agent/message_manager/service.py:383
↓ 1 callersMethod_filter_sensitive_data_from_dict
Recursively filter sensitive data from a dictionary
chapter9/browser-use-rpa/browser-use/browser_use/agent/views.py:300
↓ 1 callersMethod_filter_sensitive_data_from_string
Filter out sensitive data from a string value
chapter9/browser-use-rpa/browser-use/browser_use/agent/views.py:271
↓ 1 callersMethod_filter_tree_recursive
Recursively filter tree with bounding box propagation. Bounds propagate to ALL descendants until overridden.
chapter9/browser-use-rpa/browser-use/browser_use/dom/serializer/serializer.py:592
↓ 1 callersFunction_final_msg
()
tests/test_ch10_multi_role_transfer_unhashable_target.py:31
↓ 1 callersFunction_final_msg
()
chapter10/multi-role-transfer/tests/test_tool_dispatch_errors.py:26
↓ 1 callersMethod_finalize
Finalize the step with history, logging, and events
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:825
↓ 1 callersFunction_finalize_execution
(task: dict[str, Any], state: dict[str, Any], task_dir: Path)
chapter4/active-tool-discovery/run_exact_experiment.py:509
↓ 1 callersFunction_finance
(name: str, query: str, options: dict[str, Any])
chapter4/perception-tools/src/expanded_catalog.py:535
↓ 1 callersFunction_find_bare_excepts
Return line numbers of bare ``except:`` handlers in *path*.
tests/test_no_bare_except.py:34
↓ 1 callersMethod_find_boundary_gaps
Flag when examples cluster into too few length buckets.
chapter8/cot-distillation/sft_data_auditor.py:505
↓ 1 callersMethod_find_free_port
Find a free port for the debugging interface.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/local_browser_watchdog.py:347
↓ 1 callersMethod_find_html_in_content_document
Find HTML element in iframe content document.
chapter9/browser-use-rpa/browser-use/browser_use/dom/views.py:619
↓ 1 callersFunction_find_pair
(retained: dict[str, Any], arm: str, stage: str, keyword: str)
chapter8/MiniMind-pretrain/validation/run_training_report_audit.py:208
↓ 1 callersMethod_find_relevant_memory_cards
Find which memory cards might be relevant to the question
chapter3/contextual-retrieval-for-user-memory/contextual_agent.py:465
↓ 1 callersMethod_find_valid_cache
Find the most recent valid cache file
chapter9/browser-use-rpa/browser-use/browser_use/tokens/service.py:79
↓ 1 callersFunction_first_of_month
(d: date)
chapter5/erp-agent/seed.py:29
↓ 1 callersMethod_first_user_content
(example: dict[str, Any])
chapter8/cot-distillation/sft_data_auditor.py:583
↓ 1 callersFunction_fit_plane_rms
点到最小二乘拟合平面距离的 RMS(mm)。
chapter5/cad-vs-diffusion/measure.py:31
↓ 1 callersFunction_fix_control_characters_in_json
Fix control characters in JSON string values to make them valid JSON.
chapter9/browser-use-rpa/browser-use/browser_use/llm/groq/parser.py:95
↓ 1 callersMethod_fix_javascript_string
Fix common JavaScript string parsing issues when written as Python string.
chapter9/browser-use-rpa/browser-use/browser_use/actor/page.py:159
↓ 1 callersFunction_fmt
(value: Any)
chapter7/android-world/experiment_core.py:386
↓ 1 callersFunction_fmt_grade
(g)
chapter4/active-tool-discovery/demo.py:93
↓ 1 callersMethod_focus_element_simple
Simple focus strategy: CDP first, then click if failed.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/default_action_watchdog.py:937
↓ 1 callersMethod_focus_element_simple
Focus element using multiple strategies with robust fallbacks.
chapter9/browser-use-rpa/browser-use/browser_use/actor/element.py:941
↓ 1 callersMethod_force_done_after_failure
Force done after failure
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:882
↓ 1 callersMethod_force_done_after_last_step
Handle special processing for the last step
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:870
↓ 1 callersMethod_format_bool
Format boolean value with color
chapter2/context-compression/experiment.py:185
↓ 1 callersFunction_format_conversation
Format the conversation including messages and response.
chapter9/browser-use-rpa/browser-use/browser_use/agent/message_manager/utils.py:33
↓ 1 callersMethod_format_mcp_result
Format MCP tool result into a string for ActionResult. Args: result: Raw result from MCP tool call Returns: Formatted string representatio
chapter9/browser-use-rpa/browser-use/browser_use/mcp/client.py:407
↓ 1 callersMethod_format_memories_for_context
Format memories for inclusion in context
chapter3/memobase/agent.py:340
↓ 1 callersMethod_format_messages
Format messages based on mode - recreated each iteration for incorrect modes
chapter2/kv-cache/agent.py:513
↓ 1 callersFunction_format_normalized_number
(num: float)
chapter8/Intuitor/evaluate_from_cache.py:65
↓ 1 callersMethod_format_reranked_results
Format reranked results for response. Args: reranked: List of reranked results Returns:
chapter3/retrieval-pipeline/retrieval_pipeline.py:276
↓ 1 callersMethod_format_table
Format a table into structured text.
chapter3/structured-index/document_processor.py:158
↓ 1 callersMethod_format_todo_list
Format TODO list for display
chapter6/agent-with-event-trigger/agent.py:528
↓ 1 callersMethod_format_tools_for_request
Format a Pydantic model as a tool for structured output.
chapter9/browser-use-rpa/browser-use/browser_use/llm/aws/chat_bedrock.py:117
↓ 1 callersMethod_forward
(self, batch: List[str])
chapter3/retrieval-pipeline/evaluate.py:251
↓ 1 callersFunction_frange
浮点 range(含首、含接近末尾的采样点)。
chapter5/video-edit/agents.py:215
↓ 1 callersFunction_free_port
()
chapter5/log-diagnosis/campaign.py:65
↓ 1 callersFunction_gate
(name: str, passed: bool, evidence: object)
chapter9/trajectory-verifier/run_experiment_9_1.py:33
↓ 1 callersFunction_gemini
(trace: Trace, arm: str, tools: list[dict], model: str, system: str | None)
chapter5/provider-failover/renderers.py:141
↓ 1 callersFunction_gemini_parts
返回 (parts, 被拍平成文本的 call_id 集合)。
chapter5/provider-failover/renderers.py:176
↓ 1 callersMethod_generate_chunk_context
Generate contextual description for a chunk using Anthropic's exact approach. This follows Anthropic's Contextual Retrieval
chapter3/contextual-retrieval/contextual_chunking.py:389
↓ 1 callersMethod_generate_chunk_context
Generate contextual description for a conversation chunk. This follows Anthropic's Contextual Retrieval approach adapted for
chapter3/contextual-retrieval-for-user-memory/contextual_chunking.py:264
↓ 1 callersMethod_generate_contextual_chunks
Generate contextual enhancements for chunks. Educational Note: Following Anthropic's Contextual Retrieval approach:
chapter3/contextual-retrieval/contextual_chunking.py:296
↓ 1 callersMethod_generate_diff
Generate a simple diff preview.
chapter4/execution-tools/file_tools.py:198
↓ 1 callersMethod_generate_long_context
Generate synthetic long context for testing
chapter3/memobase/locomo_benchmark.py:191
↓ 1 callersMethod_generate_semantic_tags
Generate semantic tags for better retrieval Args: chunk: Conversation chunk Returns:
chapter3/agentic-rag-for-user-memory/indexer.py:249
↓ 1 callersMethod_generate_semantic_tags
Generate semantic tags for better retrieval Args: chunk: Conversation chunk Returns:
chapter3/contextual-retrieval-for-user-memory/indexer.py:157
↓ 1 callersMethod_generate_summary_cards
Generate summary cards from conversation chunks using LLM extraction. Uses an LLM to analyze conversation chunks and extract
chapter3/contextual-retrieval-for-user-memory/contextual_indexer.py:246
↓ 1 callersMethod_generate_template_spec
( self, requirements: str, prompt: str )
chapter5/agent-creator/creator.py:602
↓ 1 callersMethod_generate_valid_envelope
( self, prompt: str, allowed: set[str], required: set[str], *,
chapter5/agent-creator/creator.py:645
↓ 1 callersFunction_geo
(name: str, query: str, options: dict[str, Any])
chapter4/perception-tools/src/expanded_catalog.py:866
↓ 1 callersMethod_get_agent_state_description
(self)
chapter9/browser-use-rpa/browser-use/browser_use/agent/prompts.py:284
↓ 1 callersMethod_get_all_trees
(self, target_id: TargetID)
chapter9/browser-use-rpa/browser-use/browser_use/dom/service.py:291
↓ 1 callersMethod_get_ax_tree_for_all_frames
Recursively collect all frames and merge their accessibility trees into a single array.
chapter9/browser-use-rpa/browser-use/browser_use/dom/service.py:254
↓ 1 callersMethod_get_browser_state
Get current browser state.
chapter9/browser-use-rpa/browser-use/browser_use/mcp/server.py:766
↓ 1 callersMethod_get_browser_state_description
(self)
chapter9/browser-use-rpa/browser-use/browser_use/agent/prompts.py:186
↓ 1 callersMethod_get_char_modifiers_and_vk
Get modifiers, virtual key code, and base key for a character. Returns: (modifiers, windowsVirtualKeyCode, base_key)
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/default_action_watchdog.py:654
↓ 1 callersMethod_get_char_modifiers_and_vk
Get modifiers, virtual key code, and base key for a character. Returns: (modifiers, windowsVirtualKeyCode, base_key)
chapter9/browser-use-rpa/browser-use/browser_use/actor/element.py:711
↓ 1 callersFunction_get_client
Create a JudgeClient for the resolved backend, with clear errors.
chapter7/elo-leaderboard/llm_judge.py:144
↓ 1 callersMethod_get_client
Get the AWS Bedrock client.
chapter9/browser-use-rpa/browser-use/browser_use/llm/aws/chat_bedrock.py:63
↓ 1 callersMethod_get_client_params
(self)
chapter9/browser-use-rpa/browser-use/browser_use/llm/azure/chat.py:43
↓ 1 callersMethod_get_client_params
Prepare client parameters dictionary.
chapter9/browser-use-rpa/browser-use/browser_use/llm/anthropic/chat.py:59
↓ 1 callersMethod_get_client_params
Prepare client parameters dictionary.
chapter9/browser-use-rpa/browser-use/browser_use/llm/google/chat.py:102
↓ 1 callersMethod_get_client_params
Prepare client parameters dictionary.
chapter9/browser-use-rpa/browser-use/browser_use/llm/openai/chat.py:77
↓ 1 callersMethod_get_client_params
Prepare client parameters dictionary for Bedrock.
chapter9/browser-use-rpa/browser-use/browser_use/llm/aws/chat_anthropic.py:66
↓ 1 callersMethod_get_client_params
Prepare client parameters dictionary.
chapter9/browser-use-rpa/browser-use/browser_use/llm/openrouter/chat.py:57
↓ 1 callersMethod_get_client_params_for_invoke
Prepare client parameters dictionary for invoke.
chapter9/browser-use-rpa/browser-use/browser_use/llm/anthropic/chat.py:80
↓ 1 callersMethod_get_client_params_for_invoke
Prepare client parameters dictionary for invoke.
chapter9/browser-use-rpa/browser-use/browser_use/llm/aws/chat_anthropic.py:101
↓ 1 callersMethod_get_config_path
Get config path from fresh env config.
chapter9/browser-use-rpa/browser-use/browser_use/config.py:389
↓ 1 callersMethod_get_contextual_tool_definitions
Get tool definitions with contextual search capabilities
chapter3/contextual-retrieval/contextual_agent.py:203
↓ 1 callersMethod_get_current_context_summary
Get a summary of current context for context-aware compression
chapter2/context-compression/agent.py:237
↓ 1 callersMethod_get_current_viewport_size
Gets the current viewport size directly from the browser via CDP.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/recording_watchdog.py:77
↓ 1 callersMethod_get_detailed_error
Get detailed error information for debugging
chapter6/agent-with-event-trigger/agent.py:792
↓ 1 callersMethod_get_document_dify
Get document from Dify
chapter3/contextual-retrieval/tools.py:354
↓ 1 callersMethod_get_document_dify
Get document from Dify
chapter3/agentic-rag/tools.py:349
↓ 1 callersMethod_get_document_graphrag
Get entity or community from GraphRAG index
chapter3/contextual-retrieval/tools.py:417
↓ 1 callersMethod_get_document_graphrag
Get entity or community from GraphRAG index
chapter3/agentic-rag/tools.py:412
↓ 1 callersMethod_get_document_local
Get document from local retrieval pipeline
chapter3/contextual-retrieval/tools.py:337
↓ 1 callersMethod_get_document_local
Get document from local retrieval pipeline
chapter3/agentic-rag/tools.py:332
↓ 1 callersMethod_get_document_raptor
Get document/node from RAPTOR index
chapter3/contextual-retrieval/tools.py:380
↓ 1 callersMethod_get_document_raptor
Get document/node from RAPTOR index
chapter3/agentic-rag/tools.py:375
↓ 1 callersMethod_get_element_bounds
Get element bounding box using CDP.
chapter9/browser-use-rpa/browser-use/browser_use/browser/session.py:2474
↓ 1 callersMethod_get_element_info
Get element information from selector map. Args: index: Element index selector_map: Browser-use sele
chapter9/browser-use-rpa/learning_agent/agent.py:249
↓ 1 callersMethod_get_element_position
Get the position of an element among its siblings with the same tag name. Returns 0 if it's the only element of its type, otherwise returns 1-based
chapter9/browser-use-rpa/browser-use/browser_use/dom/views.py:435
↓ 1 callersMethod_get_enhanced_tool_definitions
Get enhanced tool definitions for contextual search
chapter3/contextual-retrieval-for-user-memory/contextual_agent.py:124
↓ 1 callersMethod_get_error_suggestions
Get suggestions for fixing common errors
chapter6/agent-with-event-trigger/agent.py:809
↓ 1 callersMethod_get_error_suggestions
Get suggestions for fixing common errors
chapter2/system-hint/agent.py:529
↓ 1 callersMethod_get_extension_args
Get Chrome args for enabling default extensions (ad blocker and cookie handler).
chapter9/browser-use-rpa/browser-use/browser_use/browser/profile.py:819
↓ 1 callersMethod_get_git_branch
Get current git branch
chapter5/coding-agent/agent.py:85
↓ 1 callersMethod_get_git_branch
Get current git branch
chapter5/coding-agent/agent_new.py:71
↓ 1 callersMethod_get_git_status
Get git status
chapter5/coding-agent/agent.py:106
↓ 1 callersMethod_get_github_client
Get or create GitHub client.
chapter4/execution-tools/external_tools.py:73
↓ 1 callersMethod_get_google_calendar_service
Get or create Google Calendar service.
chapter4/execution-tools/external_tools.py:39
↓ 1 callersMethod_get_inference_config
Get the inference configuration for the request.
chapter9/browser-use-rpa/browser-use/browser_use/llm/aws/chat_bedrock.py:102
↓ 1 callersMethod_get_key_code_for_char
Get the proper key code for a character (like Playwright does).
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/default_action_watchdog.py:724
↓ 1 callersMethod_get_key_code_for_char
Get the proper key code for a character (like Playwright does).
chapter9/browser-use-rpa/browser-use/browser_use/actor/element.py:781
↓ 1 callersMethod_get_main_branch
Get main branch name
chapter5/coding-agent/agent.py:93
← previousnext →3,301–3,400 of 13,003, ranked by callers