Skip to content

feat: add entrypoint autodiscover#1431

Open
radugheo wants to merge 1 commit intomainfrom
feat/add-entrypoint-autodiscover
Open

feat: add entrypoint autodiscover#1431
radugheo wants to merge 1 commit intomainfrom
feat/add-entrypoint-autodiscover

Conversation

@radugheo
Copy link
Collaborator

@radugheo radugheo commented Mar 10, 2026

  • Moved the "no entrypoint" check from an early return (before async execution) to inside the async execute() function, after obtaining the factory via UiPathRuntimeFactoryRegistry.get()

  • When no entrypoint is provided, calls factory.discover_entrypoints() - if exactly one exists, it's auto-resolved; otherwise raises _RunDiscoveryError

  • Uses the _RunDiscoveryError exception pattern (matching cli_eval's _EvalDiscoveryError)

  • Added _show_run_usage_help() that lists available entrypoints and shows usage examples

  • Replaced test_no_entrypoint with 3 tests that exercise the autodiscovery logic:
    test_autodiscover_entrypoint - single entrypoint auto-resolves
    test_no_entrypoint_multiple_available - multiple entrypoints shows help
    test_no_entrypoint_none_available - zero entrypoints shows help

@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Mar 10, 2026
@radugheo radugheo force-pushed the feat/add-entrypoint-autodiscover branch 12 times, most recently from e62aa07 to 71c20b9 Compare March 10, 2026 20:09
@radugheo radugheo force-pushed the feat/add-entrypoint-autodiscover branch from d0abce0 to e5f5079 Compare March 10, 2026 21:55
@radugheo radugheo added the build:dev Create a dev build from the pr label Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:dev Create a dev build from the pr test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant