Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/OpenSpace
/ functions
Functions
2,195 in github.com/HKUDS/OpenSpace
⨍
Functions
2,195
◇
Types & classes
373
↳
Endpoints
35
↓ 3 callers
Method
register
(self, provider: "Provider")
openspace/grounding/core/provider.py:138
↓ 3 callers
Method
render
()
showcase/my-daily-monitor/src/components/WorldClockPanel.ts:39
↓ 3 callers
Method
renderMonitors
()
showcase/my-daily-monitor/src/components/MyMonitorsPanel.ts:90
↓ 3 callers
Function
resolve_embedding_api
Resolve API key and base URL for embedding requests. Priority: 1. ``OPENROUTER_API_KEY`` → OpenRouter base URL 2. ``OPENAI_API_KEY``
openspace/cloud/embedding.py:23
↓ 3 callers
Method
runRefresh
(name: string)
showcase/my-daily-monitor/src/services/refresh-scheduler.ts:60
↓ 3 callers
Function
run_server
Start desktop control server Args: host: Listening address (127.0.0.1 for local, 0.0.0.0 for all interfaces) port: Liste
openspace/local_server/main.py:1089
↓ 3 callers
Function
saveHistory
(msgs: AgentMessage[])
showcase/my-daily-monitor/src/components/InsightsPanel.ts:277
↓ 3 callers
Function
saveTasks
(tasks: AgentTask[])
showcase/my-daily-monitor/src/components/InsightsPanel.ts:283
↓ 3 callers
Method
save_all
Persist all records (bulk).
openspace/grounding/core/quality/store.py:167
↓ 3 callers
Function
seek_sequence
4-level degrading search for a line pattern inside *lines*. Returns the 0-based index of the first matching position, or -1.
openspace/skill_engine/patch.py:498
↓ 3 callers
Function
setCache
(key: string, data: unknown)
showcase/my-daily-monitor/server/routes/github.ts:17
↓ 3 callers
Method
setErrorState
(hasError: boolean)
showcase/my-daily-monitor/src/components/Panel.ts:381
↓ 3 callers
Method
set_debug
Dynamically switch debug level: 0 = WARNING, 1 = INFO, 2 = DEBUG.
openspace/utils/logging.py:254
↓ 3 callers
Method
start
(self)
openspace/communication/gateway.py:93
↓ 3 callers
Method
start_recording
Start screen recording. Args: auto_cleanup: If True, automatically end previous recording if one is in progress
openspace/platforms/recording.py:47
↓ 3 callers
Method
to_dict
(self)
openspace/communication/types.py:52
↓ 3 callers
Function
truncate
(value: string, max = 120)
frontend/src/utils/format.ts:22
↓ 3 callers
Function
updateMetaThemeColor
()
showcase/my-daily-monitor/src/utils/theme-manager.ts:79
↓ 3 callers
Method
update_agent_status
Update agent status
openspace/utils/ui.py:359
↓ 3 callers
Method
write
(self, s)
openspace/mcp_server.py:44
↓ 3 callers
Function
write_skill_id
Write (or overwrite) the ``.skill_id`` sidecar in *skill_dir*. Called by ``SkillEvolver`` after FIX / DERIVED / CAPTURED to stamp the new ``s
openspace/skill_engine/registry.py:73
↓ 2 callers
Function
_accumulate
Add one LLM call's usage to a TokenStats object (caller holds lock).
gdpval_bench/token_tracker.py:145
↓ 2 callers
Method
_after_connect
Create ClientSession (or set up JSON-RPC client) and log success.
openspace/grounding/backends/mcp/transport/connectors/http.py:338
↓ 2 callers
Method
_after_disconnect
Hook called after disconnection. Override in subclasses if needed.
openspace/grounding/core/transport/connectors/base.py:96
↓ 2 callers
Function
_append_jsonl
(path: Path, record: Dict)
gdpval_bench/run_benchmark.py:143
↓ 2 callers
Method
_append_transcript_entry
(self, session: ChannelSession, entry: Dict[str, Any])
openspace/communication/session_store.py:149
↓ 2 callers
Function
_apply_search_replace_to_file
Apply SEARCH/REPLACE blocks to a file on disk.
openspace/skill_engine/patch.py:889
↓ 2 callers
Method
_arun
(self, **kwargs)
openspace/grounding/core/tool/base.py:161
↓ 2 callers
Method
_arun
(self, path: str = ".")
openspace/grounding/backends/shell/session.py:243
↓ 2 callers
Method
_ask_user
If prompt is provided, ask user for confirmation, otherwise default to deny
openspace/grounding/core/security/policies.py:67
↓ 2 callers
Method
_ask_user
Ask the user whether to install.
openspace/grounding/backends/mcp/installer.py:92
↓ 2 callers
Function
_assistant_entry_visible_in_history
(entry: Dict[str, Any])
openspace/communication/session_store.py:195
↓ 2 callers
Method
_bm25_rank
Rank candidates using BM25.
openspace/skill_engine/skill_ranker.py:264
↓ 2 callers
Method
_build_embedding_text
Build text for embedding, consistent with MCP search_skills.
openspace/skill_engine/skill_ranker.py:322
↓ 2 callers
Function
_build_lineage_payload
(skill_id: str, store: SkillStore)
openspace/dashboard_server.py:362
↓ 2 callers
Function
_build_process_record
()
openspace/communication/gateway_runtime.py:80
↓ 2 callers
Function
_build_skill_stats
(store: SkillStore, skills: List[SkillRecord])
openspace/dashboard_server.py:335
↓ 2 callers
Method
_build_tools_from_cache
Build BaseTool instances from cached tool metadata.
openspace/grounding/backends/mcp/provider.py:299
↓ 2 callers
Method
_cache_file
(self)
openspace/skill_engine/skill_ranker.py:446
↓ 2 callers
Method
_call_with_retry
Call LLM with backoff retry on rate limit errors Timeout and retry strategy: - Single call timeout: self.timeout (default 120
openspace/llm/client.py:542
↓ 2 callers
Method
_capture_and_notify
Capture screenshot and notify callback.
openspace/platforms/screenshot.py:221
↓ 2 callers
Method
_check_command_available
Check if the command is available. Args: command: The command to check (e.g. "npx", "uvx") Returns:
openspace/grounding/backends/mcp/installer.py:106
↓ 2 callers
Function
_check_safety
Lazy wrapper — avoids importing skill_engine at module load time.
openspace/cloud/search.py:39
↓ 2 callers
Method
_cleanup_web_runner
(self)
openspace/communication/gateway.py:263
↓ 2 callers
Method
_clear_screen
Clear screen
openspace/utils/ui.py:88
↓ 2 callers
Method
_collect_files
Collect all files in skill directory (skip .skill_id sidecar).
openspace/cloud/client.py:434
↓ 2 callers
Function
_completed_task_ids
Return set of task_ids already completed (for resume).
gdpval_bench/run_benchmark.py:161
↓ 2 callers
Method
_content_key
Compose a content-addressed cache key. The cache stores embeddings under ``"{encoded_skill_id}:{sha256(text)[:16]}"`` so that any cha
openspace/skill_engine/skill_ranker.py:164
↓ 2 callers
Function
_correct_skill_ids
Best-effort correction of LLM-hallucinated skill IDs. LLMs frequently garble the hex suffix of generated IDs (e.g. swap ``cb`` → ``bc``). Fo
openspace/skill_engine/analyzer.py:59
↓ 2 callers
Function
_count_skills_by_origin
(skills: List[Dict])
gdpval_bench/run_benchmark.py:180
↓ 2 callers
Method
_create_client
Create Anthropic client (only supports anthropic provider).
openspace/grounding/backends/gui/anthropic_client.py:141
↓ 2 callers
Method
_disconnect_adapters
(self)
openspace/communication/gateway.py:250
↓ 2 callers
Function
_do_import_cloud_skill
Download a cloud skill and register it locally.
openspace/mcp_server.py:429
↓ 2 callers
Method
_download_attachment
( self, *, session_key: str, message_id: str, file_key: str, f
openspace/communication/adapters/feishu.py:507
↓ 2 callers
Function
_download_file
Download a single file from URL to dest path, with retries. Strategy order: 1. ``curl`` — bypasses Python SSL stack entirely (most robust)
gdpval_bench/task_loader.py:604
↓ 2 callers
Method
_drop_stale_entries_locked
Drop older content-addressed entries for a skill. Caller must hold ``self._cache_lock``.
openspace/skill_engine/skill_ranker.py:175
↓ 2 callers
Method
_effective_bridge_token
(self)
openspace/communication/adapters/whatsapp.py:396
↓ 2 callers
Function
_ensure_livebench
Import livebench modules if available.
openspace/grounding/backends/shell/productivity_tools.py:27
↓ 2 callers
Function
_execute_task
(openspace: OpenSpace, query: str, ui_manager: UIManager)
openspace/__main__.py:65
↓ 2 callers
Function
_extract_block
(start_line: int, end_line: int)
openspace/skill_engine/fuzzy_match.py:115
↓ 2 callers
Method
_extract_json
Extract a JSON object from LLM response text. Handles markdown code fences and bare JSON.
openspace/skill_engine/analyzer.py:812
↓ 2 callers
Method
_extract_last_assistant_message
(self, messages: List[Dict])
openspace/agents/grounding_agent.py:920
↓ 2 callers
Function
_extract_post_text
(content: dict[str, Any])
openspace/communication/adapters/feishu.py:833
↓ 2 callers
Function
_find_parquet
Find parquet file — handles both file path and directory.
gdpval_bench/task_loader.py:222
↓ 2 callers
Method
_generate_recommendations
Generate actionable recommendations based on quality data.
openspace/grounding/core/quality/manager.py:696
↓ 2 callers
Method
_get_cache_file_path
Get the cache file path for the current model.
openspace/grounding/core/search_tools.py:114
↓ 2 callers
Method
_get_cache_key
Get structured cache key (backend, server, tool_name) from tool.
openspace/grounding/core/search_tools.py:100
↓ 2 callers
Function
_get_conda_activation_prefix
Generate platform-specific conda activation prefix.
openspace/grounding/backends/shell/transport/local_connector.py:34
↓ 2 callers
Method
_get_embedding
Get embedding from structured cache.
openspace/grounding/core/search_tools.py:311
↓ 2 callers
Method
_get_install_command
Generate install command based on command type. Args: command: The command to execute (e.g. "npx", "uvx", "uv")
openspace/grounding/backends/mcp/installer.py:513
↓ 2 callers
Method
_get_json
(self, path: str, timeout: int = 30)
openspace/cloud/client.py:100
↓ 2 callers
Function
_get_openclaw_env
Merge OpenClaw top-level env vars with skill-level env overrides.
openspace/host_detection/openclaw.py:141
↓ 2 callers
Method
_get_screenshot_helper
(self)
openspace/grounding/backends/gui/transport/local_connector.py:60
↓ 2 callers
Method
_get_session
Get or create aiohttp session.
openspace/platforms/screenshot.py:44
↓ 2 callers
Method
_get_session
Get or create aiohttp session.
openspace/platforms/recording.py:39
↓ 2 callers
Function
_get_shared_ranker
Lazy-init shared ``SkillRanker`` (with persistent embedding cache).
openspace/cloud/search.py:30
↓ 2 callers
Method
_get_test_file_path
Get path for a test file
openspace/local_server/health_checker.py:63
↓ 2 callers
Function
_get_workflow_dir
(workflow_id: str)
openspace/dashboard_server.py:459
↓ 2 callers
Method
_infer_backend_from_tool_name
Infer backend from tool name when tool_results lack backend.
openspace/recording/manager.py:666
↓ 2 callers
Method
_insert_analysis
Insert an execution_analyses row + its skill_judgments. Called within a transaction holding ``self._mu``. Returns: int:
openspace/skill_engine/store.py:1328
↓ 2 callers
Method
_install_callback
(self)
gdpval_bench/token_tracker.py:205
↓ 2 callers
Method
_instantiate_adapter
(adapter_cls: Any, *args: Any, **kwargs: Any)
openspace/communication/gateway.py:184
↓ 2 callers
Method
_is_message_seen
(self, message_id: str)
openspace/communication/adapters/feishu.py:679
↓ 2 callers
Function
_is_safe
(flags: list[str])
openspace/cloud/search.py:45
↓ 2 callers
Function
_kill_process_tree
Terminate a timed-out subprocess and its descendants when possible.
openspace/grounding/backends/shell/transport/local_connector.py:183
↓ 2 callers
Method
_llm_confirm_evolution
Ask LLM to confirm whether a rule-based evolution candidate truly needs evolution. Returns True if LLM agrees, False otherwise.
openspace/skill_engine/evolver.py:588
↓ 2 callers
Function
_load_from_parquet
Load from GDPVal parquet (has full prompts + reference files).
gdpval_bench/task_loader.py:240
↓ 2 callers
Function
_load_openclaw_config
Load and parse the OpenClaw config file. Returns None on failure.
openspace/host_detection/openclaw.py:113
↓ 2 callers
Function
_load_skill_source
(record: SkillRecord)
openspace/dashboard_server.py:348
↓ 2 callers
Function
_make_config
Create a OpenSpaceConfig for one worker.
gdpval_bench/run_benchmark.py:380
↓ 2 callers
Method
_make_connection
Create a tuned SQLite connection. Write connection: ``check_same_thread=False`` for cross-thread usage via ``asyncio.to_thread()``.
openspace/skill_engine/store.py:201
↓ 2 callers
Function
_maybe_set_float
(target: Any, field_name: str, raw: Optional[str])
openspace/communication/config.py:361
↓ 2 callers
Function
_naive_dt
Strip tzinfo so naive/aware datetimes can be compared safely.
openspace/dashboard_server.py:318
↓ 2 callers
Method
_normalize_inbound_message
( self, *, message_id: Optional[str], chat_id: Optional[str], chat_typ
openspace/communication/adapters/feishu.py:394
↓ 2 callers
Method
_normalize_messages_for_model
Normalize message history only when a provider requires it.
openspace/llm/client.py:503
↓ 2 callers
Function
_normalize_unicode
(s: str)
openspace/skill_engine/patch.py:494
↓ 2 callers
Method
_on_success
Called by _TokenLoggerCallback after every successful LLM call.
gdpval_bench/token_tracker.py:299
↓ 2 callers
Method
_outbound_media_root
(self)
openspace/communication/adapters/whatsapp.py:420
↓ 2 callers
Method
_parse_as
Try to parse *data* into *model_cls* (a subclass of BaseModel). If `model_cls` is None or not a subclass of BaseModel, return the o
openspace/grounding/core/transport/connectors/base.py:116
↓ 2 callers
Method
_parse_prompts_from_json
Parse prompt data into Prompt objects.
openspace/grounding/backends/mcp/transport/connectors/http.py:497
← previous
next →
301–400 of 2,195, ranked by callers