MCPcopy Create free account

hub / github.com/OpenHands/OpenHands / functions

Functions10,856 in github.com/OpenHands/OpenHands

↓ 4 callersFunction_derive_default_model
Translate the env-derived default model to the public prefix. ``LITELLM_DEFAULT_MODEL`` holds the default as ``litellm_proxy/<name>``; the ap
enterprise/server/verified_models/litellm_proxy_model_router.py:53
↓ 4 callersFunction_determine_org_repo_path
Determine the organization repository path and organization name. Args: selected_repository: Repository name (e.g., 'owner/repo' or 'org/
openhands/app_server/app_conversation/skill_loader.py:130
↓ 4 callersFunction_dump_update
Dump a settings update payload using diff-only nested keys.
tests/unit/app_server/test_settings_api.py:34
↓ 4 callersMethod_entry_for_name
(self, name: str)
openhands/app_server/settings/agent_profiles.py:117
↓ 4 callersMethod_find_running_sandbox_for_user
Find a running sandbox for the current user based on the grouping strategy. Returns: SandboxInfo if a running sandbox is found, N
openhands/app_server/app_conversation/live_status_app_conversation_service.py:758
↓ 4 callersMethod_fix_timezone
Sqlite does not store timezones - and since we can't update the existing models we assume UTC if the timezone is missing. Returns current UTC
enterprise/server/sharing/sql_shared_conversation_info_service.py:150
↓ 4 callersMethod_flush
(self)
openhands/app_server/utils/logger.py:242
↓ 4 callersMethod_generate_key
( client: httpx.AsyncClient, keycloak_user_id: str, team_id: str | None, key_a
enterprise/storage/lite_llm_manager.py:1319
↓ 4 callersMethod_get_agent_server_url
Get agent server url for running sandbox.
openhands/app_server/app_conversation/live_status_app_conversation_service.py:1035
↓ 4 callersMethod_get_container_env_vars
(self, container)
openhands/app_server/sandbox/docker_sandbox_service.py:133
↓ 4 callersMethod_get_installation_access_token
(self, installation_id: int)
enterprise/integrations/github/github_manager.py:75
↓ 4 callersMethod_get_openhands_api_key
Get or create the user's OPENHANDS_API_KEY (system-level, non-deletable). This key is automatically generated on first access and stored as a
enterprise/server/auth/saas_user_auth.py:624
↓ 4 callersFunction_get_org_info_from_context
Extract org info from the user context if available. This works by checking if the underlying user_auth is a SaasUserAuth instance that has t
enterprise/server/routes/users_v1.py:147
↓ 4 callersFunction_get_org_repository_url
Get authenticated Git URL for organization repository. Args: org_openhands_repo: Organization repository path user_context: UserC
openhands/app_server/app_conversation/skill_loader.py:171
↓ 4 callersFunction_get_provider_type
Determine the Git provider type for a repository. Args: selected_repository: Repository name (e.g., 'owner/repo') user_context: U
openhands/app_server/app_conversation/skill_loader.py:106
↓ 4 callersFunction_get_slack_enabled
Return whether Slack integration is fully configured for the web client.
openhands/app_server/web_client/default_web_client_config_injector.py:113
↓ 4 callersFunction_github_ts_to_naive_utc
Normalize a GitHub ISO-8601 timestamp to a naive UTC datetime. GitHub sends timestamps like ``"2025-06-19T21:19:36Z"``. Parsing the trailing
enterprise/integrations/github/data_collector.py:31
↓ 4 callersMethod_handle_failure_with_cleanup
Handle failure by cleaning up LiteLLM resources and raising appropriate error. This method performs compensating transaction and rai
enterprise/storage/org_service.py:346
↓ 4 callersMethod_has_custom_settings
Check if user has custom LLM settings that should be preserved. Returns True if user customized either model or base_url. Args:
enterprise/storage/user_store.py:1320
↓ 4 callersFunction_is_gitlab_enabled
Return whether GitLab OAuth is configured for the web client.
openhands/app_server/web_client/default_web_client_config_injector.py:69
↓ 4 callersFunction_jira_dc_events_url
(workspace_id: int)
enterprise/server/routes/integration/jira_dc.py:212
↓ 4 callersFunction_make_acp_conversation_info
Build a real ``ConversationInfo`` with a real ``ACPAgent`` payload.
tests/unit/app_server/test_webhook_router_acp.py:98
↓ 4 callersFunction_make_mock_app_conversation
Create a mock AppConversation for testing.
tests/unit/app_server/test_app_conversation_router.py:39
↓ 4 callersFunction_make_mock_httpx_client
Create a mock httpx.AsyncClient for testing.
tests/unit/app_server/test_send_message_endpoint.py:88
↓ 4 callersMethod_make_request
( self, url: str, params: dict | None = None, method: RequestMethod = RequestM
tests/unit/integrations/protocols/test_http_client.py:47
↓ 4 callersFunction_make_secrets_store
(effective_org_id: UUID | None = None)
enterprise/tests/unit/storage/test_saas_stores_effective_org.py:120
↓ 4 callersFunction_mock_download
(mock_client_cls: MagicMock, content: bytes)
enterprise/tests/unit/integrations/slack/test_slack_attachments.py:22
↓ 4 callersFunction_org_auto_adds_users
Whether sign-in alone already makes users members of this org.
enterprise/server/routes/org_invitations.py:213
↓ 4 callersFunction_org_profiles_transaction
Yield ``(session, org, profiles)`` for a single locked mutation. Wraps read → mutate → write in one session with ``SELECT ... FOR UPDATE`` so
enterprise/server/routes/org_profiles.py:152
↓ 4 callersMethod_org_with
(self, agent_profile)
enterprise/tests/unit/test_agent_profiles.py:595
↓ 4 callersMethod_parse_repository
Parse a Bitbucket data center API repository response into a Repository object. Args: repo: Repository data from Bitbucket data c
openhands/app_server/integrations/bitbucket_data_center/service/base.py:306
↓ 4 callersMethod_parse_repository
Parse a GitHub API repository response into a Repository object. Args: repo: Repository data from GitHub API link_hea
openhands/app_server/integrations/github/service/repos.py:65
↓ 4 callersMethod_posting_service
Build the Bitbucket DC service used to POST comments/reactions. Always posts as the configured bot account -- mirroring the GitHub Ap
enterprise/integrations/bitbucket_data_center/bitbucket_dc_manager.py:105
↓ 4 callersFunction_profile_lock_key
(user_id: str | None)
openhands/app_server/settings/settings_router.py:401
↓ 4 callersMethod_query_users_by_wildcard_pattern
Query Keycloak for users matching a wildcard email pattern. Tries multiple query methods to find users with emails matching the patte
enterprise/server/auth/token_manager.py:643
↓ 4 callersMethod_refresh_azure_devops_token
( self, refresh_token: str )
enterprise/server/auth/token_manager.py:496
↓ 4 callersMethod_refresh_bitbucket_data_center_token
( self, refresh_token: str )
enterprise/server/auth/token_manager.py:469
↓ 4 callersFunction_request_with_body
(body: bytes)
enterprise/tests/unit/integrations/bitbucket/test_bitbucket_webhook.py:17
↓ 4 callersMethod_resolve_archive_path
Path to archive: the value pinned at conversation creation if present, else rebuilt from the SAME base the clone used (the sandbox spec's
openhands/app_server/sandbox/remote_sandbox_service.py:643
↓ 4 callersMethod_resolve_org_id
Return the effective org id for this request, or the user's current org id as a fallback. The caller still needs to verify that the us
enterprise/storage/saas_settings_store.py:85
↓ 4 callersMethod_resolve_pr_merged
( self, metadata: StoredConversationMetadata, pr_map: dict[tuple[str, str, int], bool
enterprise/server/services/org_conversation_service.py:217
↓ 4 callersMethod_retrieve_user_msg_for_form
Retrieve stored user message from Redis. Args: message_ts: The message timestamp thread_ts: The thread timestamp (if
enterprise/integrations/slack/slack_manager.py:154
↓ 4 callersFunction_scheduled_message
Return the Message the route scheduled for manager.receive_message. The route returns 200 fast and backgrounds the manager, so the dispatch is
enterprise/tests/unit/integrations/bitbucket_data_center/test_bitbucket_dc_webhook.py:66
↓ 4 callersFunction_secret_value
Navigate into settings.agent_settings and unwrap SecretStr values.
enterprise/tests/unit/test_lite_llm_manager.py:35
↓ 4 callersMethod_select_user_data
Pick the user matching ``username`` from a /users?filter= response. The filter parameter is a substring match, so the first result is not
openhands/app_server/integrations/bitbucket_data_center/service/base.py:201
↓ 4 callersMethod_send_error_comment
Send error comment to Jira DC issue.
enterprise/integrations/jira_dc/jira_dc_manager.py:989
↓ 4 callersMethod_send_repo_selection_comment
Send a comment with repository options for the user to choose.
enterprise/integrations/jira_dc/jira_dc_manager.py:1013
↓ 4 callersFunction_session_with_existing
Mock session whose initial (user, workspace) SELECT yields `existing`.
enterprise/tests/unit/storage/test_jira_dc_active_link_constraint.py:181
↓ 4 callersFunction_set_acp
( command: list[str] | None = None, )
tests/unit/app_server/test_settings_agent_kind_switch.py:23
↓ 4 callersFunction_set_openhands
( *, llm_model: str | None = None, mcp_config: dict | None = None, )
tests/unit/app_server/test_settings_agent_kind_switch.py:36
↓ 4 callersMethod_set_security_analyzer_from_settings
Set security analyzer on conversation using only the analyzer string. Args: agent_server_url: URL of the agent server
openhands/app_server/app_conversation/app_conversation_service_base.py:690
↓ 4 callersFunction_setup_happy_path_services
( mock_get_app_conversation_info_service, mock_get_sandbox_service, mock_get_httpx_client, app
enterprise/tests/unit/integrations/gitlab/test_gitlab_v1_callback_processor.py:125
↓ 4 callersMethod_start_app_conversation
( self, request: AppConversationStartRequest )
openhands/app_server/app_conversation/live_status_app_conversation_service.py:361
↓ 4 callersMethod_to_info
( self, stored: StoredConversationMetadata, sub_conversation_ids: list[UUID] | None =
openhands/app_server/app_conversation/sql_app_conversation_info_service.py:625
↓ 4 callersMethod_to_info_with_user_id
Convert stored metadata to AppConversationInfo with user_id from SAAS metadata.
enterprise/server/utils/saas_app_conversation_info_injector.py:415
↓ 4 callersMethod_update_key
( client: httpx.AsyncClient, keycloak_user_id: str, key: str, **kwargs, )
enterprise/storage/lite_llm_manager.py:960
↓ 4 callersMethod_update_user_in_team
Update a user's budget in a team. Args: client: The HTTP client to use. keycloak_user_id: The user's Keycloak ID.
enterprise/storage/lite_llm_manager.py:1232
↓ 4 callersMethod_update_user_keys
Update all keys belonging to a user with the given parameters. Args: client: The HTTP client to use for the request k
enterprise/storage/lite_llm_manager.py:1046
↓ 4 callersMethod_user
(self, member, profile_disabled)
tests/unit/app_server/test_live_status_app_conversation_service.py:164
↓ 4 callersMethod_verify_mentioned_repos
Resolve each mentioned repo with a targeted lookup. Avoids enumerating the user's full repo list, which is capped and misses repos on
enterprise/integrations/jira_dc/jira_dc_manager.py:217
↓ 4 callersMethod_write
(self, line: str)
openhands/app_server/utils/logger.py:237
↓ 4 callersFunction_ws_perm
(level: str)
tests/unit/integrations/bitbucket/test_bitbucket_resolver.py:203
↓ 4 callersMethodactivateProfile
(name: string)
frontend/src/api/settings-service/profiles-service.api.ts:52
↓ 4 callersFunctionactivate_agent_profile
Activate a profile for the calling member — pointer only. Writes the per-member ``OrgMember.active_agent_profile_id`` and nothing else (no ``
enterprise/server/routes/agent_profiles.py:387
↓ 4 callersFunctionactivate_profile
Activate a profile for the current user. Two side effects: updates the org-wide ``profiles.active`` marker and writes the profile's LLM into
enterprise/server/routes/org_profiles.py:301
↓ 4 callersMethodadd_work_item_comment
Add a comment to an Azure DevOps work item. API Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/comments/add-comment
openhands/app_server/integrations/azure_devops/service/work_items.py:19
↓ 4 callersFunctionamountIsValid
(amount: string)
frontend/src/utils/amount-is-valid.ts:4
↓ 4 callersFunctionasync_session_maker
Create an async session maker for testing.
enterprise/tests/unit/storage/test_gitlab_webhook_store.py:52
↓ 4 callersFunctionasync_session_maker
(async_engine)
enterprise/tests/unit/server/auth/test_saas_user_auth_effective_org.py:39
↓ 4 callersMethodauthorize_device_code
Authorize a device code. Args: user_code: The user code to authorize user_id: The user ID from Keycloak Retu
enterprise/storage/device_code_store.py:91
↓ 4 callersMethodbatch_get_app_conversation_start_tasks
Get a batch of start tasks, return None for any missing.
openhands/app_server/app_conversation/app_conversation_start_task_service.py:43
↓ 4 callersMethodbatch_get_shared_events
Given a conversation_id and list of event_ids, get events if the conversation is shared.
enterprise/server/sharing/shared_event_service.py:48
↓ 4 callersFunctionbitbucket_dc_posting_service
Bitbucket DC service that posts as the configured bot account. Raises if the bot token is unset -- callers gate on it first, so this is a def
enterprise/integrations/bitbucket_data_center/bitbucket_dc_service_account.py:17
↓ 4 callersFunctionbitbucket_dc_webhook_url
(connection_id: int)
enterprise/server/routes/integration/bitbucket_dc.py:64
↓ 4 callersFunctionbitbucket_events
( request: Request, x_hub_signature: str | None = Header(None), x_event_key: str | None = Header(N
enterprise/server/routes/integration/bitbucket.py:71
↓ 4 callersMethodbuild_invitation_url
Build the absolute acceptance URL for an invitation token. WEB_HOST may be configured as a bare hostname (the OHE chart sets it that
enterprise/server/services/email_service.py:51
↓ 4 callersFunctionbuild_pg8000_connect_args
(db_ssl_mode: str | None)
openhands/db/ssl.py:21
↓ 4 callersFunctionbuild_sandbox_config
Build sandbox config for agent-server API request. Args: sandbox: SandboxInfo containing exposed URLs Returns: sandbox_confi
openhands/app_server/app_conversation/skill_loader.py:485
↓ 4 callersFunctionbyok_on
Turn BYOK on and pin the SDK catalogue the union pulls from.
enterprise/tests/unit/test_verified_model/test_litellm_proxy_model_service.py:143
↓ 4 callersMethodcheck_webhook_exists_on_repository
Return ``(True, id)`` when a webhook with ``webhook_url`` already exists on the repo (used to make enroll/reinstall idempotent), else
openhands/app_server/integrations/bitbucket_data_center/service/webhooks.py:37
↓ 4 callersMethodcheck_webhook_exists_on_resource
Check if a webhook already exists for resource with a specific URL. Args: resource_type: The type of resource
enterprise/integrations/gitlab/gitlab_service.py:357
↓ 4 callersFunctionclaim_git_organization
Claim a Git organization for an OpenHands organization. Only admin and owner roles can claim Git organizations. A Git organization can only b
enterprise/server/routes/orgs.py:1562
↓ 4 callersMethodcreate_workspace
Create a new Jira workspace with encrypted sensitive data.
enterprise/storage/jira_integration_store.py:17
↓ 4 callersFunctioncreate_workspace_link
Register a user mapping to a Jira workspace.
enterprise/server/routes/integration/jira.py:403
↓ 4 callersFunctiondecode_body
(body: bytes | memoryview)
enterprise/tests/unit/test_auth_middleware.py:163
↓ 4 callersFunctiondecode_page_id
Decode an opaque page identifier back to an integer. This function exists to support the internal decoding of page IDs. External consumers sh
openhands/app_server/utils/paging_utils.py:29
↓ 4 callersFunctiondelete_chunked_cookie
Delete ``key`` and every sibling chunk.
enterprise/server/auth/cookie_chunking.py:90
↓ 4 callersMethoddelete_claim
Delete a Git organization claim. Args: claim_id: Claim UUID to delete org_id: OpenHands organization UUID (for owners
enterprise/storage/org_git_claim_store.py:104
↓ 4 callersFunctiondelete_user_api_key
Delete a system API key created by the service. This endpoint allows the automations service to clean up API keys it previously created
enterprise/server/routes/service.py:215
↓ 4 callersMethoddeny_device_code
Deny a device code authorization. Args: user_code: The user code to deny Returns: True if denial was success
enterprise/storage/device_code_store.py:118
↓ 4 callersFunctiondepends_db_session
FastAPI ``Depends(...)`` factory for the request-scoped ``AsyncSession``. Returns a stable ``Depends`` object that defers the ``get_global_config
openhands/app_server/services/db_session.py:67
↓ 4 callersMethoddisable_keycloak_user
Disable a Keycloak user account. Args: user_id: The Keycloak user ID to disable email: Optional email address for log
enterprise/server/auth/token_manager.py:934
↓ 4 callersFunctiondummy
(value: int)
tests/unit/utils/test_async_utils.py:18
↓ 4 callersMethodexecute_callbacks
Execute any applicable callbacks for the event and store the results.
openhands/app_server/event_callback/event_callback_service.py:61
↓ 4 callersFunctionfind_customer_id_by_user_id
Mock implementation of find_customer_id_by_user_id
enterprise/tests/unit/mock_stripe_service.py:34
↓ 4 callersMethodformat_params_as_text
Format parameters as a readable text block for display. Args: indent: Optional prefix to add before each parameter line.
openhands/app_server/app_conversation/app_conversation_models.py:94
↓ 4 callersFunctiongetActiveOrganizationUser
()
frontend/src/utils/org/permission-checks.ts:22
↓ 4 callersFunctiongetAgentSettingValue
( settings: Settings, key: string, )
frontend/src/utils/sdk-settings-schema.ts:83
↓ 4 callersFunctiongetFirstAvailablePath
( isSaas: boolean, featureFlags: WebClientFeatureFlags | undefined, )
frontend/src/utils/settings-utils.ts:88
↓ 4 callersFunctiongetPR
(isGitLab: boolean)
frontend/src/utils/utils.ts:215
← previousnext →801–900 of 10,856, ranked by callers