MCPcopy Create free account

hub / github.com/OpenHands/OpenHands / functions

Functions10,856 in github.com/OpenHands/OpenHands

↓ 394 callersMethodexecute
(self, query)
enterprise/tests/unit/storage/test_saas_stores_effective_org.py:165
↓ 356 callersFunctiont
(key: string)
frontend/__tests__/utils/utils.test.ts:7
↓ 326 callersMethodget
Return the profile's LLM or ``None`` if it doesn't exist.
openhands/app_server/settings/llm_profiles.py:188
↓ 312 callersMethodget
(self, model, user_id)
enterprise/tests/unit/test_user_store_login.py:30
↓ 301 callersMethodwarning
* Log a warning message * @param warning The warning message
frontend/src/utils/event-logger.ts:34
↓ 282 callersMethodcommit
(self)
enterprise/tests/unit/test_user_store_login.py:34
↓ 272 callersMethodadd
(self, row)
enterprise/tests/unit/storage/test_saas_stores_effective_org.py:216
↓ 252 callersMethodjson
(self)
enterprise/tests/unit/server/routes/test_azure_devops_integration_routes.py:297
↓ 223 callersMethodscalars
(self)
enterprise/tests/unit/storage/test_saas_stores_effective_org.py:152
↓ 192 callersMethodnow
(self, tz=None)
enterprise/tests/unit/test_user_store_login.py:20
↓ 180 callersFunctioncn
(...inputs: ClassValue[])
frontend/src/utils/utils.ts:12
↓ 175 callersFunctiona_session_maker
(**kwargs)
enterprise/storage/database.py:28
↓ 152 callersMethoderror
* Log an error message * @param error The error message
frontend/src/utils/event-logger.ts:44
↓ 144 callersMethodget
(self, url: str, headers: dict[str, str] | None = None)
tests/unit/app_server/test_set_title_callback_processor.py:31
↓ 143 callersMethodfilter
(self, *conditions)
enterprise/tests/unit/test_maintenance_task_runner_standalone.py:414
↓ 126 callersFunctionasync_session_maker
Create an async session maker bound to the async engine.
enterprise/tests/unit/conftest.py:121
↓ 111 callersMethodmodel_dump
(self)
tests/unit/app_server/test_app_conversation_service_base.py:628
↓ 92 callersMethodfilter
(self, record: logging.LogRecord)
openhands/app_server/utils/logger.py:97
↓ 83 callersFunctionrequire_permission
Factory function that creates a dependency to require a specific permission. This creates a FastAPI dependency that: 1. Extracts org_id
enterprise/server/auth/authorization.py:401
↓ 81 callersMethodraise_for_status
(self)
enterprise/tests/unit/test_verified_model/test_litellm_proxy_model_service.py:58
↓ 77 callersFunctionload_module
(script_name: str)
tests/unit/test_issue_duplicate_scripts.py:17
↓ 70 callersMethodflush
(self)
enterprise/storage/org_budget_store.py:130
↓ 69 callersMethodget
(self, url, headers=None)
enterprise/tests/unit/test_verified_model/test_litellm_proxy_model_service.py:85
↓ 67 callersMethodall
(self)
enterprise/tests/unit/storage/test_saas_stores_effective_org.py:155
↓ 65 callersFunctiondisplayErrorToast
(error: string | null | undefined)
frontend/src/utils/custom-toast-handlers.tsx:22
↓ 62 callersMethodload
(self)
enterprise/storage/saas_secrets_store.py:28
↓ 59 callersFunctionget_global_config
Get the default local server config shared across the server.
openhands/app_server/config.py:426
↓ 58 callersMethodsave
Save ``llm`` under ``name``. Overwrites if the name exists. Always stores a copy so later caller-side mutations do not bleed into the
openhands/app_server/settings/llm_profiles.py:233
↓ 55 callersMethodupdate
Apply a batch of changes from a nested dict. ``agent_settings_diff`` and ``conversation_settings_diff`` use nested dict shape (matchi
openhands/app_server/settings/settings_models.py:475
↓ 52 callersFunctionuseConfig
(options?: UseConfigOptions)
frontend/src/hooks/query/use-config.ts:10
↓ 50 callersMethodsave_app_conversation_info
Save conversation info and create/update SAAS metadata with user_id and org_id.
enterprise/server/utils/saas_app_conversation_info_injector.py:353
↓ 49 callersMethodparse
Parse a raw webhook payload into a normalized JiraWebhookPayload. Args: raw_payload: The raw webhook payload dict from Jira
enterprise/integrations/jira/jira_payload.py:106
↓ 47 callersFunctioncreate_runtime_data
Helper function to create runtime data for testing.
tests/unit/app_server/test_remote_sandbox_service.py:140
↓ 47 callersFunctionuseSelectedOrganizationId
()
frontend/src/context/use-selected-organization.ts:9
↓ 45 callersFunctionsession_maker
(engine)
enterprise/tests/unit/conftest.py:97
↓ 44 callersMethodhas
(self, name: str)
openhands/app_server/settings/llm_profiles.py:199
↓ 43 callersFunction_base_settings
A Settings instance with an LLM configured so 'snapshot current' works.
tests/unit/app_server/test_profiles_api.py:115
↓ 43 callersFunctiondisplaySuccessToast
(message: string)
frontend/src/utils/custom-toast-handlers.tsx:33
↓ 41 callersFunction_seed
(store: FileSettingsStore, settings: Settings)
tests/unit/app_server/test_profiles_api.py:127
↓ 41 callersFunctionmake_ctx
Helper to create an AnalyticsContext for tests.
tests/unit/test_analytics_service.py:34
↓ 41 callersFunctionrenderWithProviders
( ui: React.ReactElement, renderOptions: ExtendedRenderOptions = {}, )
frontend/test-utils.tsx:65
↓ 40 callersMethodcommit
(self)
enterprise/tests/unit/storage/test_saas_stores_effective_org.py:219
↓ 37 callersFunctioncreate_stored_sandbox
Helper function to create StoredRemoteSandbox for testing.
tests/unit/app_server/test_remote_sandbox_service.py:157
↓ 37 callersMethoddelete
(self, name: str)
enterprise/storage/agent_profile_resolution.py:87
↓ 36 callersMethodget_app_conversation_info
Get conversation info with user_id from SAAS metadata.
enterprise/server/utils/saas_app_conversation_info_injector.py:290
↓ 35 callersFunctioncreate_service
Helper to create a service with mocked constants.
enterprise/tests/unit/server/services/test_automation_event_service.py:126
↓ 35 callersMethodrefresh
(self, instance)
enterprise/storage/org_budget_store.py:133
↓ 35 callersMethodrefresh
(self, refresh_token: str)
enterprise/server/auth/token_manager.py:1041
↓ 33 callersFunctionget_user_auth
(request: Request)
openhands/app_server/user_auth/user_auth.py:151
↓ 33 callersMethodstore
(self, item: Secrets)
enterprise/storage/saas_secrets_store.py:58
↓ 32 callersFunction_create_mock_request
Helper to create a mock request with optional api_key_org_id.
enterprise/tests/unit/test_authorization.py:486
↓ 32 callersMethodget_user_by_id
Get user by Keycloak user ID.
enterprise/storage/user_store.py:744
↓ 31 callersFunctioncn
(...inputs: ClassValue[])
openhands-ui/shared/utils/cn.ts:4
↓ 31 callersFunctioncreate_keycloak_user_info
Fixture that returns a factory function to create KeycloakUserInfo models. Usage: def test_example(create_keycloak_user_info):
enterprise/tests/unit/conftest.py:61
↓ 31 callersFunctionhttpx_verify_option
Return the verify option to pass when creating an HTTPX client.
openhands/app_server/utils/http_session.py:6
↓ 30 callersFunctionpermission_checker
( request: Request, org_id: UUID | None = None, user_id: str | None = Depends(get_user
enterprise/server/auth/authorization.py:427
↓ 29 callersMethodcapture
Capture a server-side event. Consent gate: returns immediately when ctx.consented=False. Common properties (app_mode, is_feature_env,
openhands/analytics/analytics_service.py:69
↓ 29 callersFunctioncreate_mock_user_authorizer
Create a mock UserAuthorizer that returns the specified authorization result.
enterprise/tests/unit/test_auth_routes.py:25
↓ 29 callersFunctionkeycloak_callback
( request: Request, background_tasks: BackgroundTasks, code: Optional[str] = None, state: Opti
enterprise/server/routes/auth.py:255
↓ 27 callersFunctionasync_session_maker
Create an async session maker for testing.
enterprise/tests/unit/test_org_member_store.py:100
↓ 26 callersMethoddelete
(self, path: str)
openhands/app_server/file_store/s3.py:154
↓ 26 callersMethodget_effective_org_id
Resolve the effective organization ID for this request. Delegates to :meth:`_resolve_org_id` with ``verify_membership=True`` and cach
enterprise/server/auth/saas_user_auth.py:317
↓ 26 callersMethodget_instance
Get an instance of the ApiKeyStore.
enterprise/storage/api_key_store.py:466
↓ 26 callersFunctionreplace_localhost_hostname_for_docker
Replace localhost hostname in URL with the specified replacement when running in Docker. This function only performs the replacement when the cod
openhands/app_server/utils/docker_utils.py:6
↓ 26 callersFunctionuseActiveConversation
()
frontend/src/hooks/query/use-active-conversation.ts:6
↓ 25 callersFunction_create_service_with_mock_user_context
Create a mock service with selected real methods bound for testing. Uses MagicMock for the service but binds the real method for testing. Re
tests/unit/app_server/test_app_conversation_service_base.py:735
↓ 25 callersFunctionget_agent_server_env
Get environment variables to be injected into agent server sandbox environments. This function combines two sources of environment variables:
openhands/app_server/sandbox/sandbox_spec_service.py:154
↓ 25 callersMethodsearch_app_conversation_info
Search for conversations with user_id from SAAS metadata.
enterprise/server/utils/saas_app_conversation_info_injector.py:131
↓ 24 callersMethod_build_start_conversation_request_for_user
Build a complete StartConversationRequest for a user. Resolves LLM, MCP, tools, secrets and agent context, then builds the ``Agent``
openhands/app_server/app_conversation/live_status_app_conversation_service.py:1630
↓ 24 callersMethod_configure_llm_and_mcp
Configure LLM and MCP (Model Context Protocol) settings. Args: user: User information containing LLM preferences llm_
openhands/app_server/app_conversation/live_status_app_conversation_service.py:1319
↓ 24 callersMethodget_user_id
(self)
enterprise/server/auth/saas_user_auth.py:352
↓ 24 callersFunctionuseSettings
(scope: SettingsScope = "personal")
frontend/src/hooks/query/use-settings.ts:127
↓ 23 callersMethodformat
(self, record: logging.LogRecord)
openhands/app_server/utils/logger.py:116
↓ 23 callersMethodget_org_by_id
Get organization by ID.
enterprise/storage/org_store.py:128
↓ 23 callersMethodget_org_member
Get organization-user relationship.
enterprise/storage/org_member_store.py:54
↓ 23 callersMethodsearch_repositories
( self, selected_provider: ProviderType | None, query: str, per_page: int,
openhands/app_server/integrations/provider.py:353
↓ 22 callersMethodclose
Release long-lived resources owned by this injector. Currently this closes the GCP Cloud SQL connector (which in turn stops its backg
openhands/app_server/services/db_session_injector.py:336
↓ 22 callersMethodcreate_authorization
Create a new user authorization rule. Args: email_pattern: SQL LIKE pattern for email matching (e.g., '%@openhands.dev')
enterprise/storage/user_authorization_store.py:136
↓ 22 callersMethodget_sandbox
Get a single sandbox. Return None if the sandbox was not found.
openhands/app_server/sandbox/sandbox_service.py:42
↓ 22 callersMethodget_user
Get user information from the first available provider
openhands/app_server/integrations/provider.py:168
↓ 22 callersFunctionis_valid_email
Validate an email address format. This uses a regex pattern that matches most valid email addresses while rejecting addresses with special ch
enterprise/sync/resend_keycloak.py:153
↓ 21 callersMethod_make_request
Make HTTP request to Azure DevOps API.
openhands/app_server/integrations/azure_devops/service/base.py:40
↓ 21 callersFunctionassert_chunk_invariants
Run ``create_chunks`` and assert all core invariants. Calls ``create_chunks(text, size, language)`` and checks: 1. At least one chunk is
tests/unit/utils/test_chunk_localizer.py:12
↓ 21 callersFunctionmiddleware
()
enterprise/tests/unit/test_auth_middleware.py:31
↓ 21 callersFunctionresolve_provider_llm_base_url
Apply deployment-specific LLM proxy override when needed. When the model uses the public ``openhands/`` prefix and the stored ``base_url`` is
openhands/app_server/config.py:138
↓ 21 callersFunctionretrieveAxiosErrorMessage
(error: AxiosError)
frontend/src/utils/retrieve-axios-error-message.ts:12
↓ 20 callersFunction_make_llm
(model: str = 'openai/gpt-4o', api_key: str | None = None)
tests/unit/storage/data_models/test_llm_profiles.py:21
↓ 20 callersMethodget_user_id
Get the unique identifier for the current user
openhands/app_server/user_auth/user_auth.py:53
↓ 20 callersMethodremove_org_member
Remove a member from an organization. Returns: Tuple of (success, error_message). If success is True, error_message is None.
enterprise/server/services/org_member_service.py:172
↓ 20 callersFunctionuseAgentState
()
frontend/src/hooks/use-agent-state.ts:57
↓ 20 callersMethodverify_jws_token
Verify and decode a JWS token. Args: token: The JWS token to verify key_id: The key ID to use for verification. If No
openhands/app_server/services/jwt_service.py:108
↓ 19 callersFunction_make_async_client_mock
Return a mock that behaves like `async with httpx.AsyncClient() as client`.
tests/unit/app_server/test_dynamic_remote_sandbox_spec_service.py:78
↓ 19 callersFunction_make_http_response
Return a mock httpx.Response with the given JSON payload.
tests/unit/app_server/test_dynamic_remote_sandbox_spec_service.py:46
↓ 19 callersMethod_make_request
Make a request to the Bitbucket data center API. Args: url: The URL to request params: Optional parameters for the re
openhands/app_server/integrations/bitbucket_data_center/service/base.py:102
↓ 19 callersFunction_make_service
( *, api_url: str = 'https://runtime-api.example.com', api_key: str = 'test-key', default_spec
tests/unit/app_server/test_dynamic_remote_sandbox_spec_service.py:63
↓ 19 callersFunctionasync_session_maker
Create an async session maker for testing.
enterprise/tests/unit/test_verified_model/test_verified_model_service.py:32
↓ 19 callersFunctionget_analytics_service
Return the module-level AnalyticsService singleton. Returns ``None`` if :func:`init_analytics_service` has not been called yet.
openhands/analytics/__init__.py:49
↓ 19 callersFunctionget_api_key_from_header
(request: Request)
enterprise/server/auth/saas_user_auth.py:758
↓ 19 callersFunctionget_app_conversation_info_service
( state: InjectorState, request: Request | None = None )
openhands/app_server/config.py:468
↓ 19 callersFunctionuseIsAuthed
()
frontend/src/hooks/query/use-is-authed.ts:7
next →1–100 of 10,856, ranked by callers