MCPcopy Create free account

hub / github.com/OpenHands/OpenHands / functions

Functions10,856 in github.com/OpenHands/OpenHands

↓ 12 callersFunctioncreate_jira_dc_workspace
Create a new Jira DC workspace registration. Setting up the instance connection (server, service account, webhook) is an admin/owner action;
enterprise/server/routes/integration/jira_dc.py:577
↓ 12 callersMethoddecrypt_text
(self, encrypted_text: str)
enterprise/server/auth/token_manager.py:103
↓ 12 callersFunctiondeep_merge
Recursively merge *updates* into a shallow copy of *base*. * Nested dicts are merged recursively. * ``None`` values in *updates* remove the c
openhands/app_server/utils/jsonpatch_compat.py:10
↓ 12 callersMethoddelete
(self)
tests/unit/app_server/file_store/test_file_store.py:62
↓ 12 callersFunctionget_default_encryption_keys
Generate default encryption keys obtain these from previously saved values and environment variables.
openhands/app_server/utils/encryption_key.py:30
↓ 12 callersFunctionget_dependencies
()
openhands/app_server/utils/dependencies.py:23
↓ 12 callersMethodget_org_members_financial_data
Get paginated financial data for organization members. Fetches member list from database and joins with financial data from LiteLLM.
enterprise/server/services/org_member_financial_service.py:20
↓ 12 callersFunctionget_user_context
( state: InjectorState, request: Request | None = None )
openhands/app_server/config.py:500
↓ 12 callersFunctionisActionEvent
(event: OpenHandsEvent)
frontend/src/types/v1/type-guards.ts:103
↓ 12 callersMethodmodel_dump_json
(self)
enterprise/tests/unit/test_user_version_upgrade_processor_standalone.py:29
↓ 12 callersFunctionremove_org_member
Remove a member from an organization. Only owners and admins can remove members: - Owners can remove admins and regular users - Admins ca
enterprise/server/routes/orgs.py:1261
↓ 12 callersMethodsearch_llm_models
( self, *, query: str | None = None, verified_eq: bool | None = None,
openhands/app_server/config_api/default_llm_model_service.py:194
↓ 12 callersFunctionsession_maker
(**kwargs)
enterprise/storage/database.py:21
↓ 12 callersMethodswitch_to_profile
Switch ``agent_settings.llm`` to a saved profile. Raises :class:`ProfileNotFoundError` if ``name`` isn't a saved profile.
openhands/app_server/settings/settings_models.py:613
↓ 12 callersMethodvalidate_api_key
Validate an API key and return the associated user_id and org_id if valid. A key is valid only when ``not_before <= now < expires_at``. Both
enterprise/storage/api_key_store.py:245
↓ 12 callersFunctionvalidate_secrets_dict
Validate the entire secrets dictionary for size limits. This should be called before iterating over individual secrets. Args: secret
openhands/app_server/constants.py:134
↓ 12 callersFunctionvalidate_session_key
Validate an ``X-Session-API-Key`` and return the associated sandbox. Security: This function enforces that session API keys are only vali
openhands/app_server/sandbox/session_auth.py:37
↓ 11 callersFunction_comment_message
(*, body: str = 'Hey @openhands fix')
enterprise/tests/unit/integrations/bitbucket_data_center/test_bitbucket_dc_manager.py:15
↓ 11 callersFunction_make_httpx_client
(post_return=None, post_side_effect=None)
tests/unit/app_server/test_app_conversation_router.py:447
↓ 11 callersFunction_make_mock_conversation_service
Create a mock AppConversationService for testing.
tests/unit/app_server/test_send_message_endpoint.py:74
↓ 11 callersFunction_make_settings
Build a DataSettings with diff-only nested settings payloads.
enterprise/tests/unit/test_saas_settings_store.py:25
↓ 11 callersFunction_make_state_event
( key: str = 'full_state', value: dict | str = 'idle' )
enterprise/tests/unit/test_sharing/test_shared_event_filtering.py:39
↓ 11 callersFunction_make_store
(row)
enterprise/tests/unit/integrations/jira_dc/test_jira_dc_user_token.py:16
↓ 11 callersFunction_make_token_manager
(decrypt_side_effect=None, decrypt_return=None)
enterprise/tests/unit/integrations/jira_dc/test_jira_dc_user_token.py:23
↓ 11 callersFunction_org
(name: str = DEFAULT_ORG_NAME)
enterprise/tests/unit/test_default_org_service.py:31
↓ 11 callersMethod_repo_api_base
(self, owner: str, repo: str)
openhands/app_server/integrations/bitbucket_data_center/service/base.py:30
↓ 11 callersFunction_repo_dict
(key='PROJ', slug='myrepo', name='My Repository')
tests/unit/integrations/bitbucket_data_center/test_bitbucket_dc_repos.py:18
↓ 11 callersFunctionasync_session_maker
Create an async_sessionmaker that points at the test SQLite engine.
tests/unit/app_server/test_sql_event_callback_service.py:53
↓ 11 callersFunctionasync_session_maker
Create an async session maker for testing.
enterprise/tests/unit/storage/test_org_app_settings_store.py:37
↓ 11 callersMethodclone_or_init_git_repo
Clone or initialize a git repository. This is a simplified version of the actual method for testing purposes.
tests/unit/app_server/test_app_conversation_service_base.py:61
↓ 11 callersFunctioncompose_marketplaces
Compose marketplaces from the three scopes, keyed on ``name``. Precedence is Instance < Org < User for identity; org overrides an instance en
openhands/app_server/settings/marketplace_composition.py:206
↓ 11 callersMethodcount_app_conversation_info
Count conversations matching the given filters with SAAS metadata.
enterprise/server/utils/saas_app_conversation_info_injector.py:212
↓ 11 callersMethodcreate_assessment
Create a reCAPTCHA Enterprise assessment. Args: token: The reCAPTCHA token from the frontend. action: The expected ac
enterprise/server/auth/recaptcha_service.py:60
↓ 11 callersMethodcreate_azure_devops_view_from_payload
( message: Message, keycloak_user_id: str, )
enterprise/integrations/azure_devops/azure_devops_view.py:408
↓ 11 callersMethodcreate_device_code
Create a new device code entry. Uses database constraints to ensure uniqueness, avoiding TOCTOU race conditions. Retries on constrain
enterprise/storage/device_code_store.py:29
↓ 11 callersMethoddelete_sandbox
(self, sandbox_id: str)
tests/unit/app_server/test_sandbox_service.py:67
↓ 11 callersMethodencrypt_text
(self, text: str)
enterprise/server/auth/token_manager.py:99
↓ 11 callersFunctionget_agent_server_image
()
openhands/app_server/sandbox/sandbox_spec_service.py:120
↓ 11 callersMethodget_app_conversation_info
Get a single conversation info, returning None if missing.
openhands/app_server/app_conversation/app_conversation_info_service.py:48
↓ 11 callersFunctionget_cookie_samesite
()
enterprise/server/utils/url_utils.py:31
↓ 11 callersFunctionget_instance_default_marketplaces
Instance-level default marketplaces from the environment. Instance defaults auto-load by default. Parsing/validation never raises: a bad valu
openhands/app_server/settings/marketplace_composition.py:128
↓ 11 callersMethodget_latest_token
(self, provider_type: ProviderType)
enterprise/integrations/resolver_context.py:79
↓ 11 callersMethodget_org_members_paginated
Get paginated list of organization members with user and role info. Args: org_id: Organization UUID. offset: Number o
enterprise/storage/org_member_store.py:198
↓ 11 callersMethodget_pr_comments
Get all comments from all threads in a pull request. Retrieves all threads and extracts comments from them, converting to Comment objects.
openhands/app_server/integrations/azure_devops/service/prs.py:134
↓ 11 callersMethodget_provider_tokens
Get the provider tokens for the current user.
openhands/app_server/user_auth/user_auth.py:65
↓ 11 callersMethodget_user_orgs_paginated
Get paginated list of organizations for a user. Args: user_id: User UUID page_id: Optional page ID (offset as string)
enterprise/storage/org_store.py:280
↓ 11 callersFunctionisObservationEvent
( event: OpenHandsEvent, )
frontend/src/types/v1/type-guards.ts:58
↓ 11 callersFunctionisOpenHandsObservation
( event: OpenHandsParsedEvent, )
frontend/src/types/core/guards.ts:35
↓ 11 callersFunctionis_openhands_model
Return True when the model uses the public OpenHands provider prefix.
openhands/app_server/utils/llm.py:104
↓ 11 callersMethodread
(self)
tests/unit/test_issue_duplicate_scripts.py:229
↓ 11 callersMethodrollback
(self)
tests/unit/app_server/test_db_session_injector.py:625
↓ 11 callersFunctionsend_message_to_conversation
Send a follow-up message to an existing conversation. This REST endpoint provides a simplified way to send messages to a running conversation
openhands/app_server/app_conversation/app_conversation_router.py:441
↓ 11 callersMethodstart_job
Kick off a job with openhands agent. Args: view: Integration-specific view object containing job context. Each
enterprise/integrations/manager.py:28
↓ 11 callersFunctionswitch_conversation_profile
Switch the running conversation's LLM to a saved profile. Profiles live in the app-server's user settings, not on the sandbox FS, so we resol
openhands/app_server/app_conversation/app_conversation_router.py:628
↓ 11 callersFunctionuseMe
()
frontend/src/hooks/query/use-me.ts:6
↓ 11 callersFunctionuseOrganizations
()
frontend/src/hooks/query/use-organizations.ts:6
↓ 11 callersMethoduser_has_write_access_for
Return True when ``selected_user_id`` is a workspace ``owner`` or ``collaborator`` on ``workspace`` — Bitbucket Cloud's workspace-leve
openhands/app_server/integrations/bitbucket/service/resolver.py:144
↓ 11 callersMethodverify_repo_provider
( self, repository: str, specified_provider: ProviderType | None = None, is_op
openhands/app_server/integrations/provider.py:411
↓ 10 callersMethod_configure_git_user_settings
Configure git global user settings from user preferences. Reads git_user_name and git_user_email from user settings and configures th
openhands/app_server/app_conversation/app_conversation_service_base.py:305
↓ 10 callersFunction_get_providers_configured
Get configured OAuth providers from environment variables. Checks for presence of OAuth client ID env vars and returns a list of configured p
openhands/app_server/web_client/default_web_client_config_injector.py:74
↓ 10 callersFunction_handle_workspace_link_creation
Handle the creation or reactivation of a workspace link for a user.
enterprise/server/routes/integration/jira_dc.py:299
↓ 10 callersFunction_make_mock_conversation
Create a mock AppConversation for testing.
tests/unit/app_server/test_send_message_endpoint.py:33
↓ 10 callersFunction_make_mock_request
Create a mock AppSendMessageRequest for testing.
tests/unit/app_server/test_send_message_endpoint.py:66
↓ 10 callersFunction_make_mock_sandbox_service
Create a mock SandboxService for testing.
tests/unit/app_server/test_send_message_endpoint.py:81
↓ 10 callersMethod_parse_repository
Parse repository string into organization, project, and repo name.
openhands/app_server/integrations/azure_devops/service/base.py:49
↓ 10 callersFunction_patch_sandbox_service
Patch ``get_sandbox_service`` in ``session_auth`` to return a mock service.
tests/unit/app_server/test_sandbox_secrets_router.py:58
↓ 10 callersMethod_send_runtime_api_request
Send a request to the remote runtime API.
openhands/app_server/sandbox/remote_sandbox_service.py:126
↓ 10 callersMethod_setup_secrets_for_git_providers
Set up secrets for all git provider authentication. Args: user: User information containing authentication details Retur
openhands/app_server/app_conversation/live_status_app_conversation_service.py:1126
↓ 10 callersFunctionbuildSessionHeaders
( sessionApiKey?: string | null, )
frontend/src/utils/utils.ts:561
↓ 10 callersFunctioncall_sync_from_async
Shorthand for running a function in the default background thread pool executor and awaiting the result. The nature of synchronous code is that th
openhands/app_server/utils/async_utils.py:10
↓ 10 callersFunctioncreate_mock_request
Create a mock FastAPI Request object with proper state.
tests/unit/app_server/test_webhook_router_auth.py:50
↓ 10 callersFunctiondecrypt_value
(value: str | SecretStr)
enterprise/storage/encrypt_utils.py:21
↓ 10 callersMethodenrich
( self, *, user_context: UserContext, user: UserInfo, trigger: Convers
enterprise/integrations/jira_dc/jira_dc_conversation_secret_enricher.py:160
↓ 10 callersFunctionensure_conversation_found
Ensure conversation info exists, otherwise raise a clear error.
openhands/app_server/event_callback/util.py:21
↓ 10 callersFunctionextract_base_email
Extract base email from an email address. For emails with + modifier, extracts the base email (local part before + and @, plus domain). For e
enterprise/server/auth/email_validation.py:6
↓ 10 callersFunctionget_agent_server_url_from_sandbox
Return the agent server URL from sandbox exposed URLs.
openhands/app_server/event_callback/util.py:44
↓ 10 callersFunctionget_app_conversation_service
( state: InjectorState, request: Request | None = None )
openhands/app_server/config.py:484
↓ 10 callersMethodget_conversation_path
Get a path for a conversation. Ensure user_id is included if possible.
openhands/app_server/event/event_service_base.py:66
↓ 10 callersFunctionget_cookie_domain
()
enterprise/server/utils/url_utils.py:20
↓ 10 callersMethodget_paginated_branches
Get branches for a repository with pagination
openhands/app_server/integrations/service_types.py:301
↓ 10 callersMethodget_provider_tokens
( self, as_env_vars: bool = False )
enterprise/integrations/resolver_context.py:88
↓ 10 callersFunctionget_storage_provider
Get the storage provider based on environment variables. Determines the storage provider from environment configuration: - SHARED_EVENT_STORA
openhands/app_server/utils/environment.py:21
↓ 10 callersFunctionget_supported_llm_models
Collect every model available to this server and return structured data. The returned ``ModelsResponse`` contains: * a flat list of ``provid
openhands/app_server/utils/llm.py:261
↓ 10 callersMethodget_user_email
(self)
enterprise/server/auth/saas_user_auth.py:355
↓ 10 callersMethodget_user_info
Get the user info. Defaults to the PERSISTED settings view. ``resolve_agent_profile=True`` opts into the effective launch view (the a
openhands/app_server/user/user_context.py:41
↓ 10 callersFunctiongithub_callback_processor
()
enterprise/tests/unit/integrations/github/test_github_v1_callback_processor.py:43
↓ 10 callersFunctionhasPermission
(permission: PermissionKey)
frontend/src/hooks/organizations/use-permissions.ts:13
↓ 10 callersMethodis_job_requested
Determine if a job should be started based on the current context. This method checks: 1. If the view type allows immediate job s
enterprise/integrations/slack/slack_manager.py:784
↓ 10 callersFunctioniso_timestamp
(value: datetime)
tests/unit/test_issue_duplicate_scripts.py:36
↓ 10 callersFunctionload_agent_profiles
Load ``AgentProfiles`` from the org row, defaulting to empty if unset. Degrades to an empty collection on schema drift rather than 500-ing — the
enterprise/storage/agent_profile_resolution.py:32
↓ 10 callersFunctionon_options_load
Handle external_select options loading (block_suggestion payload). This endpoint is called by Slack when a user interacts with an external_select
enterprise/server/routes/integration/slack.py:343
↓ 10 callersFunctionpaginate_results
Apply pagination to a list of items. Args: items: Full list of items to paginate. page_id: Optional page token from previous requ
openhands/app_server/utils/paging_utils.py:57
↓ 10 callersMethodrename
Rename a profile, preserving stored LLM config, insertion order, and the active flag (if the renamed profile was active). Raises :cla
openhands/app_server/settings/llm_profiles.py:247
↓ 10 callersFunctionresolve_jira_dc_service_account
Resolve the effective Jira DC service account for runtime API calls. KOTS/env values are authoritative when both are set. Otherwise the existing
enterprise/integrations/jira_dc/jira_dc_service_account.py:66
↓ 10 callersMethodsave_event_callback
Update the event callback given.
openhands/app_server/event_callback/event_callback_service.py:57
↓ 10 callersFunctionsearch_repositories
Get or search repositories. If query is provided, searches repositories across the git provider. If query is not provided, returns a paginate
openhands/app_server/git/git_router.py:103
↓ 10 callersMethodsearch_sandboxes
( self, page_id: str | None = None, limit: int = 100 )
tests/unit/app_server/test_sandbox_service.py:38
↓ 10 callersMethodupdate_all_members_settings_async
Update shared settings for all members of an organization. Args: session: Database session (passed from caller for transaction)
enterprise/storage/org_member_store.py:243
↓ 10 callersMethodupdate_org_member
Update an organization-member relationship.
enterprise/storage/org_member_store.py:104
↓ 10 callersFunctionvalid_sandbox
Use a session api key for validation, and get a sandbox record. Subsequent actions are executed in the context of the owner of the sandbox
openhands/app_server/event_callback/webhook_router.py:250
← previousnext →201–300 of 10,856, ranked by callers