MCPcopy Create free account

hub / github.com/HKUDS/OpenSpace / functions

Functions2,195 in github.com/HKUDS/OpenSpace

↓ 1 callersFunction_extract_explicit_llm_kwargs
Read OpenSpace-native LLM overrides from an env-like dict.
openspace/host_detection/openclaw.py:155
↓ 1 callersMethod_extract_response_text
(result: Dict[str, Any])
openspace/communication/gateway.py:497
↓ 1 callersMethod_extract_skill_contents
Parse the injected skill context to extract per-skill content. The injection text uses ``### Skill: {skill_id}`` headers, so we split
openspace/skill_engine/analyzer.py:455
↓ 1 callersMethod_extract_zip
Extract zip bytes to target directory with path traversal protection.
openspace/cloud/client.py:455
↓ 1 callersMethod_extract_zip_text_files
Extract text files from zip as ``{filename: content}``.
openspace/cloud/client.py:478
↓ 1 callersMethod_fetch_message_text
(self, message_id: Optional[str])
openspace/communication/adapters/feishu.py:580
↓ 1 callersFunction_find_similar_lines
Fuzzy match for error reporting.
openspace/skill_engine/patch.py:979
↓ 1 callersMethod_find_terminals
Recursively find terminal components
openspace/local_server/platform_adapters/linux_adapter.py:348
↓ 1 callersMethod_fix_pyautogui_less_than_bug
Fix PyAutoGUI '<' character bug.
openspace/grounding/backends/gui/transport/local_connector.py:127
↓ 1 callersMethod_fix_pyautogui_less_than_bug
Fix PyAutoGUI '<' character bug by converting it to hotkey("shift", ',') calls. This fixes the known PyAutoGUI issue where t
openspace/grounding/backends/gui/transport/connector.py:110
↓ 1 callersMethod_flatten_node
Recursively flatten nodes
openspace/local_server/utils/accessibility.py:84
↓ 1 callersMethod_format_action_command
Format planned action into a human-readable command string. Args: planned_action: Action dictionary from LLM pla
openspace/grounding/backends/gui/tool.py:674
↓ 1 callersFunction_format_compact
Compact format: one line per step.
openspace/recording/utils.py:59
↓ 1 callersMethod_format_conversations
Format conversations.jsonl into a readable text block for the LLM. Delegates to :func:`conversation_formatter.format_conversations`.
openspace/skill_engine/analyzer.py:703
↓ 1 callersFunction_format_detailed
Detailed format: multiple lines per step with parameters.
openspace/recording/utils.py:76
↓ 1 callersFunction_format_markdown
Markdown format: table format.
openspace/recording/utils.py:115
↓ 1 callersFunction_format_task_result
Format an OpenSpace execution result for MCP transport.
openspace/mcp_server.py:468
↓ 1 callersMethod_format_tool_executions
(self, all_tool_results: List[Dict])
openspace/agents/grounding_agent.py:861
↓ 1 callersMethod_format_tool_list
Format tool definitions with usage annotation. Tools that appear in ``used_tool_keys`` (derived from traj.jsonl) are marked as "Actua
openspace/skill_engine/analyzer.py:600
↓ 1 callersMethod_format_traj_summary
Format traj.jsonl records into a concise tool execution timeline. This provides the LLM with a structured view of every tool invocation
openspace/skill_engine/analyzer.py:646
↓ 1 callersMethod_generate_feedback
(self, result: str, iteration: int, last_error: str)
openspace/grounding/backends/shell/session.py:627
↓ 1 callersMethod_generate_search_query
(self, task_prompt: str)
openspace/grounding/core/search_tools.py:1001
↓ 1 callersMethod_get_accessibility_helper
(self)
openspace/grounding/backends/gui/transport/local_connector.py:66
↓ 1 callersMethod_get_available_tools
Retrieve tools for the current execution phase. Both skill-augmented and normal modes use the same ``get_tools_with_auto_sea
openspace/agents/grounding_agent.py:501
↓ 1 callersMethod_get_cursor
Get current cursor image and hotspot Returns: (cursor_image, (hotspot_x, hotspot_y))
openspace/local_server/platform_adapters/windows_adapter.py:70
↓ 1 callersMethod_get_default_log_file
Generate default log file path with timestamp (to seconds) Log files are organized by the running script name: - logs/<script
openspace/utils/logging.py:98
↓ 1 callersFunction_get_evaluator
Lazily create and cache a ClawWork-compatible LLMEvaluator. Uses the same initialization logic as ClawWork: - Model: gpt-4o (or ``EVALUATION_
gdpval_bench/run_benchmark.py:228
↓ 1 callersFunction_get_local_skill_registry
Build a lightweight SkillRegistry for local-only skill search. This avoids initializing the full OpenSpace engine when callers only want to i
openspace/mcp_server.py:207
↓ 1 callersFunction_get_machine_architecture
Get the machine architecture, e.g., x86_64, arm64, aarch64, i386, etc. Returns 'amd' for x86/AMD architectures, 'arm' for ARM architectures, or 'u
openspace/local_server/main.py:368
↓ 1 callersMethod_get_openai_api_key
Resolve OpenAI-compatible API key for embedding requests.
openspace/skill_engine/skill_ranker.py:315
↓ 1 callersMethod_get_or_create_runtime
(self, session: ChannelSession)
openspace/communication/runtime_manager.py:130
↓ 1 callersMethod_get_platform_config
(self, platform: ChannelPlatform)
openspace/communication/gateway.py:489
↓ 1 callersMethod_get_skill_selection_llm
Get the LLM client to use for skill selection. Priority: config.skill_registry_model > tool_retrieval_model > llm_model.
openspace/tool_layer.py:766
↓ 1 callersMethod_get_streams_from_connection
Get read and write streams from the connection. Override in subclasses if needed.
openspace/grounding/backends/mcp/transport/connectors/base.py:60
↓ 1 callersMethod_get_system_info
Get system information for shell agent. First tries to get comprehensive info from local server's /platform endpoint.
openspace/grounding/backends/shell/session.py:360
↓ 1 callersMethod_get_terminal_size
Get terminal size
openspace/utils/ui.py:80
↓ 1 callersMethod_get_workspace_path
Get workspace directory path from context.
openspace/agents/grounding_agent.py:584
↓ 1 callersMethod_handle_409
Handle 409 conflict responses.
openspace/cloud/client.py:252
↓ 1 callersMethod_handle_message_event
(self, payload: dict[str, Any])
openspace/communication/adapters/feishu.py:320
↓ 1 callersMethod_handle_other_json
Fallback implementation for PUT/PATCH/DELETE returning JSON/text, can be overridden by subclasses.
openspace/grounding/core/transport/connectors/aiohttp_connector.py:138
↓ 1 callersMethod_handle_websocket_message
(self, data: Any)
openspace/communication/adapters/feishu.py:325
↓ 1 callersMethod_handle_ws_payload
(self, payload: dict[str, Any])
openspace/communication/adapters/whatsapp.py:237
↓ 1 callersMethod_has_execution_error
Return True if *execution_result* contains any known error indicator.
openspace/grounding/backends/shell/session.py:677
↓ 1 callersMethod_has_live_resources
(self)
openspace/communication/gateway.py:281
↓ 1 callersFunction_has_provider_native_env
Check if a provider-native API key (e.g. OPENROUTER_API_KEY) exists. When True, the key from .env or the process environment is sufficient fo
openspace/host_detection/resolver.py:111
↓ 1 callersMethod_hide_cursor
Hide cursor
openspace/utils/ui.py:100
↓ 1 callersMethod_hybrid_search
( self, query: str, tools: Iterable[BaseTool], top_k: int )
openspace/grounding/core/search_tools.py:404
↓ 1 callersMethod_infer_agent_type
(self, agent_name: str)
openspace/recording/action_recorder.py:110
↓ 1 callersFunction_infer_backend_from_tool_name
Infer backend when tool_results would otherwise have no backend (name mismatch or unbound tools).
openspace/llm/client.py:168
↓ 1 callersMethod_infer_capture_dir_from_analysis
Infer the best skill root for a CAPTURED skill from analysis context. When ``capture_dir`` is not explicitly set (no ``skill_dirs`` param
openspace/skill_engine/evolver.py:1045
↓ 1 callersFunction_infer_provider_name
Infer the provider name from a model string using PROVIDER_REGISTRY.
openspace/host_detection/resolver.py:92
↓ 1 callersMethod_init_db
Create tables if they don't exist (idempotent via IF NOT EXISTS).
openspace/skill_engine/store.py:262
↓ 1 callersMethod_init_local_embedding
Initialize local fastembed model.
openspace/grounding/core/search_tools.py:289
↓ 1 callersMethod_init_quality_manager
Initialize tool quality manager based on config.
openspace/grounding/core/grounding_client.py:116
↓ 1 callersMethod_init_remote_embedding
Initialize remote embedding API (OpenRouter/OpenAI compatible).
openspace/grounding/core/search_tools.py:265
↓ 1 callersMethod_init_skill_registry
Build and populate the SkillRegistry from configured directories. Discovery order (earlier wins on name collision): 1. ``OPENSPACE_
openspace/tool_layer.py:634
↓ 1 callersMethod_init_tables
(self)
openspace/grounding/core/quality/store.py:97
↓ 1 callersFunction_initialize_openspace
(config: OpenSpaceConfig, args)
openspace/__main__.py:442
↓ 1 callersMethod_install_package
Execute the install command. Args: command: The command to execute (e.g. "npx", "uvx") args: The arguments li
openspace/grounding/backends/mcp/installer.py:368
↓ 1 callersFunction_int_arg
(name: str, default: int)
openspace/dashboard_server.py:273
↓ 1 callersFunction_is_error_result
Detect if a tool result represents an error.
openspace/skill_engine/conversation_formatter.py:296
↓ 1 callersMethod_is_minimax_model
(model: str)
openspace/llm/client.py:466
↓ 1 callersFunction_is_pid_alive
(pid: int)
openspace/communication/gateway_runtime.py:35
↓ 1 callersMethod_is_reply_to_recent_bot_message
(self, message_id: Optional[str])
openspace/communication/adapters/feishu.py:496
↓ 1 callersMethod_is_valid_image_response
Validate image response using magic bytes.
openspace/grounding/backends/gui/transport/connector.py:94
↓ 1 callersMethod_is_valid_image_response
Validate image response using magic bytes. Args: content_type: HTTP Content-Type header data: Respon
openspace/platforms/screenshot.py:53
↓ 1 callersFunction_is_webhook_signature_valid
(*, encrypt_key: str, headers: Any, body_bytes: bytes)
openspace/communication/adapters/feishu.py:815
↓ 1 callersFunction_kill_posix_process_tree
Send SIGTERM, then SIGKILL, to the POSIX process group.
openspace/grounding/backends/shell/transport/local_connector.py:152
↓ 1 callersFunction_kill_windows_process_tree
Best-effort Windows process-tree cleanup.
openspace/grounding/backends/shell/transport/local_connector.py:131
↓ 1 callersMethod_lazy_create
Internal helper for lazy session creation. Args: server: Server name to create session for Raises:
openspace/grounding/backends/mcp/provider.py:442
↓ 1 callersFunction_lazy_import_provider
Lazy import provider class
openspace/grounding/backends/__init__.py:3
↓ 1 callersFunction_lexical_boost
Compute lexical boost score based on exact/prefix token matching.
openspace/cloud/search.py:56
↓ 1 callersMethod_list_tools_live
List tools by starting all servers. Uses a semaphore to serialize session creation, avoiding TaskGroup race conditions that o
openspace/grounding/backends/mcp/provider.py:330
↓ 1 callersMethod_live_update_loop
Live update loop
openspace/utils/ui.py:181
↓ 1 callersMethod_llm_filter_with_planning
LLM pre-filter for MCP servers. Returns (utility_tools, domain_tools, llm_filter_info).
openspace/grounding/core/search_tools.py:864
↓ 1 callersMethod_load_all_tools
Fallback: load all tools from all backends without search.
openspace/agents/grounding_agent.py:566
↓ 1 callersMethod_load_cache
Load embedding cache from disk.
openspace/skill_engine/skill_ranker.py:449
↓ 1 callersFunction_load_config
Load configuration
openspace/__main__.py:359
↓ 1 callersFunction_load_from_jsonl
Load from example_tasks.jsonl (demo tasks with full prompts).
gdpval_bench/task_loader.py:269
↓ 1 callersFunction_load_from_task_values
Load from ClawWork task_values.jsonl (summary only, no full prompt).
gdpval_bench/task_loader.py:298
↓ 1 callersFunction_load_log_level_from_config
Load log_level from config_grounding.json and convert to OPENSPACE_DEBUG value. Returns: 0 (WARNING), 1 (INFO), or 2 (DEBUG)
openspace/utils/logging.py:14
↓ 1 callersFunction_load_multiple_files
Load configuration from multiple files
openspace/config/loader.py:53
↓ 1 callersMethod_load_persistent_cache
Load embeddings from disk cache.
openspace/grounding/core/search_tools.py:120
↓ 1 callersMethod_load_recording_context
Load and structure all recording artifacts needed for analysis. Returns a dict with keys used by ``_build_analysis_prompt()``, or Non
openspace/skill_engine/analyzer.py:329
↓ 1 callersMethod_load_seen_message_ids
(self)
openspace/communication/adapters/feishu.py:639
↓ 1 callersMethod_load_skill_contents_from_disk
Load skill SKILL.md from disk via SkillRegistry. Returns dict mapping ``skill_id`` → ``{"content", "dir", "description", "name"}``. F
openspace/skill_engine/analyzer.py:475
↓ 1 callersMethod_load_skill_quality
(self)
openspace/skill_engine/retrieve_tool.py:55
↓ 1 callersMethod_load_tools_from_cache
Load tools from cache file without starting servers. Priority: 1. Try to load from sanitized cache (mcp_tool_cache_sanitized.
openspace/grounding/backends/mcp/provider.py:248
↓ 1 callersMethod_load_traj_data
Load traj.jsonl and return structured tool execution records. Each record contains: step, timestamp, backend, tool, command, result (
openspace/skill_engine/analyzer.py:435
↓ 1 callersMethod_log_search_results
Log search results in a concise, grouped format. Shows backend/server breakdown and tool names (truncated if too many).
openspace/grounding/core/search_tools.py:1014
↓ 1 callersFunction_make_shim
Create a shim that wraps streamablehttp_client with improved error handling.
openspace/grounding/backends/mcp/transport/task_managers/streamable_http.py:21
↓ 1 callersFunction_match_provider_env
Resolve provider-native env vars from OpenClaw config for a model.
openspace/host_detection/openclaw.py:214
↓ 1 callersMethod_maybe_analyze_execution
Run post-execution analysis if enabled. Trigger 1: if the analysis produces evolution suggestions, the SkillEvolver processes them im
openspace/tool_layer.py:787
↓ 1 callersMethod_maybe_evolve_quality
Trigger quality evolution based on global execution count. Includes three sub-triggers: - Tool quality evolution (ToolQualityManager)
openspace/tool_layer.py:856
↓ 1 callersMethod_mentions_bot
(self, mentions: list[Any])
openspace/communication/adapters/feishu.py:622
↓ 1 callersMethod_merge_consecutive_system_messages
Merge consecutive system messages into one. Providers like MiniMax reject requests that contain multiple consecutive messages with th
openspace/llm/client.py:441
↓ 1 callersMethod_migrate_add_evolution_processed_at
Add evolution_processed_at column to existing DBs (idempotent).
openspace/skill_engine/store.py:269
↓ 1 callersMethod_monitor_loop
Main monitoring loop Args: poll_interval: Update interval in seconds
openspace/utils/ui_integration.py:97
↓ 1 callersMethod_next_jsonrpc_id
Get next JSON-RPC request ID.
openspace/grounding/backends/mcp/transport/connectors/http.py:380
↓ 1 callersMethod_normalize_event
(self, event: dict[str, Any])
openspace/communication/adapters/whatsapp.py:289
← previousnext →701–800 of 2,195, ranked by callers