MCPcopy Create free account

hub / github.com/OpenHands/OpenHands / functions

Functions10,856 in github.com/OpenHands/OpenHands

↓ 18 callersFunction_get_feature_flags
Get feature flags from environment variables. Reads ENABLE_BILLING, HIDE_LLM_SETTINGS, ENABLE_JIRA, ENABLE_JIRA_DC, ENABLE_LINEAR, HIDE_USERS
openhands/app_server/web_client/default_web_client_config_injector.py:177
↓ 18 callersFunctioncreate_chunks
( text: str, size: int = 100, language: str | None = None )
openhands/app_server/utils/chunk_localizer.py:149
↓ 18 callersFunctionget_session_expired_message
Get a user-friendly session expired message. Used by integrations to notify users when their Keycloak offline session has expired. Args:
enterprise/integrations/utils.py:27
↓ 18 callersFunctioninstall_client
(monkeypatch, response=None, error=None)
enterprise/tests/unit/test_verified_model/test_litellm_proxy_model_service.py:165
↓ 18 callersFunctionon_conversation_update
Webhook callback for when a conversation starts, pauses, resumes, or deletes. The ``ConversationInfo.agent`` field is an ``AgentBase`` discrimina
openhands/app_server/event_callback/webhook_router.py:349
↓ 18 callersMethodsearch_events
Search events matching the given filters.
openhands/app_server/event/event_service.py:26
↓ 18 callersFunctionuseConversationId
()
frontend/src/hooks/use-conversation-id.ts:3
↓ 17 callersFunction_make_mock_user_context
Create a mock UserContext for testing.
tests/unit/app_server/test_git_router.py:90
↓ 17 callersMethodcreate_jws_token
Create a JWS (JSON Web Signature) token. Args: payload: The JWT payload key_id: The key ID to use for signing. If Non
openhands/app_server/services/jwt_service.py:65
↓ 17 callersMethoddepends
Depends function suitable for use with FastAPI dependency injection.
openhands/app_server/services/injector.py:31
↓ 17 callersFunctionencode_page_id
Encode an integer page identifier as an opaque base64 string. This function exists to ensure that page IDs are opaque tokens that do not reve
openhands/app_server/utils/paging_utils.py:12
↓ 17 callersMethodget_all_repositories
Get repositories for the authenticated user
openhands/app_server/integrations/service_types.py:272
↓ 17 callersFunctionget_db_session
Return an async context manager yielding the request-scoped ``AsyncSession``.
openhands/app_server/services/db_session.py:40
↓ 17 callersMethodget_matching_authorizations
Get all authorization rules that match the given email and provider. Args: email: The user's email address provider_t
enterprise/storage/user_authorization_store.py:52
↓ 17 callersFunctionget_web_url
(request: Request)
enterprise/server/utils/url_utils.py:10
↓ 17 callersMethodparse_webhook
( self, payload: Dict, bot_mentions: set[str] | None = None )
enterprise/integrations/jira_dc/jira_dc_manager.py:313
↓ 17 callersMethodsave_event
Save an event. Internal method intended not be part of the REST api.
openhands/app_server/event/event_service.py:61
↓ 17 callersMethodstore
(self, item: Settings)
enterprise/storage/saas_settings_store.py:506
↓ 17 callersMethodwrite
(data: BufferSource | Blob | string)
frontend/src/types/file-system.d.ts:2
↓ 16 callersMethod_make_request
( self, url: str, params: dict | None = None, method: RequestMethod = RequestM
openhands/app_server/integrations/service_types.py:215
↓ 16 callersMethod_make_request
( self, url: str, params: dict | None = None, method: RequestMethod = RequestM
openhands/app_server/integrations/github/service/base.py:54
↓ 16 callersFunction_make_sandbox_info
( sandbox_id: str = SANDBOX_ID, user_id: str | None = USER_ID, )
tests/unit/app_server/test_sandbox_secrets_router.py:45
↓ 16 callersFunctionasync_session_maker
Create an async session maker bound to the async engine.
enterprise/tests/unit/storage/test_auth_token_store.py:33
↓ 16 callersMethoddecrypt_jwe_token
Decrypt and decode a JWE token. Args: token: The JWE token to decrypt key_id: The key ID to use for decryption. If No
openhands/app_server/services/jwt_service.py:201
↓ 16 callersFunctionget_httpx_client
( state: InjectorState, request: Request | None = None )
openhands/app_server/config.py:508
↓ 16 callersMethodget_service
Helper method to instantiate a service for a given provider
openhands/app_server/integrations/provider.py:155
↓ 16 callersFunctionget_user_not_found_message
Get a user-friendly message when a user hasn't created an OpenHands account. Used by integrations to notify users when they try to use OpenHands
enterprise/integrations/utils.py:47
↓ 16 callersMethodget_workspace_by_name
Retrieve workspace by name.
enterprise/storage/jira_integration_store.py:122
↓ 16 callersFunctionisOpenHandsAction
( event: OpenHandsParsedEvent, )
frontend/src/types/core/guards.ts:31
↓ 16 callersFunctionresolve_analytics_context
Resolve a user_id into a fully-populated :class:`AnalyticsContext`. Performs user lookup via the configured AnalyticsUserProvider, extracts c
openhands/analytics/analytics_context.py:66
↓ 15 callersMethod_encode_url_component
URL-encode a component for use in Azure DevOps API URLs. Args: component: The string component to encode (e.g., repo name, projec
openhands/app_server/integrations/azure_devops/service/base.py:60
↓ 15 callersMethod_make_request
Make a request to the Bitbucket API. Args: url: The URL to request params: Optional parameters for the request
openhands/app_server/integrations/bitbucket/service/base.py:93
↓ 15 callersFunctioncreatePermissionGuard
(requiredPermission: PermissionKey, customRedirectPath?: string)
frontend/src/utils/org/permission-guard.ts:48
↓ 15 callersFunctioncreate_token_event
Helper to create a TokenEvent for testing.
tests/unit/app_server/test_filesystem_event_service.py:49
↓ 15 callersMethodfrom_org
Create an OrgResponse from an Org entity.
enterprise/server/routes/org_models.py:224
↓ 15 callersMethodget_instance
(cls, request: Request)
enterprise/server/auth/saas_user_auth.py:721
↓ 15 callersFunctionget_oh_labels
Get the OpenHands labels based on the web host. An explicit ``OH_RESOLVER_LABEL`` environment variable takes precedence and lets each deploym
enterprise/integrations/utils.py:113
↓ 15 callersMethodget_role_by_id
Get role by ID.
enterprise/storage/role_store.py:44
↓ 15 callersFunctionget_sandbox_service
( state: InjectorState, request: Request | None = None )
openhands/app_server/config.py:452
↓ 15 callersMethodload
Load settings; opt into the resolved Agent-Profile launch view. The default returns the PERSISTED (composed org + member) settings —
enterprise/storage/saas_settings_store.py:261
↓ 15 callersFunctionresolve_org_for_repo
Determine the OpenHands org_id for a resolver conversation. If the repo's git organization is claimed by an OpenHands org, returns the claimi
enterprise/integrations/resolver_org_router.py:16
↓ 15 callersMethodupdate_org_with_permissions
Update organization with permission checks for LLM settings. Args: org_id: Organization UUID to update updat
enterprise/storage/org_service.py:492
↓ 15 callersFunctionuseUserProviders
()
frontend/src/hooks/use-user-providers.ts:5
↓ 14 callersMethod_enter_all
Enter every patch in ``patches`` via an ``ExitStack``. Returning the stack lets the caller use ``with stack:`` to guarantee tear-down
enterprise/tests/unit/routes/test_user_provisioning.py:235
↓ 14 callersFunction_jdc_comment_payload
(body: str)
enterprise/tests/unit/integrations/jira_dc/test_jira_dc_manager.py:523
↓ 14 callersMethod_make_request
( self, url: str, params: dict | None = None, method: RequestMethod = RequestM
openhands/app_server/integrations/gitlab/service/base.py:38
↓ 14 callersMethod_patch_dependencies
Return a stack of patches as a list of context managers. Tests enter all of them via ``contextlib.ExitStack`` so each patch's mock ca
enterprise/tests/unit/routes/test_user_provisioning.py:124
↓ 14 callersFunction_seed_minimal
Create a role, org(s), user, and org_member rows in the in-memory DB. When ``super_role_name`` is provided, also seed a separate role row wit
enterprise/tests/unit/server/auth/test_saas_user_auth_effective_org.py:65
↓ 14 callersMethodcreate_entries
( org_id: str, keycloak_user_id: str, oss_settings: Settings, create_user: boo
enterprise/storage/lite_llm_manager.py:122
↓ 14 callersMethodget_access_token
(self)
enterprise/server/auth/saas_user_auth.py:502
↓ 14 callersFunctionget_impl
Import and validate a named implementation of a base class. This function is an extensibility mechanism in OpenHands that allows runtime subs
openhands/app_server/utils/import_utils.py:43
↓ 14 callersMethodget_org_members
Get all users in an organization.
enterprise/storage/org_member_store.py:95
↓ 14 callersFunctionget_shared_event_service_injector
Get the appropriate SharedEventServiceInjector based on configuration. Uses get_storage_provider() to determine the storage backend. See open
enterprise/server/sharing/shared_event_router.py:33
↓ 14 callersFunctionjira_dc_callback
(request: Request, code: str, state: str)
enterprise/server/routes/integration/jira_dc.py:910
↓ 14 callersFunctionmake_service
()
tests/unit/integrations/bitbucket_data_center/test_bitbucket_dc_repos.py:14
↓ 14 callersMethodmerge
(self, obj)
enterprise/tests/unit/test_maintenance_task_runner_standalone.py:420
↓ 14 callersMethodpause_old_sandboxes
Pause the oldest sandboxes if there are more than max_num_sandboxes running. In a multi user environment, this will pause sandboxes only for t
openhands/app_server/sandbox/sandbox_service.py:223
↓ 14 callersFunctionprovision_user
Create a new user and add them to the caller's selected org. The target org is the API key org if an API key is used, otherwise it is taken f
enterprise/server/routes/user_provisioning.py:256
↓ 14 callersMethodquery
(self, model)
enterprise/tests/unit/test_maintenance_task_runner_standalone.py:410
↓ 14 callersFunctionresolve_display_name
Resolve the best available display name from Keycloak user_info claims. Fallback chain: name → given_name + family_name → None Does NOT fall
enterprise/utils/identity.py:4
↓ 14 callersMethodsave_app_conversation_start_task
Store the start task object given. Return the stored task
openhands/app_server/app_conversation/app_conversation_start_task_service.py:54
↓ 14 callersMethodstart_sandbox
( self, sandbox_spec_id: str | None = None, sandbox_id: str | None = None )
tests/unit/app_server/test_sandbox_service.py:56
↓ 13 callersFunction_build_onboarding_redirect
Build the ``/onboarding`` redirect URL preserving ``returnTo``. The user's originally requested destination is preserved as a ``returnTo`` qu
enterprise/server/routes/auth.py:763
↓ 13 callersMethod_call_build
Wire user_context and call _build_acp_start_conversation_request.
tests/unit/app_server/test_live_status_app_conversation_service.py:4062
↓ 13 callersFunction_load_profiles
Load LLMProfiles from org row, defaulting to empty if not set.
enterprise/server/routes/org_profiles.py:129
↓ 13 callersMethod_make_acp_user
( self, acp_server='claude-code', context_secrets=None, api_key=None )
tests/unit/app_server/test_live_status_app_conversation_service.py:4027
↓ 13 callersFunction_make_stream_response
A fake httpx streaming response: status/headers + async aiter_bytes().
tests/unit/app_server/test_remote_sandbox_service.py:102
↓ 13 callersMethod_resolve_primary_email
Find the primary verified email from a list of GitHub email objects. GitHub's /user/emails endpoint returns a list of dicts, each with
openhands/app_server/integrations/github/service/base.py:27
↓ 13 callersFunction_stream_client
AsyncMock httpx client whose .stream(...) yields a fake response. ``resp_or_map`` is a single fake response or a ``{format: response}`` map.
tests/unit/app_server/test_remote_sandbox_service.py:118
↓ 13 callersMethodapply_for_user
(user: User, is_new_user: bool)
enterprise/storage/default_org_service.py:94
↓ 13 callersFunctioncheck_rate_limit_by_user_id
Check rate limit for requests, using user_id when available, falling back to IP address. Uses Redis to store rate limit keys with expiration
enterprise/server/utils/rate_limit_utils.py:51
↓ 13 callersMethodcommit
(self)
tests/unit/app_server/test_db_session_injector.py:628
↓ 13 callersFunctionconfig_from_env
()
openhands/app_server/config.py:240
↓ 13 callersMethodcontext
Context function suitable for use in async with clauses
openhands/app_server/services/injector.py:24
↓ 13 callersMethodcreate_jwe_token
Create a JWE (JSON Web Encryption) token. Args: payload: The JWT payload to encrypt key_id: The key ID to use for enc
openhands/app_server/services/jwt_service.py:147
↓ 13 callersFunctionget_admin_user_id
Dependency that validates user has @openhands.dev email domain. This dependency can be used in place of get_user_id for endpoints that s
enterprise/server/email_validation.py:12
↓ 13 callersFunctionget_redis_client_async
Get a shared asynchronous Redis client, lazily initialized. Note: This function is synchronous but returns an async client. Thread-safe initi
openhands/app_server/utils/redis.py:47
↓ 13 callersMethodget_role_by_name
Get role by name.
enterprise/storage/role_store.py:60
↓ 13 callersFunctionget_user_jira_dc_token
Resolve a valid per-user Jira DC access token, refreshing if necessary. Raises JiraDcUserTokenError when no usable token is available.
enterprise/integrations/jira_dc/jira_dc_user_token.py:37
↓ 13 callersMethodhandle_http_status_error
Handle HTTP status errors and convert them to appropriate exceptions.
openhands/app_server/integrations/protocols/http_client.py:82
↓ 13 callersFunctionhas_exact_mention
Check if the text contains an exact mention (not part of a larger word). Args: text: The text to check for mentions mention: The
enterprise/integrations/utils.py:147
↓ 13 callersFunctionhas_permission
Check if a role has a specific permission. Args: user_role: User's Role object permission: Permission to check is_su
enterprise/server/auth/authorization.py:337
↓ 13 callersMethodload_offline_token
(self, user_id: str)
enterprise/server/auth/token_manager.py:1099
↓ 13 callersMethodopen
(self, op: str)
tests/unit/app_server/file_store/test_file_store.py:54
↓ 13 callersMethodreceive_message
Receive message from integration
enterprise/integrations/manager.py:14
↓ 13 callersFunctionsave_profile
Create or update an LLM profile. If ``llm`` is omitted, saves a copy of the current org LLM defaults.
enterprise/server/routes/org_profiles.py:229
↓ 13 callersFunctionuseClickOutsideElement
( callback: () => void, )
frontend/src/hooks/use-click-outside-element.ts:7
↓ 12 callersMethod__init__
(self, action: str = 'remove')
enterprise/server/routes/org_models.py:175
↓ 12 callersMethod__setattr__
(self, name, value)
tests/unit/app_server/test_webhook_router_auth.py:36
↓ 12 callersFunction_client
(app)
enterprise/tests/unit/server/routes/test_super_admins.py:50
↓ 12 callersMethod_fetch_specs
Return specs from cache, or re-fetch from runtime-api if the TTL has expired.
openhands/app_server/sandbox/dynamic_remote_sandbox_spec_service.py:47
↓ 12 callersFunction_make_agent_server_context
Build a minimal AgentServerContext for the success path tests.
tests/unit/app_server/test_app_conversation_router.py:428
↓ 12 callersFunction_make_mock_service
Create a mock AppConversationService for testing.
tests/unit/app_server/test_app_conversation_router.py:55
↓ 12 callersMethod_make_request
( self, url: str, params: dict | None = None, method: RequestMethod = RequestM
openhands/app_server/integrations/forgejo/service/base.py:82
↓ 12 callersFunction_seed_admin_role
Seed roles required by ``UserStore.create_user``. ``owner`` is required for the user's personal-org membership, while ``admin`` is the first
enterprise/tests/unit/test_user_store.py:141
↓ 12 callersFunction_stores_patched
Return the standard set of patches used by SaasUserAuth helpers.
enterprise/tests/unit/server/auth/test_saas_user_auth_effective_org.py:127
↓ 12 callersFunction_user
(email: str)
enterprise/tests/unit/test_default_org_service.py:26
↓ 12 callersMethodaccept_invitation
Accept an organization invitation. This method: 1. Validates the token and invitation status 2. Checks expiration 3.
enterprise/server/services/org_invitation_service.py:357
↓ 12 callersMethodall
(self)
openhands/app_server/settings/marketplace_composition.py:74
↓ 12 callersMethodcreate_event_callback
Create a new event callback.
openhands/app_server/event_callback/event_callback_service.py:20
← previousnext →101–200 of 10,856, ranked by callers