Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenHands/OpenHands
/ functions
Functions
10,856 in github.com/OpenHands/OpenHands
⨍
Functions
10,856
◇
Types & classes
2,162
↳
Endpoints
725
↓ 4 callers
Method
validate_request_context
Verify Jira DC webhook signature and return the matched workspace.
enterprise/integrations/jira_dc/jira_dc_manager.py:251
↓ 4 callers
Function
verified_model
(result: StoredVerifiedModel)
enterprise/server/verified_models/verified_model_service.py:55
↓ 4 callers
Method
visualize
(self)
openhands/app_server/utils/chunk_localizer.py:20
↓ 4 callers
Function
wait_all
Shorthand for waiting for all the coroutines in the iterable given in parallel. Creates a task for each coroutine. Returns a list of results i
openhands/app_server/utils/async_utils.py:62
↓ 3 callers
Method
__aexit__
(self, exc_type, exc_value, traceback)
enterprise/server/app_lifespan/saas_app_lifespan_service.py:38
↓ 3 callers
Method
__init__
( self, detail: Any = None, headers: dict[str, str] | None = None, status_code
openhands/app_server/errors.py:21
↓ 3 callers
Function
_agent_value
Navigate into settings.agent_settings using a dot-separated key.
enterprise/tests/unit/test_saas_settings_store.py:11
↓ 3 callers
Method
_app_conv
(sandbox_id='sandbox-1')
tests/unit/app_server/test_remote_sandbox_service.py:1542
↓ 3 callers
Method
_apply_user_and_org_filter
Apply user_id and org_id filters to ensure conversation isolation. Filters conversations by: - user_id: Only show conversations belon
enterprise/server/utils/saas_app_conversation_info_injector.py:51
↓ 3 callers
Function
_as_utc_aware
Re-attach UTC tzinfo to a value that was stored as naive in a `TIMESTAMP WITHOUT TIME ZONE` column. Already-aware values are returned unchange
enterprise/storage/api_key_store.py:42
↓ 3 callers
Method
_authenticate_user
Authenticate the Jira user and get OpenHands auth.
enterprise/integrations/jira/jira_manager.py:216
↓ 3 callers
Function
_build_conversation_id
()
enterprise/tests/unit/integrations/github/test_github_view_v1_initial_user_message.py:49
↓ 3 callers
Method
_build_conversation_response
Build an OrgConversationResponse from a row and sandbox info.
enterprise/server/services/org_conversation_service.py:110
↓ 3 callers
Method
_build_message_content
(self, text: str)
enterprise/integrations/slack/slack_view.py:98
↓ 3 callers
Method
_build_observability_context
Build trace metadata and tag filters for a conversation. Metadata uses explicit field names such as ``repo_name`` and ``selected_bran
openhands/app_server/app_conversation/live_status_app_conversation_service.py:1348
↓ 3 callers
Function
_build_service_url
Build a service URL for the given service name. Handles both path-based and subdomain-based routing: - Path mode (url path starts with /{runt
openhands/app_server/sandbox/remote_sandbox_service.py:844
↓ 3 callers
Function
_build_user_data
()
enterprise/tests/unit/integrations/github/test_github_view_v1_initial_user_message.py:53
↓ 3 callers
Function
_chunk_key
Chunk 0 keeps the bare key so single-cookie writes are unchanged.
enterprise/server/auth/cookie_chunking.py:32
↓ 3 callers
Method
_cleanup_litellm_resources
Compensating transaction: Clean up LiteLLM resources. Deletes the team which should cascade to remove keys and memberships.
enterprise/storage/org_service.py:386
↓ 3 callers
Method
_confirm_incoming_source_type
(self, message: Message)
enterprise/integrations/bitbucket_data_center/bitbucket_dc_manager.py:62
↓ 3 callers
Method
_confirm_incoming_source_type
(self, message: Message)
enterprise/integrations/bitbucket/bitbucket_manager.py:50
↓ 3 callers
Method
_create_async_gcp_db_connection
(self)
openhands/app_server/services/db_session_injector.py:96
↓ 3 callers
Method
_create_user_settings_from_entities
Create UserSettings from OrgMember, User, and Org data. Uses OrgMember values first. If an OrgMember field is None and there's a corr
enterprise/storage/user_store.py:1228
↓ 3 callers
Method
_delete_litellm_user_best_effort
Delete the LiteLLM user record without blocking org deletion.
enterprise/storage/org_store.py:69
↓ 3 callers
Method
_ensure_api_key
Generate and set the OpenHands API key for the given settings. First checks if an existing key exists for the user and verifies it is
enterprise/storage/saas_settings_store.py:777
↓ 3 callers
Function
_ensure_azure_devops_organization
(service: SaaSAzureDevOpsService)
enterprise/server/routes/integration/azure_devops.py:158
↓ 3 callers
Function
_fake_app_conversation_service_ctx
(fake_service)
enterprise/tests/unit/integrations/github/test_github_view_v1_initial_user_message.py:36
↓ 3 callers
Function
_fake_user
(user_id: str, email: str | None = None)
enterprise/tests/unit/server/routes/test_super_admins.py:54
↓ 3 callers
Method
_fetch_paginated_data
Fetch data with pagination support for Bitbucket API. Args: url: The API endpoint URL params: Query parameters for th
openhands/app_server/integrations/bitbucket/service/base.py:133
↓ 3 callers
Method
_find_unused_port
Find an unused port on the host machine.
openhands/app_server/sandbox/docker_sandbox_service.py:111
↓ 3 callers
Function
_generate_password
Generate a strong random password suitable for Keycloak policies. Mixes upper/lowercase letters, digits, and a curated set of symbols so the
enterprise/server/routes/user_provisioning.py:130
↓ 3 callers
Method
_get_cycle_spend
(self, org_id: UUID, cycle_start: datetime)
enterprise/server/services/org_budget_service.py:340
↓ 3 callers
Function
_get_db_session_injector
()
enterprise/storage/database.py:14
↓ 3 callers
Function
_get_email_enabled
Return whether transactional email delivery is configured.
openhands/app_server/web_client/default_web_client_config_injector.py:123
↓ 3 callers
Method
_get_installation_access_token
(self, installation_id: int)
enterprise/integrations/github/data_collector.py:136
↓ 3 callers
Method
_get_instructions
Instructions passed when conversation is first initialized.
enterprise/integrations/types.py:54
↓ 3 callers
Method
_get_key_info
( client: httpx.AsyncClient, org_id: str, keycloak_user_id: str, )
enterprise/storage/lite_llm_manager.py:1434
↓ 3 callers
Function
_get_nested_value
(data: Mapping[str, Any] | None, *path: str)
enterprise/migrations/versions/108_add_agent_settings_to_enterprise_settings.py:133
↓ 3 callers
Function
_get_org
Get org, raising 404 if not found.
enterprise/server/routes/org_profiles.py:143
↓ 3 callers
Function
_get_org
Load the org, raising 404 if the user is not a member / it is missing.
enterprise/server/routes/agent_profiles.py:124
↓ 3 callers
Method
_get_org_kwargs_for_migration
( user_settings: UserSettings, *, custom_settings: bool )
enterprise/storage/user_store.py:1299
↓ 3 callers
Method
_get_provider_handler
Get or create a ProviderHandler for git operations.
enterprise/integrations/resolver_context.py:58
↓ 3 callers
Function
_get_session_maker
Get the application database session maker.
enterprise/sync/resend_keycloak.py:92
↓ 3 callers
Method
_get_super_admin_role_id
Resolve the role id that designates a super admin. Fails fast if the ``admin`` role row is missing -- it is seeded by migration, so i
enterprise/storage/user_store.py:890
↓ 3 callers
Method
_get_thresholds
(self, org_id: UUID)
enterprise/server/services/org_budget_service.py:279
↓ 3 callers
Method
_get_user_running_sandboxes
Return the DB records for sandboxes that are actually running right now. Calls the runtime /list endpoint (which returns all running sessions
openhands/app_server/sandbox/remote_sandbox_service.py:383
↓ 3 callers
Method
_init_environment
Initialize the environment variables for the sandbox.
openhands/app_server/sandbox/remote_sandbox_service.py:273
↓ 3 callers
Method
_initialize_conversation
Initialize conversation and return the conversation ID. The JiraConversation mapping is saved to the integration store (above), but V
enterprise/integrations/jira/jira_view.py:199
↓ 3 callers
Method
_invitation
(self, status=OrgInvitation.STATUS_ACCEPTED)
enterprise/tests/unit/test_org_invitation_service.py:682
↓ 3 callers
Method
_invitation
(self, status=OrgInvitation.STATUS_PENDING)
enterprise/tests/unit/test_org_invitation_service.py:750
↓ 3 callers
Method
_load_event
Get the event at the path given.
openhands/app_server/event/aws_event_service.py:37
↓ 3 callers
Method
_load_pr_merge_map
( self, pr_keys: set[tuple[str, str, int]] )
enterprise/server/services/org_conversation_service.py:195
↓ 3 callers
Method
_load_resolver_context
(self)
enterprise/integrations/bitbucket_data_center/bitbucket_dc_view.py:92
↓ 3 callers
Method
_load_resolver_context
(self)
enterprise/integrations/gitlab/gitlab_view.py:63
↓ 3 callers
Method
_load_resolver_context
(self)
enterprise/integrations/bitbucket/bitbucket_view.py:74
↓ 3 callers
Method
_logout
(self, request: Request)
enterprise/server/middleware.py:201
↓ 3 callers
Function
_make_metadata
(**overrides)
enterprise/tests/unit/test_org_conversation_service_pr_merge.py:13
↓ 3 callers
Function
_make_mock_event_service
Create a mock EventService for testing.
tests/unit/app_server/test_event_router.py:18
↓ 3 callers
Function
_make_page
Build a minimal object satisfying the page_iterator protocol.
tests/unit/app_server/test_remote_sandbox_service.py:1424
↓ 3 callers
Method
_make_user_auth
(self, mock_session_maker)
enterprise/tests/unit/test_saas_user_auth.py:259
↓ 3 callers
Function
_make_user_context
Build a mock UserContext with the given provider tokens.
enterprise/tests/unit/test_user_git_organizations.py:20
↓ 3 callers
Function
_matches_pr_comment_subscription
( subscription: dict[str, Any], *, webhook_url: str, )
enterprise/server/routes/integration/azure_devops.py:110
↓ 3 callers
Function
_matches_work_item_comment_subscription
( subscription: dict[str, Any], *, webhook_url: str, )
enterprise/server/routes/integration/azure_devops.py:124
↓ 3 callers
Method
_merge_skills
Merge multiple skill lists, avoiding duplicates by name. Later lists take precedence over earlier lists for duplicate names. Args:
openhands/app_server/app_conversation/app_conversation_service_base.py:207
↓ 3 callers
Function
_mock_create_default_settings_returning_default
Patch ``create_default_settings`` to return a minimal valid Settings. ``UserStore.create_user`` only needs a non-None Settings to proceed pas
enterprise/tests/unit/test_user_store.py:160
↓ 3 callers
Method
_parse_branch
Normalize Bitbucket branch representations across Cloud and Server.
openhands/app_server/integrations/bitbucket_data_center/service/branches.py:91
↓ 3 callers
Method
_parse_repository
Parse a GitLab API project response into a Repository object. Args: repo: Project data from GitLab API link_header: O
openhands/app_server/integrations/gitlab/service/repos.py:16
↓ 3 callers
Method
_parse_repository
Parse a Bitbucket API repository response into a Repository object. Args: repo: Repository data from Bitbucket API li
openhands/app_server/integrations/bitbucket/service/base.py:200
↓ 3 callers
Method
_patch_no_pyproject
Patch so that no pyproject.toml candidate files exist.
tests/unit/app_server/test_version.py:77
↓ 3 callers
Method
_patches
Common patches shared by the tests in this class. Returns a list of ``patch`` context managers. ``ConversationInfo`` and ``EventPage`
tests/unit/app_server/test_remote_sandbox_service.py:1480
↓ 3 callers
Method
_process_task
Process a single task.
enterprise/tests/unit/test_maintenance_task_runner_standalone.py:276
↓ 3 callers
Method
_release_user_creation_lock
Release the distributed lock for user creation. Returns True if the lock was released or if Redis is unavailable. Returns False if th
enterprise/storage/user_store.py:249
↓ 3 callers
Method
_remove_user_from_team
( client: httpx.AsyncClient, keycloak_user_id: str, team_id: str, )
enterprise/storage/lite_llm_manager.py:1280
↓ 3 callers
Function
_request_with
(jar: dict[str, str])
enterprise/tests/unit/server/auth/test_cookie_chunking.py:36
↓ 3 callers
Function
_response
(stdout: str, status_code: int = 200)
tests/unit/app_server/test_workspace_archive_packages.py:87
↓ 3 callers
Method
_roll_cycle_if_needed
( self, settings: OrgBudgetSettings, thresholds: list[OrgBudgetThreshold], ove
enterprise/server/services/org_budget_service.py:303
↓ 3 callers
Function
_roundtrip
(value: str)
enterprise/tests/unit/server/auth/test_cookie_chunking.py:41
↓ 3 callers
Method
_run_loop
Execute the main processing loop.
enterprise/tests/unit/test_maintenance_task_runner_standalone.py:106
↓ 3 callers
Method
_search_paths
Search paths.
openhands/app_server/event/aws_event_service.py:64
↓ 3 callers
Method
_secure_select_with_saas_metadata
Select query that includes SAAS metadata for retrieving user_id.
enterprise/server/utils/saas_app_conversation_info_injector.py:118
↓ 3 callers
Method
_select_confirmation_policy
Choose confirmation policy using only mode flag and analyzer string.
openhands/app_server/app_conversation/app_conversation_service_base.py:677
↓ 3 callers
Method
_send_comment
Send a comment using credentials from the view.
enterprise/integrations/jira/jira_manager.py:356
↓ 3 callers
Function
_set_org_agent_settings
(async_session_maker, org_id, agent_settings)
enterprise/tests/unit/test_org_profiles.py:410
↓ 3 callers
Method
_settings
()
enterprise/tests/unit/test_org_invitation_service.py:850
↓ 3 callers
Method
_sign_payload
Sign a payload using the dedicated automation shared secret. Uses AUTOMATION_WEBHOOK_SECRET (not GitHub webhook secret) to maintain
enterprise/server/services/automation_event_service.py:527
↓ 3 callers
Function
_signed
(body: bytes, secret: str = 'shared-secret')
enterprise/tests/unit/integrations/bitbucket/test_bitbucket_webhook.py:13
↓ 3 callers
Method
_store_user_msg_for_form
Store user message in Redis for later retrieval when form is submitted. This is needed because when a user selects a repo from the external_s
enterprise/integrations/slack/slack_manager.py:110
↓ 3 callers
Function
_subscription_id
(subscription: dict[str, Any])
enterprise/server/routes/integration/azure_devops.py:86
↓ 3 callers
Method
_team_org
(name='AcmeOrg')
enterprise/tests/unit/server/services/test_automation_event_service.py:1224
↓ 3 callers
Method
_update_org_kwargs
Internal helper for updating organization fields from raw kwargs.
enterprise/storage/org_store.py:375
↓ 3 callers
Method
_update_team
( client: httpx.AsyncClient, team_id: str, team_alias: str | None, max_budget:
enterprise/storage/lite_llm_manager.py:752
↓ 3 callers
Method
_update_user
( client: httpx.AsyncClient, keycloak_user_id: str, **kwargs, )
enterprise/storage/lite_llm_manager.py:929
↓ 3 callers
Function
_uvicorn_json_log_config
()
openhands/app_server/utils/logger.py:611
↓ 3 callers
Method
_validate_conversation_ownership
Validate that the current user owns the conversation. This ensures multi-tenant isolation by checking: - The conversation belongs to
enterprise/server/utils/saas_pending_message_injector.py:66
↓ 3 callers
Method
_validated_conv
()
tests/unit/app_server/test_remote_sandbox_service.py:1535
↓ 3 callers
Method
_wait_for_server_ready
Wait for the agent server to be ready.
openhands/app_server/sandbox/process_sandbox_service.py:165
↓ 3 callers
Function
_write_skill_file
Write a mock skill markdown file with frontmatter.
tests/unit/server/routes/test_skills_api.py:92
↓ 3 callers
Function
adaptSystemMessage
( events: OHEvent[], )
frontend/src/utils/system-message-adapter.ts:17
↓ 3 callers
Function
add_contact_to_resend
Add a contact to the Resend audience with retry logic. Args: audience_id: The Resend audience ID. email: The email address of the
enterprise/sync/resend_keycloak.py:202
↓ 3 callers
Method
add_pr_comment_to_thread
Add a comment to an existing thread in an Azure DevOps pull request. API Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/g
openhands/app_server/integrations/azure_devops/service/prs.py:65
← previous
next →
1,001–1,100 of 10,856, ranked by callers