Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenHands/OpenHands
/ functions
Functions
10,924 in github.com/OpenHands/OpenHands
⨍
Functions
10,924
◇
Types & classes
2,163
↳
Endpoints
725
↓ 1 callers
Method
_has_token_expired
(self, status_code: int)
openhands/app_server/integrations/bitbucket/service/base.py:61
↓ 1 callers
Function
_header_value
(headers: object, key: object)
openhands/app_server/settings/settings_models.py:326
↓ 1 callers
Function
_hydrate_file_info
( slack_client: WebClient, file_info: dict[str, Any] )
enterprise/integrations/slack/slack_attachments.py:177
↓ 1 callers
Function
_import_all_tools
We need to import all tools so that they are available for deserialization in webhooks.
openhands/app_server/event_callback/webhook_router.py:630
↓ 1 callers
Method
_infer_repository
Infer and verify the repository from issue content. Raises: RepositoryNotFoundError: If no valid repository can be determined.
enterprise/integrations/jira/jira_view.py:431
↓ 1 callers
Method
_inherit_configuration_from_parent
Inherit configuration from parent conversation if not explicitly provided. This ensures sub-conversations automatically inherit: - Sa
openhands/app_server/app_conversation/live_status_app_conversation_service.py:1047
↓ 1 callers
Function
_inject_sdk_compat_fields
Inject flat top-level convenience fields for the SDK. The SDK's ``get_llm()`` and ``get_mcp_config()`` read ``llm_model``, ``llm_api_key``, `
enterprise/server/routes/users_v1.py:35
↓ 1 callers
Function
_inline_view
()
enterprise/tests/unit/integrations/bitbucket_data_center/test_bitbucket_dc_manager.py:77
↓ 1 callers
Function
_inline_view
()
enterprise/tests/unit/integrations/bitbucket/test_bitbucket_manager.py:63
↓ 1 callers
Method
_is_credentialless
(scope: Scope)
enterprise/server/middleware.py:293
↓ 1 callers
Function
_is_legacy_value_encrypted
Check if a legacy value is encrypted by trying to decrypt it
enterprise/storage/user_store.py:1379
↓ 1 callers
Method
_is_pr_closed_or_merged
Check if PR was closed (regardless of conversation URL)
enterprise/integrations/github/data_collector.py:628
↓ 1 callers
Method
_is_repository_url
Check if the query is a repository URL.
openhands/app_server/integrations/provider.py:385
↓ 1 callers
Method
_is_sandbox_resume_request
(self, request: StarletteRequest)
openhands/app_server/middleware.py:140
↓ 1 callers
Function
_is_text_attachment
(title: str, mimetype: str)
enterprise/integrations/slack/slack_attachments.py:251
↓ 1 callers
Function
_json_object
(value)
enterprise/tests/unit/test_migration_137_encrypt_member_mcp_config.py:28
↓ 1 callers
Function
_legacy_org_member_values
(row: Mapping[str, Any])
enterprise/migrations/versions/108_add_agent_settings_to_enterprise_settings.py:166
↓ 1 callers
Function
_legacy_org_values
(row: Mapping[str, Any])
enterprise/migrations/versions/108_add_agent_settings_to_enterprise_settings.py:179
↓ 1 callers
Function
_legacy_user_settings_values
(row: Mapping[str, Any])
enterprise/migrations/versions/108_add_agent_settings_to_enterprise_settings.py:142
↓ 1 callers
Method
_lift_and_mask_llm_api_key
Lift nested api keys to ``llm_api_key`` and mask the JSON diff.
enterprise/server/routes/org_models.py:320
↓ 1 callers
Method
_list_foundation_models
Query AWS Bedrock for available foundation models. This is a synchronous boto3 call; callers should run it via ``call_sync_from_async
openhands/app_server/config_api/default_llm_model_service.py:125
↓ 1 callers
Method
_list_roles
(session: AsyncSession)
enterprise/storage/role_store.py:71
↓ 1 callers
Function
_literal_assignment
(module: ast.Module, name: str)
scripts/check_enterprise_migration_integrity.py:18
↓ 1 callers
Function
_load_migration_module
()
enterprise/tests/unit/storage/test_jira_dc_active_link_constraint.py:19
↓ 1 callers
Method
_load_resolver_context
(self)
enterprise/integrations/azure_devops/azure_devops_view.py:276
↓ 1 callers
Method
_load_resolver_context
(self)
enterprise/integrations/azure_devops/azure_devops_view.py:320
↓ 1 callers
Method
_load_resolver_context
(self)
enterprise/integrations/gitlab/gitlab_view.py:274
↓ 1 callers
Method
_load_skills_onto_request
Load workspace skills onto a conversation request's agent. Used by both the LLM and ACP arms of ``_build_start_conversation_request_f
openhands/app_server/app_conversation/live_status_app_conversation_service.py:1970
↓ 1 callers
Method
_make_auth_token
(self)
enterprise/tests/unit/test_saas_user_auth.py:253
↓ 1 callers
Function
_make_jwt_service
(secret: str = 'test_secret')
enterprise/tests/unit/test_token_manager_extended.py:12
↓ 1 callers
Function
_make_jwt_service
(secret: str = 'test_secret')
enterprise/tests/unit/test_token_manager.py:12
↓ 1 callers
Function
_make_jwt_service
()
enterprise/tests/unit/test_saas_secrets_store.py:17
↓ 1 callers
Function
_make_jwt_service
()
enterprise/tests/unit/server/routes/test_github_proxy.py:14
↓ 1 callers
Function
_make_llm_conversation_info
Build a real ``ConversationInfo`` with a real ``Agent``. Using real Pydantic models (rather than ``MagicMock(spec=...)``) exercises the discr
tests/unit/app_server/test_webhook_router_acp.py:77
↓ 1 callers
Function
_make_saas_metadata
(user_id='00000000-0000-0000-0000-000000000001')
enterprise/tests/unit/test_org_conversation_service_pr_merge.py:42
↓ 1 callers
Function
_manifest_enrichment_enabled
Whether to probe packages and runtime versions into the manifest.
openhands/app_server/sandbox/workspace_archive.py:86
↓ 1 callers
Function
_matching_existing_mcp_server
( name: str, incoming_server: Mapping[str, Any], incoming_servers: Mapping[str, Any], existing
openhands/app_server/settings/settings_models.py:464
↓ 1 callers
Function
_maybe_delete_webhook
Best-effort removal of the OpenHands webhook from Jira during teardown. Symmetric with :func:`_maybe_register_webhook`. When an admin PAT is
enterprise/server/routes/integration/jira_dc.py:517
↓ 1 callers
Method
_maybe_get_managed_llm_key_for_user
Return the managed LLM key every member row should carry, if any.
enterprise/storage/org_store.py:809
↓ 1 callers
Function
_mcp_bearer_token
(server: dict[str, Any])
enterprise/migrations/versions/137_encrypt_member_mcp_config.py:87
↓ 1 callers
Function
_mcp_credential_backup
( current: dict[str, Any], backup: dict[str, Any], )
enterprise/migrations/versions/137_encrypt_member_mcp_config.py:138
↓ 1 callers
Function
_mcp_endpoint_identity
(server: Mapping[str, Any])
openhands/app_server/settings/settings_models.py:447
↓ 1 callers
Function
_mcp_endpoint_identity
(server: dict[str, Any])
enterprise/migrations/versions/137_encrypt_member_mcp_config.py:70
↓ 1 callers
Function
_mcp_server_map
(value: Any)
openhands/app_server/settings/settings_models.py:440
↓ 1 callers
Function
_mcp_server_map
(value: dict[str, Any])
enterprise/migrations/versions/137_encrypt_member_mcp_config.py:65
↓ 1 callers
Function
_name_of
(mp: _RawMarketplace)
openhands/app_server/settings/marketplace_composition.py:166
↓ 1 callers
Method
_normalize_agent_settings_diff
Normalize nested LLM settings inside ``agent_settings_diff``.
enterprise/server/routes/org_models.py:301
↓ 1 callers
Function
_normalize_bitbucket_dc_event_payload
Ensure automation parsing can identify the Bitbucket DC event key. Bitbucket DC sends the event key both in ``X-Event-Key`` and, for normal d
enterprise/server/routes/integration/bitbucket_dc.py:244
↓ 1 callers
Function
_normalize_event_timestamp
(value: datetime | None)
openhands/app_server/app_conversation/sql_app_conversation_info_service.py:80
↓ 1 callers
Method
_now
Monotonic clock; isolated for tests.
enterprise/server/verified_models/litellm_proxy_model_router.py:93
↓ 1 callers
Function
_oauth_error
Return a JSON OAuth-style error response.
enterprise/server/routes/oauth_device.py:66
↓ 1 callers
Function
_parse_bb_datetime
(value: str | None)
openhands/app_server/integrations/bitbucket/service/resolver.py:185
↓ 1 callers
Method
_parse_comment_event
Parse a comment_created event.
enterprise/integrations/jira/jira_payload.py:159
↓ 1 callers
Method
_parse_datetime
(self, value: str | None)
openhands/app_server/integrations/forgejo/service/resolver.py:95
↓ 1 callers
Function
_parse_event_timestamp
(value: str | None)
openhands/app_server/app_conversation/sql_app_conversation_info_service.py:66
↓ 1 callers
Method
_parse_form_action
Parse action payload and extract message_ts, thread_ts, and selected value. This handles the different payload structures for button clicks v
enterprise/integrations/slack/slack_manager.py:477
↓ 1 callers
Function
_parse_instance_marketplaces_env
Parse the raw ``INSTANCE_DEFAULT_MARKETPLACES`` value into raw dicts. Two formats are supported. JSON is tried on the *whole* value first so that
openhands/app_server/settings/marketplace_composition.py:92
↓ 1 callers
Method
_parse_label_event
Parse an issue_updated event for label changes.
enterprise/integrations/jira/jira_payload.py:131
↓ 1 callers
Function
_parse_npm_ls
Parse ``npm ls --json`` output (top-level deps) into ``{name: version}``.
openhands/app_server/sandbox/workspace_archive.py:235
↓ 1 callers
Function
_parse_pip_list
Parse ``pip list --format=json`` output into ``{name: version}``.
openhands/app_server/sandbox/workspace_archive.py:217
↓ 1 callers
Function
_parse_runtime
Parse the `key=value` runtime lines into ``{python, node, os}``.
openhands/app_server/sandbox/workspace_archive.py:254
↓ 1 callers
Function
_parse_skill_frontmatter
Parse YAML frontmatter from a skill markdown file. Returns the frontmatter dict, or None if parsing fails.
openhands/app_server/user/skills_router.py:75
↓ 1 callers
Method
_persist_seeded_default_profile
Backfill the seeded ``Default`` profile onto ``org.llm_profiles``. Runs once per org during the pre-llm_profiles → llm_profiles upgrade:
enterprise/storage/saas_settings_store.py:464
↓ 1 callers
Method
_persist_with_compensation
Persist organization with compensation on failure. If database persistence fails, cleans up LiteLLM resources. Args:
enterprise/storage/org_service.py:305
↓ 1 callers
Function
_poll_for_title
Poll the agent server for the conversation title. Args: httpx_client: The HTTP client to use for requests. url: The conversation
openhands/app_server/event_callback/set_title_callback_processor.py:37
↓ 1 callers
Method
_post_summary_to_azure_devops
(self, summary: str)
enterprise/integrations/azure_devops/azure_devops_v1_callback_processor.py:85
↓ 1 callers
Method
_post_summary_to_bitbucket
(self, summary: str)
enterprise/integrations/bitbucket/bitbucket_v1_callback_processor.py:90
↓ 1 callers
Method
_post_summary_to_slack
Post a resolver response message to the configured Slack channel.
enterprise/integrations/slack/slack_v1_callback_processor.py:106
↓ 1 callers
Function
_pr_comment_view
(parent_id: int | None = 42)
enterprise/tests/unit/integrations/bitbucket/test_bitbucket_manager.py:39
↓ 1 callers
Method
_prepare_llm_for_response
Strip response-only LLM fields without changing provider names.
enterprise/server/routes/org_models.py:471
↓ 1 callers
Function
_preserve_redacted_mcp_secrets
( value: Any, existing: Mapping[str, MCPServer] | None, )
openhands/app_server/settings/settings_models.py:499
↓ 1 callers
Function
_probe_workspace
Collect installed package and runtime versions.
openhands/app_server/sandbox/workspace_archive.py:296
↓ 1 callers
Method
_process_commits_page
Process commits from a single GraphQL page
enterprise/integrations/github/data_collector.py:281
↓ 1 callers
Function
_process_jira_dc_event
Handle Jira DC webhook events.
enterprise/server/routes/integration/jira_dc.py:398
↓ 1 callers
Method
_process_message
Process message and return view if authenticated, or raise SlackError. Returns: SlackViewInterface if user is authenticated and r
enterprise/integrations/slack/slack_manager.py:586
↓ 1 callers
Method
_process_pending_messages
Process pending messages queued before conversation was ready. Messages are delivered concurrently to the agent server. After processing,
openhands/app_server/app_conversation/live_status_app_conversation_service.py:2199
↓ 1 callers
Method
_process_pr_comments_page
Process PR comments from a single GraphQL page
enterprise/integrations/github/data_collector.py:304
↓ 1 callers
Method
_process_raw_comments
Convert raw Bitbucket DC comment dicts to Comment objects.
openhands/app_server/integrations/bitbucket_data_center/service/resolver.py:81
↓ 1 callers
Method
_process_raw_comments
Convert raw Bitbucket Cloud comment dicts to :class:`Comment`s. Sorted by ``created_on`` ascending; only the most recent ``max_commen
openhands/app_server/integrations/bitbucket/service/resolver.py:67
↓ 1 callers
Method
_process_review_comments_page
Process reviews and review comments from a single GraphQL page
enterprise/integrations/github/data_collector.py:316
↓ 1 callers
Method
_public_select_with_saas_metadata
Create a select query that returns public conversations with SAAS metadata. This joins with conversation_metadata_saas to retrieve the user_i
enterprise/server/sharing/sql_shared_conversation_info_service.py:63
↓ 1 callers
Method
_pull_with_progress_logging
Pull Docker image with periodic progress logging every 5 seconds.
openhands/app_server/sandbox/docker_sandbox_spec_service.py:94
↓ 1 callers
Function
_rate_limit_exceeded_handler
Build a simple JSON response that includes the details of the rate limit that was hit.
enterprise/server/rate_limit.py:123
↓ 1 callers
Method
_read_response_body
Return the response body as JSON, falling back to text. Infrastructure errors (e.g. 502/503 from a load balancer) often return a non-
enterprise/server/services/automation_event_service.py:556
↓ 1 callers
Method
_record_litellm_sync
( self, settings: OrgBudgetSettings, status_value: str, error: str | None = No
enterprise/server/services/org_budget_service.py:554
↓ 1 callers
Function
_recover_redacted_mcp_config
( value: dict[str, Any], backup: dict[str, Any], )
enterprise/migrations/versions/137_encrypt_member_mcp_config.py:175
↓ 1 callers
Method
_refresh_bitbucket_token
( self, refresh_token: str )
enterprise/server/auth/token_manager.py:439
↓ 1 callers
Method
_refresh_github_token
(self, refresh_token: str)
enterprise/server/auth/token_manager.py:391
↓ 1 callers
Method
_refresh_gitlab_token
(self, refresh_token: str)
enterprise/server/auth/token_manager.py:419
↓ 1 callers
Method
_refresh_token
( self, idp: ProviderType, refresh_token: str )
enterprise/server/auth/token_manager.py:374
↓ 1 callers
Function
_register_signal_handler
(sig: signal.Signals)
openhands/app_server/utils/shutdown_listener.py:20
↓ 1 callers
Method
_replace_repo_selection_form
Replace the interactive repo selector with a non-interactive status.
enterprise/integrations/slack/slack_manager.py:273
↓ 1 callers
Method
_replace_thresholds
( self, org_id: UUID, existing: list[OrgBudgetThreshold], new_thresholds,
enterprise/server/services/org_budget_service.py:282
↓ 1 callers
Function
_repo_dict
(key='PROJ', slug='myrepo')
tests/unit/integrations/bitbucket_data_center/test_bitbucket_dc.py:409
↓ 1 callers
Method
_request_final_response
Return the agent's final response without asking the LLM to summarize.
enterprise/integrations/github/github_v1_callback_processor.py:236
↓ 1 callers
Method
_request_final_response
Return the agent's final response without asking the LLM to summarize.
enterprise/integrations/slack/slack_v1_callback_processor.py:215
↓ 1 callers
Method
_request_summary
(self, conversation_id: UUID)
enterprise/integrations/bitbucket_data_center/bitbucket_dc_v1_callback_processor.py:144
↓ 1 callers
Method
_request_summary
(self, conversation_id: UUID)
enterprise/integrations/azure_devops/azure_devops_v1_callback_processor.py:154
↓ 1 callers
Method
_request_summary
Ask the agent to produce a summary of its work and return the agent response.
enterprise/integrations/jira_dc/jira_dc_v1_callback_processor.py:108
↓ 1 callers
Method
_request_summary
Ask the agent to produce a summary of its work and return the agent response. NOTE: This method now returns a string (the agent server's resp
enterprise/integrations/gitlab/gitlab_v1_callback_processor.py:218
← previous
next →
2,101–2,200 of 10,924, ranked by callers